diff --git a/java-dataform/README.md b/java-dataform/README.md index e5a724ea6a71..466aaf2666eb 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.25.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java index 1ce15f4b6a3c..23849fddadbe 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -32,6 +32,11 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -794,7 +799,8 @@ public final UnaryCallable deleteRepositoryCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's remote branches. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -805,24 +811,29 @@ public final UnaryCallable deleteRepositoryCalla * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRemoteBranchesRequest request = - * FetchRemoteBranchesRequest.newBuilder() + * CommitRepositoryChangesRequest request = + * CommitRepositoryChangesRequest.newBuilder() * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitMetadata(CommitMetadata.newBuilder().build()) + * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + * .putAllFileOperations( + * new HashMap()) * .build(); - * FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request); + * dataformClient.commitRepositoryChanges(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) { - return fetchRemoteBranchesCallable().call(request); + public final void commitRepositoryChanges(CommitRepositoryChangesRequest request) { + commitRepositoryChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's remote branches. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -833,25 +844,30 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRemoteBranchesRequest request = - * FetchRemoteBranchesRequest.newBuilder() + * CommitRepositoryChangesRequest request = + * CommitRepositoryChangesRequest.newBuilder() * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitMetadata(CommitMetadata.newBuilder().build()) + * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + * .putAllFileOperations( + * new HashMap()) * .build(); - * ApiFuture future = - * dataformClient.fetchRemoteBranchesCallable().futureCall(request); + * ApiFuture future = + * dataformClient.commitRepositoryChangesCallable().futureCall(request); * // Do something. - * FetchRemoteBranchesResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - fetchRemoteBranchesCallable() { - return stub.fetchRemoteBranchesCallable(); + public final UnaryCallable + commitRepositoryChangesCallable() { + return stub.commitRepositoryChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -862,28 +878,27 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ReadRepositoryFileRequest request = + * ReadRepositoryFileRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .build(); + * ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request); * } * } * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkspaces(request); + public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileRequest request) { + return readRepositoryFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -894,25 +909,28 @@ public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ReadRepositoryFileRequest request = + * ReadRepositoryFileRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.readRepositoryFileCallable().futureCall(request); + * // Do something. + * ReadRepositoryFileResponse response = future.get(); * } * } - * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(String parent) { - ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder().setParent(parent).build(); - return listWorkspaces(request); + public final UnaryCallable + readRepositoryFileCallable() { + return stub.readRepositoryFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -923,15 +941,16 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") * .build(); - * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) { + * for (DirectoryEntry element : + * dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -940,13 +959,15 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) { - return listWorkspacesPagedCallable().call(request); + public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirectoryContents( + QueryRepositoryDirectoryContentsRequest request) { + return queryRepositoryDirectoryContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -957,31 +978,33 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.listWorkspacesPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryRepositoryDirectoryContentsPagedCallable().futureCall(request); * // Do something. - * for (Workspace element : future.get().iterateAll()) { + * for (DirectoryEntry element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listWorkspacesPagedCallable() { - return stub.listWorkspacesPagedCallable(); + public final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable() { + return stub.queryRepositoryDirectoryContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -992,17 +1015,18 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request); - * for (Workspace element : response.getWorkspacesList()) { + * QueryRepositoryDirectoryContentsResponse response = + * dataformClient.queryRepositoryDirectoryContentsCallable().call(request); + * for (DirectoryEntry element : response.getDirectoryEntriesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1015,14 +1039,16 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * } * } */ - public final UnaryCallable - listWorkspacesCallable() { - return stub.listWorkspacesCallable(); + public final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable() { + return stub.queryRepositoryDirectoryContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -1033,24 +1059,30 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkspaceName name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - * Workspace response = dataformClient.getWorkspace(name); + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workspace's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(WorkspaceName name) { - GetWorkspaceRequest request = - GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getWorkspace(request); + public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( + FetchRepositoryHistoryRequest request) { + return fetchRepositoryHistoryPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -1061,23 +1093,30 @@ public final Workspace getWorkspace(WorkspaceName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); - * Workspace response = dataformClient.getWorkspace(name); + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * dataformClient.fetchRepositoryHistoryPagedCallable().futureCall(request); + * // Do something. + * for (CommitLogEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param name Required. The workspace's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(String name) { - GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); - return getWorkspace(request); + public final UnaryCallable + fetchRepositoryHistoryPagedCallable() { + return stub.fetchRepositoryHistoryPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

Sample code: * @@ -1088,26 +1127,36 @@ public final Workspace getWorkspace(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkspaceRequest request = - * GetWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Workspace response = dataformClient.getWorkspace(request); + * while (true) { + * FetchRepositoryHistoryResponse response = + * dataformClient.fetchRepositoryHistoryCallable().call(request); + * for (CommitLogEntry element : response.getCommitsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(GetWorkspaceRequest request) { - return getWorkspaceCallable().call(request); + public final UnaryCallable + fetchRepositoryHistoryCallable() { + return stub.fetchRepositoryHistoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Computes a Repository's Git access token status. * *

Sample code: * @@ -1118,25 +1167,26 @@ public final Workspace getWorkspace(GetWorkspaceRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkspaceRequest request = - * GetWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ComputeRepositoryAccessTokenStatusRequest request = + * ComputeRepositoryAccessTokenStatusRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request); - * // Do something. - * Workspace response = future.get(); + * ComputeRepositoryAccessTokenStatusResponse response = + * dataformClient.computeRepositoryAccessTokenStatus(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getWorkspaceCallable() { - return stub.getWorkspaceCallable(); + public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest request) { + return computeRepositoryAccessTokenStatusCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Computes a Repository's Git access token status. * *

Sample code: * @@ -1147,34 +1197,26 @@ public final UnaryCallable getWorkspaceCallable( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Workspace workspace = Workspace.newBuilder().build(); - * String workspaceId = "workspaceId466560144"; - * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); + * ComputeRepositoryAccessTokenStatusRequest request = + * ComputeRepositoryAccessTokenStatusRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .build(); + * ApiFuture future = + * dataformClient.computeRepositoryAccessTokenStatusCallable().futureCall(request); + * // Do something. + * ComputeRepositoryAccessTokenStatusResponse response = future.get(); * } * } - * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @param workspace Required. The workspace to create. - * @param workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace( - RepositoryName parent, Workspace workspace, String workspaceId) { - CreateWorkspaceRequest request = - CreateWorkspaceRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkspace(workspace) - .setWorkspaceId(workspaceId) - .build(); - return createWorkspace(request); + public final UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable() { + return stub.computeRepositoryAccessTokenStatusCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Fetches a Repository's remote branches. * *

Sample code: * @@ -1185,33 +1227,24 @@ public final Workspace createWorkspace( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * Workspace workspace = Workspace.newBuilder().build(); - * String workspaceId = "workspaceId466560144"; - * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); + * FetchRemoteBranchesRequest request = + * FetchRemoteBranchesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .build(); + * FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request); * } * } * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @param workspace Required. The workspace to create. - * @param workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) { - CreateWorkspaceRequest request = - CreateWorkspaceRequest.newBuilder() - .setParent(parent) - .setWorkspace(workspace) - .setWorkspaceId(workspaceId) - .build(); - return createWorkspace(request); + public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) { + return fetchRemoteBranchesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Fetches a Repository's remote branches. * *

Sample code: * @@ -1222,26 +1255,25 @@ public final Workspace createWorkspace(String parent, Workspace workspace, Strin * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkspaceRequest request = - * CreateWorkspaceRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkspace(Workspace.newBuilder().build()) - * .setWorkspaceId("workspaceId466560144") + * FetchRemoteBranchesRequest request = + * FetchRemoteBranchesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * Workspace response = dataformClient.createWorkspace(request); + * ApiFuture future = + * dataformClient.fetchRemoteBranchesCallable().futureCall(request); + * // Do something. + * FetchRemoteBranchesResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace(CreateWorkspaceRequest request) { - return createWorkspaceCallable().call(request); + public final UnaryCallable + fetchRemoteBranchesCallable() { + return stub.fetchRemoteBranchesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Lists Workspaces in a given Repository. * *

Sample code: * @@ -1252,25 +1284,28 @@ public final Workspace createWorkspace(CreateWorkspaceRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkspaceRequest request = - * CreateWorkspaceRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkspace(Workspace.newBuilder().build()) - * .setWorkspaceId("workspaceId466560144") - * .build(); - * ApiFuture future = dataformClient.createWorkspaceCallable().futureCall(request); - * // Do something. - * Workspace response = future.get(); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } - */ - public final UnaryCallable createWorkspaceCallable() { - return stub.createWorkspaceCallable(); + * + * @param parent Required. The repository in which to list workspaces. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkspaces(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Workspaces in a given Repository. * *

Sample code: * @@ -1281,24 +1316,25 @@ public final UnaryCallable createWorkspaceCal * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkspaceName name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - * dataformClient.deleteWorkspace(name); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workspace resource's name. + * @param parent Required. The repository in which to list workspaces. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(WorkspaceName name) { - DeleteWorkspaceRequest request = - DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteWorkspace(request); + public final ListWorkspacesPagedResponse listWorkspaces(String parent) { + ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder().setParent(parent).build(); + return listWorkspaces(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Workspaces in a given Repository. * *

Sample code: * @@ -1309,23 +1345,30 @@ public final void deleteWorkspace(WorkspaceName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); - * dataformClient.deleteWorkspace(name); + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") + * .build(); + * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workspace resource's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(String name) { - DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); - deleteWorkspace(request); + public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) { + return listWorkspacesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Workspaces in a given Repository. * *

Sample code: * @@ -1336,26 +1379,31 @@ public final void deleteWorkspace(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkspaceRequest request = - * DeleteWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * dataformClient.deleteWorkspace(request); + * ApiFuture future = + * dataformClient.listWorkspacesPagedCallable().futureCall(request); + * // Do something. + * for (Workspace element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(DeleteWorkspaceRequest request) { - deleteWorkspaceCallable().call(request); + public final UnaryCallable + listWorkspacesPagedCallable() { + return stub.listWorkspacesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Workspaces in a given Repository. * *

Sample code: * @@ -1366,25 +1414,37 @@ public final void deleteWorkspace(DeleteWorkspaceRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkspaceRequest request = - * DeleteWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request); - * // Do something. - * future.get(); + * while (true) { + * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request); + * for (Workspace element : response.getWorkspacesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable deleteWorkspaceCallable() { - return stub.deleteWorkspaceCallable(); + public final UnaryCallable + listWorkspacesCallable() { + return stub.listWorkspacesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Installs dependency NPM packages (inside a Workspace). + * Fetches a single Workspace. * *

Sample code: * @@ -1395,26 +1455,24 @@ public final UnaryCallable deleteWorkspaceCallabl * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * InstallNpmPackagesRequest request = - * InstallNpmPackagesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * InstallNpmPackagesResponse response = dataformClient.installNpmPackages(request); + * WorkspaceName name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); + * Workspace response = dataformClient.getWorkspace(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { - return installNpmPackagesCallable().call(request); + public final Workspace getWorkspace(WorkspaceName name) { + GetWorkspaceRequest request = + GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Installs dependency NPM packages (inside a Workspace). + * Fetches a single Workspace. * *

Sample code: * @@ -1425,27 +1483,23 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * InstallNpmPackagesRequest request = - * InstallNpmPackagesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * ApiFuture future = - * dataformClient.installNpmPackagesCallable().futureCall(request); - * // Do something. - * InstallNpmPackagesResponse response = future.get(); + * String name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); + * Workspace response = dataformClient.getWorkspace(name); * } * } + * + * @param name Required. The workspace's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - installNpmPackagesCallable() { - return stub.installNpmPackagesCallable(); + public final Workspace getWorkspace(String name) { + GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); + return getWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Fetches a single Workspace. * *

Sample code: * @@ -1456,28 +1510,26 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PullGitCommitsRequest request = - * PullGitCommitsRequest.newBuilder() + * GetWorkspaceRequest request = + * GetWorkspaceRequest.newBuilder() * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * dataformClient.pullGitCommits(request); + * Workspace response = dataformClient.getWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pullGitCommits(PullGitCommitsRequest request) { - pullGitCommitsCallable().call(request); + public final Workspace getWorkspace(GetWorkspaceRequest request) { + return getWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Fetches a single Workspace. * *

Sample code: * @@ -1488,27 +1540,25 @@ public final void pullGitCommits(PullGitCommitsRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PullGitCommitsRequest request = - * PullGitCommitsRequest.newBuilder() + * GetWorkspaceRequest request = + * GetWorkspaceRequest.newBuilder() * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * ApiFuture future = dataformClient.pullGitCommitsCallable().futureCall(request); + * ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request); * // Do something. - * future.get(); + * Workspace response = future.get(); * } * } */ - public final UnaryCallable pullGitCommitsCallable() { - return stub.pullGitCommitsCallable(); + public final UnaryCallable getWorkspaceCallable() { + return stub.getWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Creates a new Workspace in a given Repository. * *

Sample code: * @@ -1519,27 +1569,34 @@ public final UnaryCallable pullGitCommitsCallable( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PushGitCommitsRequest request = - * PushGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * dataformClient.pushGitCommits(request); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * Workspace workspace = Workspace.newBuilder().build(); + * String workspaceId = "workspaceId466560144"; + * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pushGitCommits(PushGitCommitsRequest request) { - pushGitCommitsCallable().call(request); + public final Workspace createWorkspace( + RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Creates a new Workspace in a given Repository. * *

Sample code: * @@ -1550,26 +1607,33 @@ public final void pushGitCommits(PushGitCommitsRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PushGitCommitsRequest request = - * PushGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * ApiFuture future = dataformClient.pushGitCommitsCallable().futureCall(request); - * // Do something. - * future.get(); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * Workspace workspace = Workspace.newBuilder().build(); + * String workspaceId = "workspaceId466560144"; + * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); * } * } + * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable pushGitCommitsCallable() { - return stub.pushGitCommitsCallable(); + public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git statuses for the files in a Workspace. + * Creates a new Workspace in a given Repository. * *

Sample code: * @@ -1580,27 +1644,26 @@ public final UnaryCallable pushGitCommitsCallable( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileGitStatusesRequest request = - * FetchFileGitStatusesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * CreateWorkspaceRequest request = + * CreateWorkspaceRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setWorkspace(Workspace.newBuilder().build()) + * .setWorkspaceId("workspaceId466560144") * .build(); - * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request); + * Workspace response = dataformClient.createWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchFileGitStatusesResponse fetchFileGitStatuses( - FetchFileGitStatusesRequest request) { - return fetchFileGitStatusesCallable().call(request); + public final Workspace createWorkspace(CreateWorkspaceRequest request) { + return createWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git statuses for the files in a Workspace. + * Creates a new Workspace in a given Repository. * *

Sample code: * @@ -1611,27 +1674,25 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileGitStatusesRequest request = - * FetchFileGitStatusesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * CreateWorkspaceRequest request = + * CreateWorkspaceRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setWorkspace(Workspace.newBuilder().build()) + * .setWorkspaceId("workspaceId466560144") * .build(); - * ApiFuture future = - * dataformClient.fetchFileGitStatusesCallable().futureCall(request); + * ApiFuture future = dataformClient.createWorkspaceCallable().futureCall(request); * // Do something. - * FetchFileGitStatusesResponse response = future.get(); + * Workspace response = future.get(); * } * } */ - public final UnaryCallable - fetchFileGitStatusesCallable() { - return stub.fetchFileGitStatusesCallable(); + public final UnaryCallable createWorkspaceCallable() { + return stub.createWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git ahead/behind against a remote branch. + * Deletes a single Workspace. * *

Sample code: * @@ -1642,27 +1703,24 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchGitAheadBehindRequest request = - * FetchGitAheadBehindRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request); + * WorkspaceName name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); + * dataformClient.deleteWorkspace(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The workspace resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { - return fetchGitAheadBehindCallable().call(request); + public final void deleteWorkspace(WorkspaceName name) { + DeleteWorkspaceRequest request = + DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git ahead/behind against a remote branch. + * Deletes a single Workspace. * *

Sample code: * @@ -1673,28 +1731,23 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchGitAheadBehindRequest request = - * FetchGitAheadBehindRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * ApiFuture future = - * dataformClient.fetchGitAheadBehindCallable().futureCall(request); - * // Do something. - * FetchGitAheadBehindResponse response = future.get(); + * String name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); + * dataformClient.deleteWorkspace(name); * } * } + * + * @param name Required. The workspace resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - fetchGitAheadBehindCallable() { - return stub.fetchGitAheadBehindCallable(); + public final void deleteWorkspace(String name) { + DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); + deleteWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit for uncommitted files in a Workspace. + * Deletes a single Workspace. * *

Sample code: * @@ -1705,29 +1758,26 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CommitWorkspaceChangesRequest request = - * CommitWorkspaceChangesRequest.newBuilder() + * DeleteWorkspaceRequest request = + * DeleteWorkspaceRequest.newBuilder() * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setAuthor(CommitAuthor.newBuilder().build()) - * .setCommitMessage("commitMessage2039804624") - * .addAllPaths(new ArrayList()) * .build(); - * dataformClient.commitWorkspaceChanges(request); + * dataformClient.deleteWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void commitWorkspaceChanges(CommitWorkspaceChangesRequest request) { - commitWorkspaceChangesCallable().call(request); + public final void deleteWorkspace(DeleteWorkspaceRequest request) { + deleteWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit for uncommitted files in a Workspace. + * Deletes a single Workspace. * *

Sample code: * @@ -1738,29 +1788,25 @@ public final void commitWorkspaceChanges(CommitWorkspaceChangesRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CommitWorkspaceChangesRequest request = - * CommitWorkspaceChangesRequest.newBuilder() + * DeleteWorkspaceRequest request = + * DeleteWorkspaceRequest.newBuilder() * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setAuthor(CommitAuthor.newBuilder().build()) - * .setCommitMessage("commitMessage2039804624") - * .addAllPaths(new ArrayList()) * .build(); - * ApiFuture future = dataformClient.commitWorkspaceChangesCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable - commitWorkspaceChangesCallable() { - return stub.commitWorkspaceChangesCallable(); + public final UnaryCallable deleteWorkspaceCallable() { + return stub.deleteWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Performs a Git reset for uncommitted files in a Workspace. + * Installs dependency NPM packages (inside a Workspace). * *

Sample code: * @@ -1771,28 +1817,26 @@ public final void commitWorkspaceChanges(CommitWorkspaceChangesRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ResetWorkspaceChangesRequest request = - * ResetWorkspaceChangesRequest.newBuilder() - * .setName( + * InstallNpmPackagesRequest request = + * InstallNpmPackagesRequest.newBuilder() + * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .addAllPaths(new ArrayList()) - * .setClean(true) * .build(); - * dataformClient.resetWorkspaceChanges(request); + * InstallNpmPackagesResponse response = dataformClient.installNpmPackages(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resetWorkspaceChanges(ResetWorkspaceChangesRequest request) { - resetWorkspaceChangesCallable().call(request); + public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { + return installNpmPackagesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Performs a Git reset for uncommitted files in a Workspace. + * Installs dependency NPM packages (inside a Workspace). * *

Sample code: * @@ -1803,27 +1847,27 @@ public final void resetWorkspaceChanges(ResetWorkspaceChangesRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ResetWorkspaceChangesRequest request = - * ResetWorkspaceChangesRequest.newBuilder() - * .setName( + * InstallNpmPackagesRequest request = + * InstallNpmPackagesRequest.newBuilder() + * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .addAllPaths(new ArrayList()) - * .setClean(true) * .build(); - * ApiFuture future = dataformClient.resetWorkspaceChangesCallable().futureCall(request); + * ApiFuture future = + * dataformClient.installNpmPackagesCallable().futureCall(request); * // Do something. - * future.get(); + * InstallNpmPackagesResponse response = future.get(); * } * } */ - public final UnaryCallable resetWorkspaceChangesCallable() { - return stub.resetWorkspaceChangesCallable(); + public final UnaryCallable + installNpmPackagesCallable() { + return stub.installNpmPackagesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Pulls Git commits from the Repository's remote into a Workspace. * *

Sample code: * @@ -1834,27 +1878,28 @@ public final UnaryCallable resetWorkspaceCh * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileDiffRequest request = - * FetchFileDiffRequest.newBuilder() - * .setWorkspace( + * PullGitCommitsRequest request = + * PullGitCommitsRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") + * .setRemoteBranch("remoteBranch-533119608") + * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * FetchFileDiffResponse response = dataformClient.fetchFileDiff(request); + * dataformClient.pullGitCommits(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { - return fetchFileDiffCallable().call(request); + public final void pullGitCommits(PullGitCommitsRequest request) { + pullGitCommitsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Pulls Git commits from the Repository's remote into a Workspace. * *

Sample code: * @@ -1865,27 +1910,27 @@ public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileDiffRequest request = - * FetchFileDiffRequest.newBuilder() - * .setWorkspace( + * PullGitCommitsRequest request = + * PullGitCommitsRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") + * .setRemoteBranch("remoteBranch-533119608") + * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * ApiFuture future = - * dataformClient.fetchFileDiffCallable().futureCall(request); + * ApiFuture future = dataformClient.pullGitCommitsCallable().futureCall(request); * // Do something. - * FetchFileDiffResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable fetchFileDiffCallable() { - return stub.fetchFileDiffCallable(); + public final UnaryCallable pullGitCommitsCallable() { + return stub.pullGitCommitsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Pushes Git commits from a Workspace to the Repository's remote. * *

Sample code: * @@ -1896,33 +1941,27 @@ public final UnaryCallable fetchFil * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( + * PushGitCommitsRequest request = + * PushGitCommitsRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setRemoteBranch("remoteBranch-533119608") * .build(); - * for (QueryDirectoryContentsResponse.DirectoryEntry element : - * dataformClient.queryDirectoryContents(request).iterateAll()) { - * // doThingsWith(element); - * } + * dataformClient.pushGitCommits(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryDirectoryContentsPagedResponse queryDirectoryContents( - QueryDirectoryContentsRequest request) { - return queryDirectoryContentsPagedCallable().call(request); + public final void pushGitCommits(PushGitCommitsRequest request) { + pushGitCommitsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Pushes Git commits from a Workspace to the Repository's remote. * *

Sample code: * @@ -1933,32 +1972,26 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( + * PushGitCommitsRequest request = + * PushGitCommitsRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setRemoteBranch("remoteBranch-533119608") * .build(); - * ApiFuture future = - * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); + * ApiFuture future = dataformClient.pushGitCommitsCallable().futureCall(request); * // Do something. - * for (QueryDirectoryContentsResponse.DirectoryEntry element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * future.get(); * } * } */ - public final UnaryCallable - queryDirectoryContentsPagedCallable() { - return stub.queryDirectoryContentsPagedCallable(); + public final UnaryCallable pushGitCommitsCallable() { + return stub.pushGitCommitsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Fetches Git statuses for the files in a Workspace. * *

Sample code: * @@ -1969,40 +2002,27 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( + * FetchFileGitStatusesRequest request = + * FetchFileGitStatusesRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") * .build(); - * while (true) { - * QueryDirectoryContentsResponse response = - * dataformClient.queryDirectoryContentsCallable().call(request); - * for (QueryDirectoryContentsResponse.DirectoryEntry element : - * response.getDirectoryEntriesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request); * } * } - */ - public final UnaryCallable - queryDirectoryContentsCallable() { - return stub.queryDirectoryContentsCallable(); + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchFileGitStatusesResponse fetchFileGitStatuses( + FetchFileGitStatusesRequest request) { + return fetchFileGitStatusesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a directory inside a Workspace. + * Fetches Git statuses for the files in a Workspace. * *

Sample code: * @@ -2013,27 +2033,58 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MakeDirectoryRequest request = - * MakeDirectoryRequest.newBuilder() - * .setWorkspace( + * FetchFileGitStatusesRequest request = + * FetchFileGitStatusesRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") * .build(); - * MakeDirectoryResponse response = dataformClient.makeDirectory(request); + * ApiFuture future = + * dataformClient.fetchFileGitStatusesCallable().futureCall(request); + * // Do something. + * FetchFileGitStatusesResponse response = future.get(); + * } + * } + */ + public final UnaryCallable + fetchFileGitStatusesCallable() { + return stub.fetchFileGitStatusesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches Git ahead/behind against a remote branch. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   FetchGitAheadBehindRequest request =
+   *       FetchGitAheadBehindRequest.newBuilder()
+   *           .setName(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setRemoteBranch("remoteBranch-533119608")
+   *           .build();
+   *   FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request);
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { - return makeDirectoryCallable().call(request); + public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { + return fetchGitAheadBehindCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a directory inside a Workspace. + * Fetches Git ahead/behind against a remote branch. * *

Sample code: * @@ -2044,27 +2095,28 @@ public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MakeDirectoryRequest request = - * MakeDirectoryRequest.newBuilder() - * .setWorkspace( + * FetchGitAheadBehindRequest request = + * FetchGitAheadBehindRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") + * .setRemoteBranch("remoteBranch-533119608") * .build(); - * ApiFuture future = - * dataformClient.makeDirectoryCallable().futureCall(request); + * ApiFuture future = + * dataformClient.fetchGitAheadBehindCallable().futureCall(request); * // Do something. - * MakeDirectoryResponse response = future.get(); + * FetchGitAheadBehindResponse response = future.get(); * } * } */ - public final UnaryCallable makeDirectoryCallable() { - return stub.makeDirectoryCallable(); + public final UnaryCallable + fetchGitAheadBehindCallable() { + return stub.fetchGitAheadBehindCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a directory (inside a Workspace) and all of its contents. + * Applies a Git commit for uncommitted files in a Workspace. * *

Sample code: * @@ -2075,27 +2127,29 @@ public final UnaryCallable makeDire * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveDirectoryRequest request = - * RemoveDirectoryRequest.newBuilder() - * .setWorkspace( + * CommitWorkspaceChangesRequest request = + * CommitWorkspaceChangesRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") + * .setAuthor(CommitAuthor.newBuilder().build()) + * .setCommitMessage("commitMessage2039804624") + * .addAllPaths(new ArrayList()) * .build(); - * dataformClient.removeDirectory(request); + * dataformClient.commitWorkspaceChanges(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeDirectory(RemoveDirectoryRequest request) { - removeDirectoryCallable().call(request); + public final void commitWorkspaceChanges(CommitWorkspaceChangesRequest request) { + commitWorkspaceChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a directory (inside a Workspace) and all of its contents. + * Applies a Git commit for uncommitted files in a Workspace. * *

Sample code: * @@ -2106,26 +2160,29 @@ public final void removeDirectory(RemoveDirectoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveDirectoryRequest request = - * RemoveDirectoryRequest.newBuilder() - * .setWorkspace( + * CommitWorkspaceChangesRequest request = + * CommitWorkspaceChangesRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") + * .setAuthor(CommitAuthor.newBuilder().build()) + * .setCommitMessage("commitMessage2039804624") + * .addAllPaths(new ArrayList()) * .build(); - * ApiFuture future = dataformClient.removeDirectoryCallable().futureCall(request); + * ApiFuture future = dataformClient.commitWorkspaceChangesCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable removeDirectoryCallable() { - return stub.removeDirectoryCallable(); + public final UnaryCallable + commitWorkspaceChangesCallable() { + return stub.commitWorkspaceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Performs a Git reset for uncommitted files in a Workspace. * *

Sample code: * @@ -2136,28 +2193,28 @@ public final UnaryCallable removeDirectoryCallabl * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveDirectoryRequest request = - * MoveDirectoryRequest.newBuilder() - * .setWorkspace( + * ResetWorkspaceChangesRequest request = + * ResetWorkspaceChangesRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * .addAllPaths(new ArrayList()) + * .setClean(true) * .build(); - * MoveDirectoryResponse response = dataformClient.moveDirectory(request); + * dataformClient.resetWorkspaceChanges(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { - return moveDirectoryCallable().call(request); + public final void resetWorkspaceChanges(ResetWorkspaceChangesRequest request) { + resetWorkspaceChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Performs a Git reset for uncommitted files in a Workspace. * *

Sample code: * @@ -2168,28 +2225,27 @@ public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveDirectoryRequest request = - * MoveDirectoryRequest.newBuilder() - * .setWorkspace( + * ResetWorkspaceChangesRequest request = + * ResetWorkspaceChangesRequest.newBuilder() + * .setName( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * .addAllPaths(new ArrayList()) + * .setClean(true) * .build(); - * ApiFuture future = - * dataformClient.moveDirectoryCallable().futureCall(request); + * ApiFuture future = dataformClient.resetWorkspaceChangesCallable().futureCall(request); * // Do something. - * MoveDirectoryResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable moveDirectoryCallable() { - return stub.moveDirectoryCallable(); + public final UnaryCallable resetWorkspaceChangesCallable() { + return stub.resetWorkspaceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Workspace). + * Fetches Git diff for an uncommitted file in a Workspace. * *

Sample code: * @@ -2200,27 +2256,27 @@ public final UnaryCallable moveDire * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReadFileRequest request = - * ReadFileRequest.newBuilder() + * FetchFileDiffRequest request = + * FetchFileDiffRequest.newBuilder() * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .setPath("path3433509") * .build(); - * ReadFileResponse response = dataformClient.readFile(request); + * FetchFileDiffResponse response = dataformClient.fetchFileDiff(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadFileResponse readFile(ReadFileRequest request) { - return readFileCallable().call(request); + public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { + return fetchFileDiffCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Workspace). + * Fetches Git diff for an uncommitted file in a Workspace. * *

Sample code: * @@ -2231,26 +2287,27 @@ public final ReadFileResponse readFile(ReadFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReadFileRequest request = - * ReadFileRequest.newBuilder() + * FetchFileDiffRequest request = + * FetchFileDiffRequest.newBuilder() * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .setPath("path3433509") * .build(); - * ApiFuture future = dataformClient.readFileCallable().futureCall(request); + * ApiFuture future = + * dataformClient.fetchFileDiffCallable().futureCall(request); * // Do something. - * ReadFileResponse response = future.get(); + * FetchFileDiffResponse response = future.get(); * } * } */ - public final UnaryCallable readFileCallable() { - return stub.readFileCallable(); + public final UnaryCallable fetchFileDiffCallable() { + return stub.fetchFileDiffCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a file (inside a Workspace). + * Returns the contents of a given Workspace directory. * *

Sample code: * @@ -2261,27 +2318,32 @@ public final UnaryCallable readFileCallable() * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveFileRequest request = - * RemoveFileRequest.newBuilder() + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * dataformClient.removeFile(request); + * for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeFile(RemoveFileRequest request) { - removeFileCallable().call(request); + public final QueryDirectoryContentsPagedResponse queryDirectoryContents( + QueryDirectoryContentsRequest request) { + return queryDirectoryContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a file (inside a Workspace). + * Returns the contents of a given Workspace directory. * *

Sample code: * @@ -2292,26 +2354,32 @@ public final void removeFile(RemoveFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveFileRequest request = - * RemoveFileRequest.newBuilder() + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = dataformClient.removeFileCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); * // Do something. - * future.get(); + * for (DirectoryEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable removeFileCallable() { - return stub.removeFileCallable(); + public final UnaryCallable + queryDirectoryContentsPagedCallable() { + return stub.queryDirectoryContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a file (inside a Workspace) to a new location. + * Returns the contents of a given Workspace directory. * *

Sample code: * @@ -2322,28 +2390,39 @@ public final UnaryCallable removeFileCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveFileRequest request = - * MoveFileRequest.newBuilder() + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * MoveFileResponse response = dataformClient.moveFile(request); + * while (true) { + * QueryDirectoryContentsResponse response = + * dataformClient.queryDirectoryContentsCallable().call(request); + * for (DirectoryEntry element : response.getDirectoryEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveFileResponse moveFile(MoveFileRequest request) { - return moveFileCallable().call(request); + public final UnaryCallable + queryDirectoryContentsCallable() { + return stub.queryDirectoryContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a file (inside a Workspace) to a new location. + * Creates a directory inside a Workspace. * *

Sample code: * @@ -2354,27 +2433,27 @@ public final MoveFileResponse moveFile(MoveFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveFileRequest request = - * MoveFileRequest.newBuilder() + * MakeDirectoryRequest request = + * MakeDirectoryRequest.newBuilder() * .setWorkspace( * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .setPath("path3433509") - * .setNewPath("newPath1845080549") * .build(); - * ApiFuture future = dataformClient.moveFileCallable().futureCall(request); - * // Do something. - * MoveFileResponse response = future.get(); + * MakeDirectoryResponse response = dataformClient.makeDirectory(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable moveFileCallable() { - return stub.moveFileCallable(); + public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { + return makeDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Writes to a file (inside a Workspace). + * Creates a directory inside a Workspace. * *

Sample code: * @@ -2385,28 +2464,1536 @@ public final UnaryCallable moveFileCallable() * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WriteFileRequest request = - * WriteFileRequest.newBuilder() + * MakeDirectoryRequest request = + * MakeDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.makeDirectoryCallable().futureCall(request); + * // Do something. + * MakeDirectoryResponse response = future.get(); + * } + * } + */ + public final UnaryCallable makeDirectoryCallable() { + return stub.makeDirectoryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a directory (inside a Workspace) and all of its contents. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RemoveDirectoryRequest request =
+   *       RemoveDirectoryRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .build();
+   *   dataformClient.removeDirectory(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDirectory(RemoveDirectoryRequest request) { + removeDirectoryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a directory (inside a Workspace) and all of its contents. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RemoveDirectoryRequest request =
+   *       RemoveDirectoryRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .build();
+   *   ApiFuture future = dataformClient.removeDirectoryCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable removeDirectoryCallable() { + return stub.removeDirectoryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   MoveDirectoryRequest request =
+   *       MoveDirectoryRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .setNewPath("newPath1845080549")
+   *           .build();
+   *   MoveDirectoryResponse response = dataformClient.moveDirectory(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { + return moveDirectoryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   MoveDirectoryRequest request =
+   *       MoveDirectoryRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .setNewPath("newPath1845080549")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.moveDirectoryCallable().futureCall(request);
+   *   // Do something.
+   *   MoveDirectoryResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable moveDirectoryCallable() { + return stub.moveDirectoryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the contents of a file (inside a Workspace). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ReadFileRequest request =
+   *       ReadFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .build();
+   *   ReadFileResponse response = dataformClient.readFile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadFileResponse readFile(ReadFileRequest request) { + return readFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the contents of a file (inside a Workspace). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ReadFileRequest request =
+   *       ReadFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .build();
+   *   ApiFuture future = dataformClient.readFileCallable().futureCall(request);
+   *   // Do something.
+   *   ReadFileResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable readFileCallable() { + return stub.readFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a file (inside a Workspace). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RemoveFileRequest request =
+   *       RemoveFileRequest.newBuilder()
    *           .setWorkspace(
    *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
    *                   .toString())
-   *           .setPath("path3433509")
-   *           .setContents(ByteString.EMPTY)
+   *           .setPath("path3433509")
+   *           .build();
+   *   dataformClient.removeFile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeFile(RemoveFileRequest request) { + removeFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a file (inside a Workspace). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RemoveFileRequest request =
+   *       RemoveFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .build();
+   *   ApiFuture future = dataformClient.removeFileCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable removeFileCallable() { + return stub.removeFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Moves a file (inside a Workspace) to a new location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   MoveFileRequest request =
+   *       MoveFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .setNewPath("newPath1845080549")
+   *           .build();
+   *   MoveFileResponse response = dataformClient.moveFile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MoveFileResponse moveFile(MoveFileRequest request) { + return moveFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Moves a file (inside a Workspace) to a new location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   MoveFileRequest request =
+   *       MoveFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .setNewPath("newPath1845080549")
+   *           .build();
+   *   ApiFuture future = dataformClient.moveFileCallable().futureCall(request);
+   *   // Do something.
+   *   MoveFileResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable moveFileCallable() { + return stub.moveFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes to a file (inside a Workspace). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   WriteFileRequest request =
+   *       WriteFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .setContents(ByteString.EMPTY)
+   *           .build();
+   *   WriteFileResponse response = dataformClient.writeFile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteFileResponse writeFile(WriteFileRequest request) { + return writeFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes to a file (inside a Workspace). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   WriteFileRequest request =
+   *       WriteFileRequest.newBuilder()
+   *           .setWorkspace(
+   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+   *                   .toString())
+   *           .setPath("path3433509")
+   *           .setContents(ByteString.EMPTY)
+   *           .build();
+   *   ApiFuture future = dataformClient.writeFileCallable().futureCall(request);
+   *   // Do something.
+   *   WriteFileResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable writeFileCallable() { + return stub.writeFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ReleaseConfigs in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The repository in which to list release configs. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listReleaseConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ReleaseConfigs in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The repository in which to list release configs. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder().setParent(parent).build(); + return listReleaseConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ReleaseConfigs in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListReleaseConfigsRequest request =
+   *       ListReleaseConfigsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReleaseConfigsPagedResponse listReleaseConfigs( + ListReleaseConfigsRequest request) { + return listReleaseConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ReleaseConfigs in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListReleaseConfigsRequest request =
+   *       ListReleaseConfigsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.listReleaseConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ReleaseConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listReleaseConfigsPagedCallable() { + return stub.listReleaseConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ReleaseConfigs in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListReleaseConfigsRequest request =
+   *       ListReleaseConfigsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListReleaseConfigsResponse response =
+   *         dataformClient.listReleaseConfigsCallable().call(request);
+   *     for (ReleaseConfig element : response.getReleaseConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listReleaseConfigsCallable() { + return stub.listReleaseConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ReleaseConfigName name =
+   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]");
+   *   ReleaseConfig response = dataformClient.getReleaseConfig(name);
+   * }
+   * }
+ * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { + GetReleaseConfigRequest request = + GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String name =
+   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+   *           .toString();
+   *   ReleaseConfig response = dataformClient.getReleaseConfig(name);
+   * }
+   * }
+ * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig getReleaseConfig(String name) { + GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name).build(); + return getReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   GetReleaseConfigRequest request =
+   *       GetReleaseConfigRequest.newBuilder()
+   *           .setName(
+   *               ReleaseConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ReleaseConfig response = dataformClient.getReleaseConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { + return getReleaseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   GetReleaseConfigRequest request =
+   *       GetReleaseConfigRequest.newBuilder()
+   *           .setName(
+   *               ReleaseConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.getReleaseConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ReleaseConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getReleaseConfigCallable() { + return stub.getReleaseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ReleaseConfig in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build();
+   *   String releaseConfigId = "releaseConfigId1350457636";
+   *   ReleaseConfig response =
+   *       dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId);
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the release config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param releaseConfig Required. The release config to create. + * @param releaseConfigId Required. The ID to use for the release config, which will become the + * final component of the release config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig createReleaseConfig( + RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setReleaseConfig(releaseConfig) + .setReleaseConfigId(releaseConfigId) + .build(); + return createReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ReleaseConfig in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build();
+   *   String releaseConfigId = "releaseConfigId1350457636";
+   *   ReleaseConfig response =
+   *       dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId);
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the release config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param releaseConfig Required. The release config to create. + * @param releaseConfigId Required. The ID to use for the release config, which will become the + * final component of the release config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig createReleaseConfig( + String parent, ReleaseConfig releaseConfig, String releaseConfigId) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() + .setParent(parent) + .setReleaseConfig(releaseConfig) + .setReleaseConfigId(releaseConfigId) + .build(); + return createReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ReleaseConfig in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateReleaseConfigRequest request =
+   *       CreateReleaseConfigRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setReleaseConfig(ReleaseConfig.newBuilder().build())
+   *           .setReleaseConfigId("releaseConfigId1350457636")
+   *           .build();
+   *   ReleaseConfig response = dataformClient.createReleaseConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest request) { + return createReleaseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ReleaseConfig in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateReleaseConfigRequest request =
+   *       CreateReleaseConfigRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setReleaseConfig(ReleaseConfig.newBuilder().build())
+   *           .setReleaseConfigId("releaseConfigId1350457636")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createReleaseConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ReleaseConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createReleaseConfigCallable() { + return stub.createReleaseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask);
+   * }
+   * }
+ * + * @param releaseConfig Required. The release config to update. + * @param updateMask Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig updateReleaseConfig( + ReleaseConfig releaseConfig, FieldMask updateMask) { + UpdateReleaseConfigRequest request = + UpdateReleaseConfigRequest.newBuilder() + .setReleaseConfig(releaseConfig) + .setUpdateMask(updateMask) + .build(); + return updateReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   UpdateReleaseConfigRequest request =
+   *       UpdateReleaseConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setReleaseConfig(ReleaseConfig.newBuilder().build())
+   *           .build();
+   *   ReleaseConfig response = dataformClient.updateReleaseConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest request) { + return updateReleaseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   UpdateReleaseConfigRequest request =
+   *       UpdateReleaseConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setReleaseConfig(ReleaseConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.updateReleaseConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ReleaseConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateReleaseConfigCallable() { + return stub.updateReleaseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ReleaseConfigName name =
+   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]");
+   *   dataformClient.deleteReleaseConfig(name);
+   * }
+   * }
+ * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteReleaseConfig(ReleaseConfigName name) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String name =
+   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+   *           .toString();
+   *   dataformClient.deleteReleaseConfig(name);
+   * }
+   * }
+ * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteReleaseConfig(String name) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder().setName(name).build(); + deleteReleaseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   DeleteReleaseConfigRequest request =
+   *       DeleteReleaseConfigRequest.newBuilder()
+   *           .setName(
+   *               ReleaseConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   dataformClient.deleteReleaseConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) { + deleteReleaseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ReleaseConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   DeleteReleaseConfigRequest request =
+   *       DeleteReleaseConfigRequest.newBuilder()
+   *           .setName(
+   *               ReleaseConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = dataformClient.deleteReleaseConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteReleaseConfigCallable() { + return stub.deleteReleaseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The repository in which to list compilation results. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { + ListCompilationResultsRequest request = + ListCompilationResultsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCompilationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The repository in which to list compilation results. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompilationResultsPagedResponse listCompilationResults(String parent) { + ListCompilationResultsRequest request = + ListCompilationResultsRequest.newBuilder().setParent(parent).build(); + return listCompilationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListCompilationResultsRequest request =
+   *       ListCompilationResultsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (CompilationResult element :
+   *       dataformClient.listCompilationResults(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompilationResultsPagedResponse listCompilationResults( + ListCompilationResultsRequest request) { + return listCompilationResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListCompilationResultsRequest request =
+   *       ListCompilationResultsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.listCompilationResultsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CompilationResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCompilationResultsPagedCallable() { + return stub.listCompilationResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListCompilationResultsRequest request =
+   *       ListCompilationResultsRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListCompilationResultsResponse response =
+   *         dataformClient.listCompilationResultsCallable().call(request);
+   *     for (CompilationResult element : response.getCompilationResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCompilationResultsCallable() { + return stub.listCompilationResultsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CompilationResultName name =
+   *       CompilationResultName.of(
+   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]");
+   *   CompilationResult response = dataformClient.getCompilationResult(name);
+   * }
+   * }
+ * + * @param name Required. The compilation result's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult getCompilationResult(CompilationResultName name) { + GetCompilationResultRequest request = + GetCompilationResultRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String name =
+   *       CompilationResultName.of(
+   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+   *           .toString();
+   *   CompilationResult response = dataformClient.getCompilationResult(name);
+   * }
+   * }
+ * + * @param name Required. The compilation result's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult getCompilationResult(String name) { + GetCompilationResultRequest request = + GetCompilationResultRequest.newBuilder().setName(name).build(); + return getCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   GetCompilationResultRequest request =
+   *       GetCompilationResultRequest.newBuilder()
+   *           .setName(
+   *               CompilationResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+   *                   .toString())
+   *           .build();
+   *   CompilationResult response = dataformClient.getCompilationResult(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult getCompilationResult(GetCompilationResultRequest request) { + return getCompilationResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   GetCompilationResultRequest request =
+   *       GetCompilationResultRequest.newBuilder()
+   *           .setName(
+   *               CompilationResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.getCompilationResultCallable().futureCall(request);
+   *   // Do something.
+   *   CompilationResult response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCompilationResultCallable() { + return stub.getCompilationResultCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   CompilationResult compilationResult = CompilationResult.newBuilder().build();
+   *   CompilationResult response =
+   *       dataformClient.createCompilationResult(parent, compilationResult);
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the compilation result. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param compilationResult Required. The compilation result to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult createCompilationResult( + RepositoryName parent, CompilationResult compilationResult) { + CreateCompilationResultRequest request = + CreateCompilationResultRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCompilationResult(compilationResult) + .build(); + return createCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   CompilationResult compilationResult = CompilationResult.newBuilder().build();
+   *   CompilationResult response =
+   *       dataformClient.createCompilationResult(parent, compilationResult);
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the compilation result. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param compilationResult Required. The compilation result to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult createCompilationResult( + String parent, CompilationResult compilationResult) { + CreateCompilationResultRequest request = + CreateCompilationResultRequest.newBuilder() + .setParent(parent) + .setCompilationResult(compilationResult) + .build(); + return createCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateCompilationResultRequest request =
+   *       CreateCompilationResultRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setCompilationResult(CompilationResult.newBuilder().build())
+   *           .build();
+   *   CompilationResult response = dataformClient.createCompilationResult(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) { + return createCompilationResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateCompilationResultRequest request =
+   *       CreateCompilationResultRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setCompilationResult(CompilationResult.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createCompilationResultCallable().futureCall(request);
+   *   // Do something.
+   *   CompilationResult response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCompilationResultCallable() { + return stub.createCompilationResultCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns CompilationResultActions in a given CompilationResult. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   QueryCompilationResultActionsRequest request =
+   *       QueryCompilationResultActionsRequest.newBuilder()
+   *           .setName(
+   *               CompilationResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (CompilationResultAction element :
+   *       dataformClient.queryCompilationResultActions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions( + QueryCompilationResultActionsRequest request) { + return queryCompilationResultActionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns CompilationResultActions in a given CompilationResult. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   QueryCompilationResultActionsRequest request =
+   *       QueryCompilationResultActionsRequest.newBuilder()
+   *           .setName(
+   *               CompilationResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
    *           .build();
-   *   WriteFileResponse response = dataformClient.writeFile(request);
+   *   ApiFuture future =
+   *       dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CompilationResultAction element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WriteFileResponse writeFile(WriteFileRequest request) { - return writeFileCallable().call(request); + public final UnaryCallable< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> + queryCompilationResultActionsPagedCallable() { + return stub.queryCompilationResultActionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Writes to a file (inside a Workspace). + * Returns CompilationResultActions in a given CompilationResult. * *

Sample code: * @@ -2417,27 +4004,41 @@ public final WriteFileResponse writeFile(WriteFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WriteFileRequest request = - * WriteFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * QueryCompilationResultActionsRequest request = + * QueryCompilationResultActionsRequest.newBuilder() + * .setName( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") * .toString()) - * .setPath("path3433509") - * .setContents(ByteString.EMPTY) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = dataformClient.writeFileCallable().futureCall(request); - * // Do something. - * WriteFileResponse response = future.get(); + * while (true) { + * QueryCompilationResultActionsResponse response = + * dataformClient.queryCompilationResultActionsCallable().call(request); + * for (CompilationResultAction element : response.getCompilationResultActionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable writeFileCallable() { - return stub.writeFileCallable(); + public final UnaryCallable< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> + queryCompilationResultActionsCallable() { + return stub.queryCompilationResultActionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists WorkflowConfigs in a given Repository. * *

Sample code: * @@ -2449,27 +4050,27 @@ public final UnaryCallable writeFileCallabl * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { + * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list compilation results. Must be in the - * format `projects/*/locations/*/repositories/*`. + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { - ListCompilationResultsRequest request = - ListCompilationResultsRequest.newBuilder() + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listCompilationResults(request); + return listWorkflowConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists WorkflowConfigs in a given Repository. * *

Sample code: * @@ -2481,25 +4082,25 @@ public final ListCompilationResultsPagedResponse listCompilationResults(Reposito * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { + * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list compilation results. Must be in the - * format `projects/*/locations/*/repositories/*`. + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(String parent) { - ListCompilationResultsRequest request = - ListCompilationResultsRequest.newBuilder().setParent(parent).build(); - return listCompilationResults(request); + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder().setParent(parent).build(); + return listWorkflowConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists WorkflowConfigs in a given Repository. * *

Sample code: * @@ -2510,14 +4111,13 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() + * ListWorkflowConfigsRequest request = + * ListWorkflowConfigsRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (CompilationResult element : - * dataformClient.listCompilationResults(request).iterateAll()) { + * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2526,14 +4126,14 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults( - ListCompilationResultsRequest request) { - return listCompilationResultsPagedCallable().call(request); + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( + ListWorkflowConfigsRequest request) { + return listWorkflowConfigsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists WorkflowConfigs in a given Repository. * *

Sample code: * @@ -2544,29 +4144,29 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() + * ListWorkflowConfigsRequest request = + * ListWorkflowConfigsRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * dataformClient.listCompilationResultsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.listWorkflowConfigsPagedCallable().futureCall(request); * // Do something. - * for (CompilationResult element : future.get().iterateAll()) { + * for (WorkflowConfig element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listCompilationResultsPagedCallable() { - return stub.listCompilationResultsPagedCallable(); + public final UnaryCallable + listWorkflowConfigsPagedCallable() { + return stub.listWorkflowConfigsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists WorkflowConfigs in a given Repository. * *

Sample code: * @@ -2577,16 +4177,16 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() + * ListWorkflowConfigsRequest request = + * ListWorkflowConfigsRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListCompilationResultsResponse response = - * dataformClient.listCompilationResultsCallable().call(request); - * for (CompilationResult element : response.getCompilationResultsList()) { + * ListWorkflowConfigsResponse response = + * dataformClient.listWorkflowConfigsCallable().call(request); + * for (WorkflowConfig element : response.getWorkflowConfigsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2599,14 +4199,14 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * } * } */ - public final UnaryCallable - listCompilationResultsCallable() { - return stub.listCompilationResultsCallable(); + public final UnaryCallable + listWorkflowConfigsCallable() { + return stub.listWorkflowConfigsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single WorkflowConfig. * *

Sample code: * @@ -2617,27 +4217,26 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CompilationResultName name = - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); - * CompilationResult response = dataformClient.getCompilationResult(name); + * WorkflowConfigName name = + * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + * WorkflowConfig response = dataformClient.getWorkflowConfig(name); * } * } * - * @param name Required. The compilation result's name. + * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(CompilationResultName name) { - GetCompilationResultRequest request = - GetCompilationResultRequest.newBuilder() + public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { + GetWorkflowConfigRequest request = + GetWorkflowConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getCompilationResult(request); + return getWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single WorkflowConfig. * *

Sample code: * @@ -2649,25 +4248,23 @@ public final CompilationResult getCompilationResult(CompilationResultName name) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String name = - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") * .toString(); - * CompilationResult response = dataformClient.getCompilationResult(name); + * WorkflowConfig response = dataformClient.getWorkflowConfig(name); * } * } * - * @param name Required. The compilation result's name. + * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(String name) { - GetCompilationResultRequest request = - GetCompilationResultRequest.newBuilder().setName(name).build(); - return getCompilationResult(request); + public final WorkflowConfig getWorkflowConfig(String name) { + GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder().setName(name).build(); + return getWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single WorkflowConfig. * *

Sample code: * @@ -2678,27 +4275,27 @@ public final CompilationResult getCompilationResult(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetCompilationResultRequest request = - * GetCompilationResultRequest.newBuilder() + * GetWorkflowConfigRequest request = + * GetWorkflowConfigRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkflowConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") * .toString()) * .build(); - * CompilationResult response = dataformClient.getCompilationResult(request); + * WorkflowConfig response = dataformClient.getWorkflowConfig(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(GetCompilationResultRequest request) { - return getCompilationResultCallable().call(request); + public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) { + return getWorkflowConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single WorkflowConfig. * *

Sample code: * @@ -2709,28 +4306,27 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetCompilationResultRequest request = - * GetCompilationResultRequest.newBuilder() + * GetWorkflowConfigRequest request = + * GetWorkflowConfigRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkflowConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") * .toString()) * .build(); - * ApiFuture future = - * dataformClient.getCompilationResultCallable().futureCall(request); + * ApiFuture future = + * dataformClient.getWorkflowConfigCallable().futureCall(request); * // Do something. - * CompilationResult response = future.get(); + * WorkflowConfig response = future.get(); * } * } */ - public final UnaryCallable - getCompilationResultCallable() { - return stub.getCompilationResultCallable(); + public final UnaryCallable getWorkflowConfigCallable() { + return stub.getWorkflowConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Creates a new WorkflowConfig in a given Repository. * *

Sample code: * @@ -2742,30 +4338,34 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * CompilationResult compilationResult = CompilationResult.newBuilder().build(); - * CompilationResult response = - * dataformClient.createCompilationResult(parent, compilationResult); + * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + * String workflowConfigId = "workflowConfigId-1331048228"; + * WorkflowConfig response = + * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); * } * } * - * @param parent Required. The repository in which to create the compilation result. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param compilationResult Required. The compilation result to create. + * @param parent Required. The repository in which to create the workflow config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param workflowConfig Required. The workflow config to create. + * @param workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult( - RepositoryName parent, CompilationResult compilationResult) { - CreateCompilationResultRequest request = - CreateCompilationResultRequest.newBuilder() + public final WorkflowConfig createWorkflowConfig( + RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setCompilationResult(compilationResult) + .setWorkflowConfig(workflowConfig) + .setWorkflowConfigId(workflowConfigId) .build(); - return createCompilationResult(request); + return createWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Creates a new WorkflowConfig in a given Repository. * *

Sample code: * @@ -2777,30 +4377,158 @@ public final CompilationResult createCompilationResult( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * CompilationResult compilationResult = CompilationResult.newBuilder().build(); - * CompilationResult response = - * dataformClient.createCompilationResult(parent, compilationResult); + * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + * String workflowConfigId = "workflowConfigId-1331048228"; + * WorkflowConfig response = + * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); * } * } * - * @param parent Required. The repository in which to create the compilation result. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param compilationResult Required. The compilation result to create. + * @param parent Required. The repository in which to create the workflow config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param workflowConfig Required. The workflow config to create. + * @param workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult( - String parent, CompilationResult compilationResult) { - CreateCompilationResultRequest request = - CreateCompilationResultRequest.newBuilder() + public final WorkflowConfig createWorkflowConfig( + String parent, WorkflowConfig workflowConfig, String workflowConfigId) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() .setParent(parent) - .setCompilationResult(compilationResult) + .setWorkflowConfig(workflowConfig) + .setWorkflowConfigId(workflowConfigId) .build(); - return createCompilationResult(request); + return createWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkflowConfigRequest request =
+   *       CreateWorkflowConfigRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
+   *           .setWorkflowConfigId("workflowConfigId-1331048228")
+   *           .build();
+   *   WorkflowConfig response = dataformClient.createWorkflowConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest request) { + return createWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkflowConfigRequest request =
+   *       CreateWorkflowConfigRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
+   *           .setWorkflowConfigId("workflowConfigId-1331048228")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createWorkflowConfigCallable().futureCall(request);
+   *   // Do something.
+   *   WorkflowConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkflowConfigCallable() { + return stub.createWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask);
+   * }
+   * }
+ * + * @param workflowConfig Required. The workflow config to update. + * @param updateMask Optional. Specifies the fields to be updated in the workflow config. If left + * unset, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig updateWorkflowConfig( + WorkflowConfig workflowConfig, FieldMask updateMask) { + UpdateWorkflowConfigRequest request = + UpdateWorkflowConfigRequest.newBuilder() + .setWorkflowConfig(workflowConfig) + .setUpdateMask(updateMask) + .build(); + return updateWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   UpdateWorkflowConfigRequest request =
+   *       UpdateWorkflowConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
+   *           .build();
+   *   WorkflowConfig response = dataformClient.updateWorkflowConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest request) { + return updateWorkflowConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Updates a single WorkflowConfig. * *

Sample code: * @@ -2811,25 +4539,26 @@ public final CompilationResult createCompilationResult( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateCompilationResultRequest request = - * CreateCompilationResultRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCompilationResult(CompilationResult.newBuilder().build()) + * UpdateWorkflowConfigRequest request = + * UpdateWorkflowConfigRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) * .build(); - * CompilationResult response = dataformClient.createCompilationResult(request); + * ApiFuture future = + * dataformClient.updateWorkflowConfigCallable().futureCall(request); + * // Do something. + * WorkflowConfig response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) { - return createCompilationResultCallable().call(request); + public final UnaryCallable + updateWorkflowConfigCallable() { + return stub.updateWorkflowConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Deletes a single WorkflowConfig. * *

Sample code: * @@ -2840,26 +4569,26 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateCompilationResultRequest request = - * CreateCompilationResultRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCompilationResult(CompilationResult.newBuilder().build()) - * .build(); - * ApiFuture future = - * dataformClient.createCompilationResultCallable().futureCall(request); - * // Do something. - * CompilationResult response = future.get(); + * WorkflowConfigName name = + * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + * dataformClient.deleteWorkflowConfig(name); * } * } + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - createCompilationResultCallable() { - return stub.createCompilationResultCallable(); + public final void deleteWorkflowConfig(WorkflowConfigName name) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single WorkflowConfig. * *

Sample code: * @@ -2870,34 +4599,25 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() - * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * for (CompilationResultAction element : - * dataformClient.queryCompilationResultActions(request).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * .toString(); + * dataformClient.deleteWorkflowConfig(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions( - QueryCompilationResultActionsRequest request) { - return queryCompilationResultActionsPagedCallable().call(request); + public final void deleteWorkflowConfig(String name) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder().setName(name).build(); + deleteWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single WorkflowConfig. * *

Sample code: * @@ -2908,34 +4628,27 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() + * DeleteWorkflowConfigRequest request = + * DeleteWorkflowConfigRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkflowConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request); - * // Do something. - * for (CompilationResultAction element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * dataformClient.deleteWorkflowConfig(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - return stub.queryCompilationResultActionsPagedCallable(); + public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { + deleteWorkflowConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single WorkflowConfig. * *

Sample code: * @@ -2946,36 +4659,21 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() + * DeleteWorkflowConfigRequest request = + * DeleteWorkflowConfigRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkflowConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * while (true) { - * QueryCompilationResultActionsResponse response = - * dataformClient.queryCompilationResultActionsCallable().call(request); - * for (CompilationResultAction element : response.getCompilationResultActionsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = dataformClient.deleteWorkflowConfigCallable().futureCall(request); + * // Do something. + * future.get(); * } * } */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsCallable() { - return stub.queryCompilationResultActionsCallable(); + public final UnaryCallable deleteWorkflowConfigCallable() { + return stub.deleteWorkflowConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -3060,6 +4758,8 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * for (WorkflowInvocation element : * dataformClient.listWorkflowInvocations(request).iterateAll()) { @@ -3094,6 +4794,8 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request); @@ -3127,6 +4829,8 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * while (true) { * ListWorkflowInvocationsResponse response = @@ -3702,15 +5406,171 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * } * } */ - public final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable() { - return stub.queryWorkflowInvocationActionsCallable(); + public final UnaryCallable< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> + queryWorkflowInvocationActionsCallable() { + return stub.queryWorkflowInvocationActionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : dataformClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = dataformClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = dataformClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = dataformClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = dataformClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

Sample code: * @@ -3721,29 +5581,28 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * SetIamPolicyRequest request = + * SetIamPolicyRequest.newBuilder() + * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * for (Location element : dataformClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * Policy response = dataformClient.setIamPolicy(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

Sample code: * @@ -3754,29 +5613,26 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * SetIamPolicyRequest request = + * SetIamPolicyRequest.newBuilder() + * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = dataformClient.listLocationsPagedCallable().futureCall(request); + * ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Policy response = future.get(); * } * } */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. * *

Sample code: * @@ -3787,35 +5643,26 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetIamPolicyRequest request = + * GetIamPolicyRequest.newBuilder() + * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); - * while (true) { - * ListLocationsResponse response = dataformClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * Policy response = dataformClient.getIamPolicy(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. * *

Sample code: * @@ -3826,21 +5673,63 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = dataformClient.getLocation(request); + * GetIamPolicyRequest request = + * GetIamPolicyRequest.newBuilder() + * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setOptions(GetPolicyOptions.newBuilder().build()) + * .build(); + * ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); + * // Do something. + * Policy response = future.get(); + * } + * } + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = dataformClient.testIamPermissions(request);
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. * *

Sample code: * @@ -3851,15 +5740,21 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = dataformClient.getLocationCallable().futureCall(request); + * TestIamPermissionsRequest request = + * TestIamPermissionsRequest.newBuilder() + * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .addAllPermissions(new ArrayList()) + * .build(); + * ApiFuture future = + * dataformClient.testIamPermissionsCallable().futureCall(request); * // Do something. - * Location response = future.get(); + * TestIamPermissionsResponse response = future.get(); * } * } */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); } @Override @@ -3969,6 +5864,188 @@ protected ListRepositoriesFixedSizeCollection createCollection( } } + public static class QueryRepositoryDirectoryContentsPagedResponse + extends AbstractPagedListResponse< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry, + QueryRepositoryDirectoryContentsPage, + QueryRepositoryDirectoryContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryRepositoryDirectoryContentsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryRepositoryDirectoryContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryRepositoryDirectoryContentsPagedResponse( + QueryRepositoryDirectoryContentsPage page) { + super(page, QueryRepositoryDirectoryContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryRepositoryDirectoryContentsPage + extends AbstractPage< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry, + QueryRepositoryDirectoryContentsPage> { + + private QueryRepositoryDirectoryContentsPage( + PageContext< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry> + context, + QueryRepositoryDirectoryContentsResponse response) { + super(context, response); + } + + private static QueryRepositoryDirectoryContentsPage createEmptyPage() { + return new QueryRepositoryDirectoryContentsPage(null, null); + } + + @Override + protected QueryRepositoryDirectoryContentsPage createPage( + PageContext< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry> + context, + QueryRepositoryDirectoryContentsResponse response) { + return new QueryRepositoryDirectoryContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryRepositoryDirectoryContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry, + QueryRepositoryDirectoryContentsPage, + QueryRepositoryDirectoryContentsFixedSizeCollection> { + + private QueryRepositoryDirectoryContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryRepositoryDirectoryContentsFixedSizeCollection createEmptyCollection() { + return new QueryRepositoryDirectoryContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryRepositoryDirectoryContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryRepositoryDirectoryContentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class FetchRepositoryHistoryPagedResponse + extends AbstractPagedListResponse< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + CommitLogEntry, + FetchRepositoryHistoryPage, + FetchRepositoryHistoryFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchRepositoryHistoryPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchRepositoryHistoryPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchRepositoryHistoryPagedResponse(FetchRepositoryHistoryPage page) { + super(page, FetchRepositoryHistoryFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchRepositoryHistoryPage + extends AbstractPage< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + CommitLogEntry, + FetchRepositoryHistoryPage> { + + private FetchRepositoryHistoryPage( + PageContext + context, + FetchRepositoryHistoryResponse response) { + super(context, response); + } + + private static FetchRepositoryHistoryPage createEmptyPage() { + return new FetchRepositoryHistoryPage(null, null); + } + + @Override + protected FetchRepositoryHistoryPage createPage( + PageContext + context, + FetchRepositoryHistoryResponse response) { + return new FetchRepositoryHistoryPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchRepositoryHistoryFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + CommitLogEntry, + FetchRepositoryHistoryPage, + FetchRepositoryHistoryFixedSizeCollection> { + + private FetchRepositoryHistoryFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchRepositoryHistoryFixedSizeCollection createEmptyCollection() { + return new FetchRepositoryHistoryFixedSizeCollection(null, 0); + } + + @Override + protected FetchRepositoryHistoryFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchRepositoryHistoryFixedSizeCollection(pages, collectionSize); + } + } + public static class ListWorkspacesPagedResponse extends AbstractPagedListResponse< ListWorkspacesRequest, @@ -4049,15 +6126,12 @@ public static class QueryDirectoryContentsPagedResponse extends AbstractPagedListResponse< QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry, + DirectoryEntry, QueryDirectoryContentsPage, QueryDirectoryContentsFixedSizeCollection> { public static ApiFuture createAsync( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> + PageContext context, ApiFuture futureResponse) { ApiFuture futurePage = @@ -4077,14 +6151,11 @@ public static class QueryDirectoryContentsPage extends AbstractPage< QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry, + DirectoryEntry, QueryDirectoryContentsPage> { private QueryDirectoryContentsPage( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> + PageContext context, QueryDirectoryContentsResponse response) { super(context, response); @@ -4096,10 +6167,7 @@ private static QueryDirectoryContentsPage createEmptyPage() { @Override protected QueryDirectoryContentsPage createPage( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> + PageContext context, QueryDirectoryContentsResponse response) { return new QueryDirectoryContentsPage(context, response); @@ -4107,10 +6175,7 @@ protected QueryDirectoryContentsPage createPage( @Override public ApiFuture createPageAsync( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4121,7 +6186,7 @@ public static class QueryDirectoryContentsFixedSizeCollection extends AbstractFixedSizeCollection< QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry, + DirectoryEntry, QueryDirectoryContentsPage, QueryDirectoryContentsFixedSizeCollection> { @@ -4141,6 +6206,86 @@ protected QueryDirectoryContentsFixedSizeCollection createCollection( } } + public static class ListReleaseConfigsPagedResponse + extends AbstractPagedListResponse< + ListReleaseConfigsRequest, + ListReleaseConfigsResponse, + ReleaseConfig, + ListReleaseConfigsPage, + ListReleaseConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListReleaseConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListReleaseConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListReleaseConfigsPagedResponse(ListReleaseConfigsPage page) { + super(page, ListReleaseConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListReleaseConfigsPage + extends AbstractPage< + ListReleaseConfigsRequest, + ListReleaseConfigsResponse, + ReleaseConfig, + ListReleaseConfigsPage> { + + private ListReleaseConfigsPage( + PageContext context, + ListReleaseConfigsResponse response) { + super(context, response); + } + + private static ListReleaseConfigsPage createEmptyPage() { + return new ListReleaseConfigsPage(null, null); + } + + @Override + protected ListReleaseConfigsPage createPage( + PageContext context, + ListReleaseConfigsResponse response) { + return new ListReleaseConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListReleaseConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListReleaseConfigsRequest, + ListReleaseConfigsResponse, + ReleaseConfig, + ListReleaseConfigsPage, + ListReleaseConfigsFixedSizeCollection> { + + private ListReleaseConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListReleaseConfigsFixedSizeCollection createEmptyCollection() { + return new ListReleaseConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListReleaseConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListReleaseConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListCompilationResultsPagedResponse extends AbstractPagedListResponse< ListCompilationResultsRequest, @@ -4326,6 +6471,90 @@ protected QueryCompilationResultActionsFixedSizeCollection createCollection( } } + public static class ListWorkflowConfigsPagedResponse + extends AbstractPagedListResponse< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + WorkflowConfig, + ListWorkflowConfigsPage, + ListWorkflowConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListWorkflowConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListWorkflowConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListWorkflowConfigsPagedResponse(ListWorkflowConfigsPage page) { + super(page, ListWorkflowConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListWorkflowConfigsPage + extends AbstractPage< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + WorkflowConfig, + ListWorkflowConfigsPage> { + + private ListWorkflowConfigsPage( + PageContext + context, + ListWorkflowConfigsResponse response) { + super(context, response); + } + + private static ListWorkflowConfigsPage createEmptyPage() { + return new ListWorkflowConfigsPage(null, null); + } + + @Override + protected ListWorkflowConfigsPage createPage( + PageContext + context, + ListWorkflowConfigsResponse response) { + return new ListWorkflowConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListWorkflowConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + WorkflowConfig, + ListWorkflowConfigsPage, + ListWorkflowConfigsFixedSizeCollection> { + + private ListWorkflowConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListWorkflowConfigsFixedSizeCollection createEmptyCollection() { + return new ListWorkflowConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListWorkflowConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListWorkflowConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListWorkflowInvocationsPagedResponse extends AbstractPagedListResponse< ListWorkflowInvocationsRequest, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java index 836bc668c9e6..4f6a64554acb 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -16,13 +16,17 @@ package com.google.cloud.dataform.v1beta1; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.core.ApiFunction; @@ -42,6 +46,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -114,6 +123,43 @@ public UnaryCallSettings deleteRepositorySetting return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings(); } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ + public UnaryCallSettings + commitRepositoryChangesSettings() { + return ((DataformStubSettings) getStubSettings()).commitRepositoryChangesSettings(); + } + + /** Returns the object with the settings used for calls to readRepositoryFile. */ + public UnaryCallSettings + readRepositoryFileSettings() { + return ((DataformStubSettings) getStubSettings()).readRepositoryFileSettings(); + } + + /** Returns the object with the settings used for calls to queryRepositoryDirectoryContents. */ + public PagedCallSettings< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryRepositoryDirectoryContentsSettings(); + } + + /** Returns the object with the settings used for calls to fetchRepositoryHistory. */ + public PagedCallSettings< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + fetchRepositoryHistorySettings() { + return ((DataformStubSettings) getStubSettings()).fetchRepositoryHistorySettings(); + } + + /** Returns the object with the settings used for calls to computeRepositoryAccessTokenStatus. */ + public UnaryCallSettings< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusSettings() { + return ((DataformStubSettings) getStubSettings()).computeRepositoryAccessTokenStatusSettings(); + } + /** Returns the object with the settings used for calls to fetchRemoteBranches. */ public UnaryCallSettings fetchRemoteBranchesSettings() { @@ -229,6 +275,35 @@ public UnaryCallSettings writeFileSettings( return ((DataformStubSettings) getStubSettings()).writeFileSettings(); } + /** Returns the object with the settings used for calls to listReleaseConfigs. */ + public PagedCallSettings< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + listReleaseConfigsSettings() { + return ((DataformStubSettings) getStubSettings()).listReleaseConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getReleaseConfig. */ + public UnaryCallSettings getReleaseConfigSettings() { + return ((DataformStubSettings) getStubSettings()).getReleaseConfigSettings(); + } + + /** Returns the object with the settings used for calls to createReleaseConfig. */ + public UnaryCallSettings + createReleaseConfigSettings() { + return ((DataformStubSettings) getStubSettings()).createReleaseConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateReleaseConfig. */ + public UnaryCallSettings + updateReleaseConfigSettings() { + return ((DataformStubSettings) getStubSettings()).updateReleaseConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteReleaseConfig. */ + public UnaryCallSettings deleteReleaseConfigSettings() { + return ((DataformStubSettings) getStubSettings()).deleteReleaseConfigSettings(); + } + /** Returns the object with the settings used for calls to listCompilationResults. */ public PagedCallSettings< ListCompilationResultsRequest, @@ -259,6 +334,35 @@ public UnaryCallSettings writeFileSettings( return ((DataformStubSettings) getStubSettings()).queryCompilationResultActionsSettings(); } + /** Returns the object with the settings used for calls to listWorkflowConfigs. */ + public PagedCallSettings< + ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, ListWorkflowConfigsPagedResponse> + listWorkflowConfigsSettings() { + return ((DataformStubSettings) getStubSettings()).listWorkflowConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getWorkflowConfig. */ + public UnaryCallSettings getWorkflowConfigSettings() { + return ((DataformStubSettings) getStubSettings()).getWorkflowConfigSettings(); + } + + /** Returns the object with the settings used for calls to createWorkflowConfig. */ + public UnaryCallSettings + createWorkflowConfigSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkflowConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkflowConfig. */ + public UnaryCallSettings + updateWorkflowConfigSettings() { + return ((DataformStubSettings) getStubSettings()).updateWorkflowConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkflowConfig. */ + public UnaryCallSettings deleteWorkflowConfigSettings() { + return ((DataformStubSettings) getStubSettings()).deleteWorkflowConfigSettings(); + } + /** Returns the object with the settings used for calls to listWorkflowInvocations. */ public PagedCallSettings< ListWorkflowInvocationsRequest, @@ -312,6 +416,22 @@ public UnaryCallSettings getLocationSettings() { return ((DataformStubSettings) getStubSettings()).getLocationSettings(); } + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DataformStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataformStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DataformStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + public static final DataformSettings create(DataformStubSettings stub) throws IOException { return new DataformSettings.Builder(stub.toBuilder()).build(); } @@ -455,6 +575,45 @@ public UnaryCallSettings.Builder deleteRepositor return getStubSettingsBuilder().deleteRepositorySettings(); } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ + public UnaryCallSettings.Builder + commitRepositoryChangesSettings() { + return getStubSettingsBuilder().commitRepositoryChangesSettings(); + } + + /** Returns the builder for the settings used for calls to readRepositoryFile. */ + public UnaryCallSettings.Builder + readRepositoryFileSettings() { + return getStubSettingsBuilder().readRepositoryFileSettings(); + } + + /** Returns the builder for the settings used for calls to queryRepositoryDirectoryContents. */ + public PagedCallSettings.Builder< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsSettings() { + return getStubSettingsBuilder().queryRepositoryDirectoryContentsSettings(); + } + + /** Returns the builder for the settings used for calls to fetchRepositoryHistory. */ + public PagedCallSettings.Builder< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + fetchRepositoryHistorySettings() { + return getStubSettingsBuilder().fetchRepositoryHistorySettings(); + } + + /** + * Returns the builder for the settings used for calls to computeRepositoryAccessTokenStatus. + */ + public UnaryCallSettings.Builder< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusSettings() { + return getStubSettingsBuilder().computeRepositoryAccessTokenStatusSettings(); + } + /** Returns the builder for the settings used for calls to fetchRemoteBranches. */ public UnaryCallSettings.Builder fetchRemoteBranchesSettings() { @@ -575,6 +734,37 @@ public UnaryCallSettings.Builder writeFileS return getStubSettingsBuilder().writeFileSettings(); } + /** Returns the builder for the settings used for calls to listReleaseConfigs. */ + public PagedCallSettings.Builder< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + listReleaseConfigsSettings() { + return getStubSettingsBuilder().listReleaseConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getReleaseConfig. */ + public UnaryCallSettings.Builder + getReleaseConfigSettings() { + return getStubSettingsBuilder().getReleaseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createReleaseConfig. */ + public UnaryCallSettings.Builder + createReleaseConfigSettings() { + return getStubSettingsBuilder().createReleaseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateReleaseConfig. */ + public UnaryCallSettings.Builder + updateReleaseConfigSettings() { + return getStubSettingsBuilder().updateReleaseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteReleaseConfig. */ + public UnaryCallSettings.Builder + deleteReleaseConfigSettings() { + return getStubSettingsBuilder().deleteReleaseConfigSettings(); + } + /** Returns the builder for the settings used for calls to listCompilationResults. */ public PagedCallSettings.Builder< ListCompilationResultsRequest, @@ -605,6 +795,39 @@ public UnaryCallSettings.Builder writeFileS return getStubSettingsBuilder().queryCompilationResultActionsSettings(); } + /** Returns the builder for the settings used for calls to listWorkflowConfigs. */ + public PagedCallSettings.Builder< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + ListWorkflowConfigsPagedResponse> + listWorkflowConfigsSettings() { + return getStubSettingsBuilder().listWorkflowConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getWorkflowConfig. */ + public UnaryCallSettings.Builder + getWorkflowConfigSettings() { + return getStubSettingsBuilder().getWorkflowConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkflowConfig. */ + public UnaryCallSettings.Builder + createWorkflowConfigSettings() { + return getStubSettingsBuilder().createWorkflowConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkflowConfig. */ + public UnaryCallSettings.Builder + updateWorkflowConfigSettings() { + return getStubSettingsBuilder().updateWorkflowConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkflowConfig. */ + public UnaryCallSettings.Builder + deleteWorkflowConfigSettings() { + return getStubSettingsBuilder().deleteWorkflowConfigSettings(); + } + /** Returns the builder for the settings used for calls to listWorkflowInvocations. */ public PagedCallSettings.Builder< ListWorkflowInvocationsRequest, @@ -659,6 +882,22 @@ public UnaryCallSettings.Builder getLocationSettin return getStubSettingsBuilder().getLocationSettings(); } + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + @Override public DataformSettings build() throws IOException { return new DataformSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json index b6506d013373..e8944e5224ea 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json @@ -13,24 +13,42 @@ "CancelWorkflowInvocation": { "methods": ["cancelWorkflowInvocation", "cancelWorkflowInvocationCallable"] }, + "CommitRepositoryChanges": { + "methods": ["commitRepositoryChanges", "commitRepositoryChangesCallable"] + }, "CommitWorkspaceChanges": { "methods": ["commitWorkspaceChanges", "commitWorkspaceChangesCallable"] }, + "ComputeRepositoryAccessTokenStatus": { + "methods": ["computeRepositoryAccessTokenStatus", "computeRepositoryAccessTokenStatusCallable"] + }, "CreateCompilationResult": { "methods": ["createCompilationResult", "createCompilationResult", "createCompilationResult", "createCompilationResultCallable"] }, + "CreateReleaseConfig": { + "methods": ["createReleaseConfig", "createReleaseConfig", "createReleaseConfig", "createReleaseConfigCallable"] + }, "CreateRepository": { "methods": ["createRepository", "createRepository", "createRepository", "createRepositoryCallable"] }, + "CreateWorkflowConfig": { + "methods": ["createWorkflowConfig", "createWorkflowConfig", "createWorkflowConfig", "createWorkflowConfigCallable"] + }, "CreateWorkflowInvocation": { "methods": ["createWorkflowInvocation", "createWorkflowInvocation", "createWorkflowInvocation", "createWorkflowInvocationCallable"] }, "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "DeleteReleaseConfig": { + "methods": ["deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfigCallable"] + }, "DeleteRepository": { "methods": ["deleteRepository", "deleteRepository", "deleteRepository", "deleteRepositoryCallable"] }, + "DeleteWorkflowConfig": { + "methods": ["deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfigCallable"] + }, "DeleteWorkflowInvocation": { "methods": ["deleteWorkflowInvocation", "deleteWorkflowInvocation", "deleteWorkflowInvocation", "deleteWorkflowInvocationCallable"] }, @@ -49,15 +67,27 @@ "FetchRemoteBranches": { "methods": ["fetchRemoteBranches", "fetchRemoteBranchesCallable"] }, + "FetchRepositoryHistory": { + "methods": ["fetchRepositoryHistory", "fetchRepositoryHistoryPagedCallable", "fetchRepositoryHistoryCallable"] + }, "GetCompilationResult": { "methods": ["getCompilationResult", "getCompilationResult", "getCompilationResult", "getCompilationResultCallable"] }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "GetReleaseConfig": { + "methods": ["getReleaseConfig", "getReleaseConfig", "getReleaseConfig", "getReleaseConfigCallable"] + }, "GetRepository": { "methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"] }, + "GetWorkflowConfig": { + "methods": ["getWorkflowConfig", "getWorkflowConfig", "getWorkflowConfig", "getWorkflowConfigCallable"] + }, "GetWorkflowInvocation": { "methods": ["getWorkflowInvocation", "getWorkflowInvocation", "getWorkflowInvocation", "getWorkflowInvocationCallable"] }, @@ -73,9 +103,15 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListReleaseConfigs": { + "methods": ["listReleaseConfigs", "listReleaseConfigs", "listReleaseConfigs", "listReleaseConfigsPagedCallable", "listReleaseConfigsCallable"] + }, "ListRepositories": { "methods": ["listRepositories", "listRepositories", "listRepositories", "listRepositoriesPagedCallable", "listRepositoriesCallable"] }, + "ListWorkflowConfigs": { + "methods": ["listWorkflowConfigs", "listWorkflowConfigs", "listWorkflowConfigs", "listWorkflowConfigsPagedCallable", "listWorkflowConfigsCallable"] + }, "ListWorkflowInvocations": { "methods": ["listWorkflowInvocations", "listWorkflowInvocations", "listWorkflowInvocations", "listWorkflowInvocationsPagedCallable", "listWorkflowInvocationsCallable"] }, @@ -103,12 +139,18 @@ "QueryDirectoryContents": { "methods": ["queryDirectoryContents", "queryDirectoryContentsPagedCallable", "queryDirectoryContentsCallable"] }, + "QueryRepositoryDirectoryContents": { + "methods": ["queryRepositoryDirectoryContents", "queryRepositoryDirectoryContentsPagedCallable", "queryRepositoryDirectoryContentsCallable"] + }, "QueryWorkflowInvocationActions": { "methods": ["queryWorkflowInvocationActions", "queryWorkflowInvocationActionsPagedCallable", "queryWorkflowInvocationActionsCallable"] }, "ReadFile": { "methods": ["readFile", "readFileCallable"] }, + "ReadRepositoryFile": { + "methods": ["readRepositoryFile", "readRepositoryFileCallable"] + }, "RemoveDirectory": { "methods": ["removeDirectory", "removeDirectoryCallable"] }, @@ -118,9 +160,21 @@ "ResetWorkspaceChanges": { "methods": ["resetWorkspaceChanges", "resetWorkspaceChangesCallable"] }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateReleaseConfig": { + "methods": ["updateReleaseConfig", "updateReleaseConfig", "updateReleaseConfigCallable"] + }, "UpdateRepository": { "methods": ["updateRepository", "updateRepository", "updateRepositoryCallable"] }, + "UpdateWorkflowConfig": { + "methods": ["updateWorkflowConfig", "updateWorkflowConfig", "updateWorkflowConfigCallable"] + }, "WriteFile": { "methods": ["writeFile", "writeFileCallable"] } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java index 01f2e4aeb01d..031aadb21878 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java @@ -16,26 +16,37 @@ package com.google.cloud.dataform.v1beta1.stub; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; @@ -46,16 +57,24 @@ import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; @@ -72,15 +91,23 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; import com.google.cloud.dataform.v1beta1.RemoveFileRequest; import com.google.cloud.dataform.v1beta1.Repository; import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; import com.google.cloud.dataform.v1beta1.Workspace; import com.google.cloud.dataform.v1beta1.WriteFileRequest; @@ -89,6 +116,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -128,6 +160,47 @@ public UnaryCallable deleteRepositoryCallable() throw new UnsupportedOperationException("Not implemented: deleteRepositoryCallable()"); } + public UnaryCallable commitRepositoryChangesCallable() { + throw new UnsupportedOperationException("Not implemented: commitRepositoryChangesCallable()"); + } + + public UnaryCallable + readRepositoryFileCallable() { + throw new UnsupportedOperationException("Not implemented: readRepositoryFileCallable()"); + } + + public UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryRepositoryDirectoryContentsPagedCallable()"); + } + + public UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryRepositoryDirectoryContentsCallable()"); + } + + public UnaryCallable + fetchRepositoryHistoryPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchRepositoryHistoryPagedCallable()"); + } + + public UnaryCallable + fetchRepositoryHistoryCallable() { + throw new UnsupportedOperationException("Not implemented: fetchRepositoryHistoryCallable()"); + } + + public UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable() { + throw new UnsupportedOperationException( + "Not implemented: computeRepositoryAccessTokenStatusCallable()"); + } + public UnaryCallable fetchRemoteBranchesCallable() { throw new UnsupportedOperationException("Not implemented: fetchRemoteBranchesCallable()"); @@ -228,6 +301,32 @@ public UnaryCallable writeFileCallable() { throw new UnsupportedOperationException("Not implemented: writeFileCallable()"); } + public UnaryCallable + listReleaseConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listReleaseConfigsPagedCallable()"); + } + + public UnaryCallable + listReleaseConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listReleaseConfigsCallable()"); + } + + public UnaryCallable getReleaseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getReleaseConfigCallable()"); + } + + public UnaryCallable createReleaseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createReleaseConfigCallable()"); + } + + public UnaryCallable updateReleaseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateReleaseConfigCallable()"); + } + + public UnaryCallable deleteReleaseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteReleaseConfigCallable()"); + } + public UnaryCallable listCompilationResultsPagedCallable() { throw new UnsupportedOperationException( @@ -262,6 +361,32 @@ public UnaryCallable writeFileCallable() { "Not implemented: queryCompilationResultActionsCallable()"); } + public UnaryCallable + listWorkflowConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listWorkflowConfigsPagedCallable()"); + } + + public UnaryCallable + listWorkflowConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listWorkflowConfigsCallable()"); + } + + public UnaryCallable getWorkflowConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getWorkflowConfigCallable()"); + } + + public UnaryCallable createWorkflowConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createWorkflowConfigCallable()"); + } + + public UnaryCallable updateWorkflowConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateWorkflowConfigCallable()"); + } + + public UnaryCallable deleteWorkflowConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteWorkflowConfigCallable()"); + } + public UnaryCallable listWorkflowInvocationsPagedCallable() { throw new UnsupportedOperationException( @@ -318,6 +443,19 @@ public UnaryCallable getLocationCallable() { throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); } + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index c5eec998e991..06a61dae74da 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -16,13 +16,17 @@ package com.google.cloud.dataform.v1beta1.stub; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.core.ApiFunction; @@ -51,16 +55,25 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitLogEntry; +import com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; import com.google.cloud.dataform.v1beta1.CompilationResult; import com.google.cloud.dataform.v1beta1.CompilationResultAction; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; import com.google.cloud.dataform.v1beta1.FetchFileDiffResponse; import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; @@ -69,16 +82,24 @@ import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; @@ -95,15 +116,23 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; import com.google.cloud.dataform.v1beta1.RemoveFileRequest; import com.google.cloud.dataform.v1beta1.Repository; import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; import com.google.cloud.dataform.v1beta1.WorkflowInvocationAction; import com.google.cloud.dataform.v1beta1.Workspace; @@ -117,6 +146,11 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -172,6 +206,23 @@ public class DataformStubSettings extends StubSettings { private final UnaryCallSettings createRepositorySettings; private final UnaryCallSettings updateRepositorySettings; private final UnaryCallSettings deleteRepositorySettings; + private final UnaryCallSettings + commitRepositoryChangesSettings; + private final UnaryCallSettings + readRepositoryFileSettings; + private final PagedCallSettings< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsSettings; + private final PagedCallSettings< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + fetchRepositoryHistorySettings; + private final UnaryCallSettings< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusSettings; private final UnaryCallSettings fetchRemoteBranchesSettings; private final PagedCallSettings< @@ -208,6 +259,15 @@ public class DataformStubSettings extends StubSettings { private final UnaryCallSettings removeFileSettings; private final UnaryCallSettings moveFileSettings; private final UnaryCallSettings writeFileSettings; + private final PagedCallSettings< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + listReleaseConfigsSettings; + private final UnaryCallSettings getReleaseConfigSettings; + private final UnaryCallSettings + createReleaseConfigSettings; + private final UnaryCallSettings + updateReleaseConfigSettings; + private final UnaryCallSettings deleteReleaseConfigSettings; private final PagedCallSettings< ListCompilationResultsRequest, ListCompilationResultsResponse, @@ -222,6 +282,16 @@ public class DataformStubSettings extends StubSettings { QueryCompilationResultActionsResponse, QueryCompilationResultActionsPagedResponse> queryCompilationResultActionsSettings; + private final PagedCallSettings< + ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, ListWorkflowConfigsPagedResponse> + listWorkflowConfigsSettings; + private final UnaryCallSettings + getWorkflowConfigSettings; + private final UnaryCallSettings + createWorkflowConfigSettings; + private final UnaryCallSettings + updateWorkflowConfigSettings; + private final UnaryCallSettings deleteWorkflowConfigSettings; private final PagedCallSettings< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, @@ -244,6 +314,10 @@ public class DataformStubSettings extends StubSettings { ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; private static final PagedListDescriptor< ListRepositoriesRequest, ListRepositoriesResponse, Repository> @@ -284,6 +358,98 @@ public Iterable extractResources(ListRepositoriesResponse payload) { } }; + private static final PagedListDescriptor< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry> + QUERY_REPOSITORY_DIRECTORY_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryRepositoryDirectoryContentsRequest injectToken( + QueryRepositoryDirectoryContentsRequest payload, String token) { + return QueryRepositoryDirectoryContentsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public QueryRepositoryDirectoryContentsRequest injectPageSize( + QueryRepositoryDirectoryContentsRequest payload, int pageSize) { + return QueryRepositoryDirectoryContentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(QueryRepositoryDirectoryContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryRepositoryDirectoryContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryRepositoryDirectoryContentsResponse payload) { + return payload.getDirectoryEntriesList() == null + ? ImmutableList.of() + : payload.getDirectoryEntriesList(); + } + }; + + private static final PagedListDescriptor< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> + FETCH_REPOSITORY_HISTORY_PAGE_STR_DESC = + new PagedListDescriptor< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchRepositoryHistoryRequest injectToken( + FetchRepositoryHistoryRequest payload, String token) { + return FetchRepositoryHistoryRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FetchRepositoryHistoryRequest injectPageSize( + FetchRepositoryHistoryRequest payload, int pageSize) { + return FetchRepositoryHistoryRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(FetchRepositoryHistoryRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchRepositoryHistoryResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + FetchRepositoryHistoryResponse payload) { + return payload.getCommitsList() == null + ? ImmutableList.of() + : payload.getCommitsList(); + } + }; + private static final PagedListDescriptor LIST_WORKSPACES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -322,14 +488,10 @@ public Iterable extractResources(ListWorkspacesResponse payload) { }; private static final PagedListDescriptor< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> QUERY_DIRECTORY_CONTENTS_PAGE_STR_DESC = new PagedListDescriptor< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry>() { + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry>() { @Override public String emptyToken() { return ""; @@ -360,14 +522,54 @@ public String extractNextToken(QueryDirectoryContentsResponse payload) { } @Override - public Iterable extractResources( + public Iterable extractResources( QueryDirectoryContentsResponse payload) { return payload.getDirectoryEntriesList() == null - ? ImmutableList.of() + ? ImmutableList.of() : payload.getDirectoryEntriesList(); } }; + private static final PagedListDescriptor< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ReleaseConfig> + LIST_RELEASE_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ReleaseConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListReleaseConfigsRequest injectToken( + ListReleaseConfigsRequest payload, String token) { + return ListReleaseConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListReleaseConfigsRequest injectPageSize( + ListReleaseConfigsRequest payload, int pageSize) { + return ListReleaseConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListReleaseConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListReleaseConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListReleaseConfigsResponse payload) { + return payload.getReleaseConfigsList() == null + ? ImmutableList.of() + : payload.getReleaseConfigsList(); + } + }; + private static final PagedListDescriptor< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> LIST_COMPILATION_RESULTS_PAGE_STR_DESC = @@ -460,6 +662,46 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, WorkflowConfig> + LIST_WORKFLOW_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, WorkflowConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWorkflowConfigsRequest injectToken( + ListWorkflowConfigsRequest payload, String token) { + return ListWorkflowConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWorkflowConfigsRequest injectPageSize( + ListWorkflowConfigsRequest payload, int pageSize) { + return ListWorkflowConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListWorkflowConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWorkflowConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListWorkflowConfigsResponse payload) { + return payload.getWorkflowConfigsList() == null + ? ImmutableList.of() + : payload.getWorkflowConfigsList(); + } + }; + private static final PagedListDescriptor< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> LIST_WORKFLOW_INVOCATIONS_PAGE_STR_DESC = @@ -609,6 +851,64 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + QUERY_REPOSITORY_DIRECTORY_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse> + callable, + QueryRepositoryDirectoryContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + DirectoryEntry> + pageContext = + PageContext.create( + callable, + QUERY_REPOSITORY_DIRECTORY_CONTENTS_PAGE_STR_DESC, + request, + context); + return QueryRepositoryDirectoryContentsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + FETCH_REPOSITORY_HISTORY_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + FetchRepositoryHistoryRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> + pageContext = + PageContext.create( + callable, FETCH_REPOSITORY_HISTORY_PAGE_STR_DESC, request, context); + return FetchRepositoryHistoryPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> LIST_WORKSPACES_PAGE_STR_FACT = @@ -643,9 +943,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> pageContext = PageContext.create( callable, QUERY_DIRECTORY_CONTENTS_PAGE_STR_DESC, request, context); @@ -653,6 +951,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + LIST_RELEASE_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListReleaseConfigsRequest, + ListReleaseConfigsResponse, + ListReleaseConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListReleaseConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_RELEASE_CONFIGS_PAGE_STR_DESC, request, context); + return ListReleaseConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListCompilationResultsRequest, ListCompilationResultsResponse, @@ -712,6 +1031,27 @@ public ApiFuture getFuturePagedRespo } }; + private static final PagedListResponseFactory< + ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, ListWorkflowConfigsPagedResponse> + LIST_WORKFLOW_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + ListWorkflowConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListWorkflowConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_WORKFLOW_CONFIGS_PAGE_STR_DESC, request, context); + return ListWorkflowConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, @@ -816,6 +1156,43 @@ public UnaryCallSettings deleteRepositorySetting return deleteRepositorySettings; } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ + public UnaryCallSettings + commitRepositoryChangesSettings() { + return commitRepositoryChangesSettings; + } + + /** Returns the object with the settings used for calls to readRepositoryFile. */ + public UnaryCallSettings + readRepositoryFileSettings() { + return readRepositoryFileSettings; + } + + /** Returns the object with the settings used for calls to queryRepositoryDirectoryContents. */ + public PagedCallSettings< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsSettings() { + return queryRepositoryDirectoryContentsSettings; + } + + /** Returns the object with the settings used for calls to fetchRepositoryHistory. */ + public PagedCallSettings< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + fetchRepositoryHistorySettings() { + return fetchRepositoryHistorySettings; + } + + /** Returns the object with the settings used for calls to computeRepositoryAccessTokenStatus. */ + public UnaryCallSettings< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusSettings() { + return computeRepositoryAccessTokenStatusSettings; + } + /** Returns the object with the settings used for calls to fetchRemoteBranches. */ public UnaryCallSettings fetchRemoteBranchesSettings() { @@ -931,6 +1308,35 @@ public UnaryCallSettings writeFileSettings( return writeFileSettings; } + /** Returns the object with the settings used for calls to listReleaseConfigs. */ + public PagedCallSettings< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + listReleaseConfigsSettings() { + return listReleaseConfigsSettings; + } + + /** Returns the object with the settings used for calls to getReleaseConfig. */ + public UnaryCallSettings getReleaseConfigSettings() { + return getReleaseConfigSettings; + } + + /** Returns the object with the settings used for calls to createReleaseConfig. */ + public UnaryCallSettings + createReleaseConfigSettings() { + return createReleaseConfigSettings; + } + + /** Returns the object with the settings used for calls to updateReleaseConfig. */ + public UnaryCallSettings + updateReleaseConfigSettings() { + return updateReleaseConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteReleaseConfig. */ + public UnaryCallSettings deleteReleaseConfigSettings() { + return deleteReleaseConfigSettings; + } + /** Returns the object with the settings used for calls to listCompilationResults. */ public PagedCallSettings< ListCompilationResultsRequest, @@ -961,6 +1367,35 @@ public UnaryCallSettings writeFileSettings( return queryCompilationResultActionsSettings; } + /** Returns the object with the settings used for calls to listWorkflowConfigs. */ + public PagedCallSettings< + ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, ListWorkflowConfigsPagedResponse> + listWorkflowConfigsSettings() { + return listWorkflowConfigsSettings; + } + + /** Returns the object with the settings used for calls to getWorkflowConfig. */ + public UnaryCallSettings getWorkflowConfigSettings() { + return getWorkflowConfigSettings; + } + + /** Returns the object with the settings used for calls to createWorkflowConfig. */ + public UnaryCallSettings + createWorkflowConfigSettings() { + return createWorkflowConfigSettings; + } + + /** Returns the object with the settings used for calls to updateWorkflowConfig. */ + public UnaryCallSettings + updateWorkflowConfigSettings() { + return updateWorkflowConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkflowConfig. */ + public UnaryCallSettings deleteWorkflowConfigSettings() { + return deleteWorkflowConfigSettings; + } + /** Returns the object with the settings used for calls to listWorkflowInvocations. */ public PagedCallSettings< ListWorkflowInvocationsRequest, @@ -1014,6 +1449,22 @@ public UnaryCallSettings getLocationSettings() { return getLocationSettings; } + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + public DataformStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -1123,6 +1574,13 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { createRepositorySettings = settingsBuilder.createRepositorySettings().build(); updateRepositorySettings = settingsBuilder.updateRepositorySettings().build(); deleteRepositorySettings = settingsBuilder.deleteRepositorySettings().build(); + commitRepositoryChangesSettings = settingsBuilder.commitRepositoryChangesSettings().build(); + readRepositoryFileSettings = settingsBuilder.readRepositoryFileSettings().build(); + queryRepositoryDirectoryContentsSettings = + settingsBuilder.queryRepositoryDirectoryContentsSettings().build(); + fetchRepositoryHistorySettings = settingsBuilder.fetchRepositoryHistorySettings().build(); + computeRepositoryAccessTokenStatusSettings = + settingsBuilder.computeRepositoryAccessTokenStatusSettings().build(); fetchRemoteBranchesSettings = settingsBuilder.fetchRemoteBranchesSettings().build(); listWorkspacesSettings = settingsBuilder.listWorkspacesSettings().build(); getWorkspaceSettings = settingsBuilder.getWorkspaceSettings().build(); @@ -1144,11 +1602,21 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { removeFileSettings = settingsBuilder.removeFileSettings().build(); moveFileSettings = settingsBuilder.moveFileSettings().build(); writeFileSettings = settingsBuilder.writeFileSettings().build(); + listReleaseConfigsSettings = settingsBuilder.listReleaseConfigsSettings().build(); + getReleaseConfigSettings = settingsBuilder.getReleaseConfigSettings().build(); + createReleaseConfigSettings = settingsBuilder.createReleaseConfigSettings().build(); + updateReleaseConfigSettings = settingsBuilder.updateReleaseConfigSettings().build(); + deleteReleaseConfigSettings = settingsBuilder.deleteReleaseConfigSettings().build(); listCompilationResultsSettings = settingsBuilder.listCompilationResultsSettings().build(); getCompilationResultSettings = settingsBuilder.getCompilationResultSettings().build(); createCompilationResultSettings = settingsBuilder.createCompilationResultSettings().build(); queryCompilationResultActionsSettings = settingsBuilder.queryCompilationResultActionsSettings().build(); + listWorkflowConfigsSettings = settingsBuilder.listWorkflowConfigsSettings().build(); + getWorkflowConfigSettings = settingsBuilder.getWorkflowConfigSettings().build(); + createWorkflowConfigSettings = settingsBuilder.createWorkflowConfigSettings().build(); + updateWorkflowConfigSettings = settingsBuilder.updateWorkflowConfigSettings().build(); + deleteWorkflowConfigSettings = settingsBuilder.deleteWorkflowConfigSettings().build(); listWorkflowInvocationsSettings = settingsBuilder.listWorkflowInvocationsSettings().build(); getWorkflowInvocationSettings = settingsBuilder.getWorkflowInvocationSettings().build(); createWorkflowInvocationSettings = settingsBuilder.createWorkflowInvocationSettings().build(); @@ -1158,6 +1626,9 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.queryWorkflowInvocationActionsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); } /** Builder for DataformStubSettings. */ @@ -1173,6 +1644,23 @@ public static class Builder extends StubSettings.Builder deleteRepositorySettings; + private final UnaryCallSettings.Builder + commitRepositoryChangesSettings; + private final UnaryCallSettings.Builder + readRepositoryFileSettings; + private final PagedCallSettings.Builder< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsSettings; + private final PagedCallSettings.Builder< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + fetchRepositoryHistorySettings; + private final UnaryCallSettings.Builder< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusSettings; private final UnaryCallSettings.Builder fetchRemoteBranchesSettings; private final PagedCallSettings.Builder< @@ -1211,6 +1699,17 @@ public static class Builder extends StubSettings.Builder removeFileSettings; private final UnaryCallSettings.Builder moveFileSettings; private final UnaryCallSettings.Builder writeFileSettings; + private final PagedCallSettings.Builder< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + listReleaseConfigsSettings; + private final UnaryCallSettings.Builder + getReleaseConfigSettings; + private final UnaryCallSettings.Builder + createReleaseConfigSettings; + private final UnaryCallSettings.Builder + updateReleaseConfigSettings; + private final UnaryCallSettings.Builder + deleteReleaseConfigSettings; private final PagedCallSettings.Builder< ListCompilationResultsRequest, ListCompilationResultsResponse, @@ -1225,6 +1724,19 @@ public static class Builder extends StubSettings.Builder queryCompilationResultActionsSettings; + private final PagedCallSettings.Builder< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + ListWorkflowConfigsPagedResponse> + listWorkflowConfigsSettings; + private final UnaryCallSettings.Builder + getWorkflowConfigSettings; + private final UnaryCallSettings.Builder + createWorkflowConfigSettings; + private final UnaryCallSettings.Builder + updateWorkflowConfigSettings; + private final UnaryCallSettings.Builder + deleteWorkflowConfigSettings; private final PagedCallSettings.Builder< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, @@ -1247,6 +1759,10 @@ public static class Builder extends StubSettings.Builder listLocationsSettings; private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1279,6 +1795,13 @@ protected Builder(ClientContext clientContext) { createRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + commitRepositoryChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + readRepositoryFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryRepositoryDirectoryContentsSettings = + PagedCallSettings.newBuilder(QUERY_REPOSITORY_DIRECTORY_CONTENTS_PAGE_STR_FACT); + fetchRepositoryHistorySettings = + PagedCallSettings.newBuilder(FETCH_REPOSITORY_HISTORY_PAGE_STR_FACT); + computeRepositoryAccessTokenStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); fetchRemoteBranchesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listWorkspacesSettings = PagedCallSettings.newBuilder(LIST_WORKSPACES_PAGE_STR_FACT); getWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1301,12 +1824,23 @@ protected Builder(ClientContext clientContext) { removeFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); moveFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); writeFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listReleaseConfigsSettings = PagedCallSettings.newBuilder(LIST_RELEASE_CONFIGS_PAGE_STR_FACT); + getReleaseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createReleaseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateReleaseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteReleaseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCompilationResultsSettings = PagedCallSettings.newBuilder(LIST_COMPILATION_RESULTS_PAGE_STR_FACT); getCompilationResultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createCompilationResultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); queryCompilationResultActionsSettings = PagedCallSettings.newBuilder(QUERY_COMPILATION_RESULT_ACTIONS_PAGE_STR_FACT); + listWorkflowConfigsSettings = + PagedCallSettings.newBuilder(LIST_WORKFLOW_CONFIGS_PAGE_STR_FACT); + getWorkflowConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkflowConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateWorkflowConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteWorkflowConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listWorkflowInvocationsSettings = PagedCallSettings.newBuilder(LIST_WORKFLOW_INVOCATIONS_PAGE_STR_FACT); getWorkflowInvocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1317,6 +1851,9 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1325,6 +1862,11 @@ protected Builder(ClientContext clientContext) { createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + commitRepositoryChangesSettings, + readRepositoryFileSettings, + queryRepositoryDirectoryContentsSettings, + fetchRepositoryHistorySettings, + computeRepositoryAccessTokenStatusSettings, fetchRemoteBranchesSettings, listWorkspacesSettings, getWorkspaceSettings, @@ -1346,10 +1888,20 @@ protected Builder(ClientContext clientContext) { removeFileSettings, moveFileSettings, writeFileSettings, + listReleaseConfigsSettings, + getReleaseConfigSettings, + createReleaseConfigSettings, + updateReleaseConfigSettings, + deleteReleaseConfigSettings, listCompilationResultsSettings, getCompilationResultSettings, createCompilationResultSettings, queryCompilationResultActionsSettings, + listWorkflowConfigsSettings, + getWorkflowConfigSettings, + createWorkflowConfigSettings, + updateWorkflowConfigSettings, + deleteWorkflowConfigSettings, listWorkflowInvocationsSettings, getWorkflowInvocationSettings, createWorkflowInvocationSettings, @@ -1357,7 +1909,10 @@ protected Builder(ClientContext clientContext) { cancelWorkflowInvocationSettings, queryWorkflowInvocationActionsSettings, listLocationsSettings, - getLocationSettings); + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); initDefaults(this); } @@ -1369,6 +1924,13 @@ protected Builder(DataformStubSettings settings) { createRepositorySettings = settings.createRepositorySettings.toBuilder(); updateRepositorySettings = settings.updateRepositorySettings.toBuilder(); deleteRepositorySettings = settings.deleteRepositorySettings.toBuilder(); + commitRepositoryChangesSettings = settings.commitRepositoryChangesSettings.toBuilder(); + readRepositoryFileSettings = settings.readRepositoryFileSettings.toBuilder(); + queryRepositoryDirectoryContentsSettings = + settings.queryRepositoryDirectoryContentsSettings.toBuilder(); + fetchRepositoryHistorySettings = settings.fetchRepositoryHistorySettings.toBuilder(); + computeRepositoryAccessTokenStatusSettings = + settings.computeRepositoryAccessTokenStatusSettings.toBuilder(); fetchRemoteBranchesSettings = settings.fetchRemoteBranchesSettings.toBuilder(); listWorkspacesSettings = settings.listWorkspacesSettings.toBuilder(); getWorkspaceSettings = settings.getWorkspaceSettings.toBuilder(); @@ -1390,11 +1952,21 @@ protected Builder(DataformStubSettings settings) { removeFileSettings = settings.removeFileSettings.toBuilder(); moveFileSettings = settings.moveFileSettings.toBuilder(); writeFileSettings = settings.writeFileSettings.toBuilder(); + listReleaseConfigsSettings = settings.listReleaseConfigsSettings.toBuilder(); + getReleaseConfigSettings = settings.getReleaseConfigSettings.toBuilder(); + createReleaseConfigSettings = settings.createReleaseConfigSettings.toBuilder(); + updateReleaseConfigSettings = settings.updateReleaseConfigSettings.toBuilder(); + deleteReleaseConfigSettings = settings.deleteReleaseConfigSettings.toBuilder(); listCompilationResultsSettings = settings.listCompilationResultsSettings.toBuilder(); getCompilationResultSettings = settings.getCompilationResultSettings.toBuilder(); createCompilationResultSettings = settings.createCompilationResultSettings.toBuilder(); queryCompilationResultActionsSettings = settings.queryCompilationResultActionsSettings.toBuilder(); + listWorkflowConfigsSettings = settings.listWorkflowConfigsSettings.toBuilder(); + getWorkflowConfigSettings = settings.getWorkflowConfigSettings.toBuilder(); + createWorkflowConfigSettings = settings.createWorkflowConfigSettings.toBuilder(); + updateWorkflowConfigSettings = settings.updateWorkflowConfigSettings.toBuilder(); + deleteWorkflowConfigSettings = settings.deleteWorkflowConfigSettings.toBuilder(); listWorkflowInvocationsSettings = settings.listWorkflowInvocationsSettings.toBuilder(); getWorkflowInvocationSettings = settings.getWorkflowInvocationSettings.toBuilder(); createWorkflowInvocationSettings = settings.createWorkflowInvocationSettings.toBuilder(); @@ -1404,6 +1976,9 @@ protected Builder(DataformStubSettings settings) { settings.queryWorkflowInvocationActionsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1412,6 +1987,11 @@ protected Builder(DataformStubSettings settings) { createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + commitRepositoryChangesSettings, + readRepositoryFileSettings, + queryRepositoryDirectoryContentsSettings, + fetchRepositoryHistorySettings, + computeRepositoryAccessTokenStatusSettings, fetchRemoteBranchesSettings, listWorkspacesSettings, getWorkspaceSettings, @@ -1433,10 +2013,20 @@ protected Builder(DataformStubSettings settings) { removeFileSettings, moveFileSettings, writeFileSettings, + listReleaseConfigsSettings, + getReleaseConfigSettings, + createReleaseConfigSettings, + updateReleaseConfigSettings, + deleteReleaseConfigSettings, listCompilationResultsSettings, getCompilationResultSettings, createCompilationResultSettings, queryCompilationResultActionsSettings, + listWorkflowConfigsSettings, + getWorkflowConfigSettings, + createWorkflowConfigSettings, + updateWorkflowConfigSettings, + deleteWorkflowConfigSettings, listWorkflowInvocationsSettings, getWorkflowInvocationSettings, createWorkflowInvocationSettings, @@ -1444,7 +2034,10 @@ protected Builder(DataformStubSettings settings) { cancelWorkflowInvocationSettings, queryWorkflowInvocationActionsSettings, listLocationsSettings, - getLocationSettings); + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); } private static Builder createDefault() { @@ -1499,6 +2092,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .commitRepositoryChangesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .readRepositoryFileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryRepositoryDirectoryContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .fetchRepositoryHistorySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .computeRepositoryAccessTokenStatusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .fetchRemoteBranchesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1604,6 +2222,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listReleaseConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getReleaseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createReleaseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateReleaseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteReleaseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listCompilationResultsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1624,6 +2267,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listWorkflowConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getWorkflowConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createWorkflowConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateWorkflowConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteWorkflowConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listWorkflowInvocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1664,6 +2332,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -1711,6 +2394,45 @@ public UnaryCallSettings.Builder deleteRepositor return deleteRepositorySettings; } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ + public UnaryCallSettings.Builder + commitRepositoryChangesSettings() { + return commitRepositoryChangesSettings; + } + + /** Returns the builder for the settings used for calls to readRepositoryFile. */ + public UnaryCallSettings.Builder + readRepositoryFileSettings() { + return readRepositoryFileSettings; + } + + /** Returns the builder for the settings used for calls to queryRepositoryDirectoryContents. */ + public PagedCallSettings.Builder< + QueryRepositoryDirectoryContentsRequest, + QueryRepositoryDirectoryContentsResponse, + QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsSettings() { + return queryRepositoryDirectoryContentsSettings; + } + + /** Returns the builder for the settings used for calls to fetchRepositoryHistory. */ + public PagedCallSettings.Builder< + FetchRepositoryHistoryRequest, + FetchRepositoryHistoryResponse, + FetchRepositoryHistoryPagedResponse> + fetchRepositoryHistorySettings() { + return fetchRepositoryHistorySettings; + } + + /** + * Returns the builder for the settings used for calls to computeRepositoryAccessTokenStatus. + */ + public UnaryCallSettings.Builder< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusSettings() { + return computeRepositoryAccessTokenStatusSettings; + } + /** Returns the builder for the settings used for calls to fetchRemoteBranches. */ public UnaryCallSettings.Builder fetchRemoteBranchesSettings() { @@ -1831,6 +2553,37 @@ public UnaryCallSettings.Builder writeFileS return writeFileSettings; } + /** Returns the builder for the settings used for calls to listReleaseConfigs. */ + public PagedCallSettings.Builder< + ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse> + listReleaseConfigsSettings() { + return listReleaseConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getReleaseConfig. */ + public UnaryCallSettings.Builder + getReleaseConfigSettings() { + return getReleaseConfigSettings; + } + + /** Returns the builder for the settings used for calls to createReleaseConfig. */ + public UnaryCallSettings.Builder + createReleaseConfigSettings() { + return createReleaseConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateReleaseConfig. */ + public UnaryCallSettings.Builder + updateReleaseConfigSettings() { + return updateReleaseConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteReleaseConfig. */ + public UnaryCallSettings.Builder + deleteReleaseConfigSettings() { + return deleteReleaseConfigSettings; + } + /** Returns the builder for the settings used for calls to listCompilationResults. */ public PagedCallSettings.Builder< ListCompilationResultsRequest, @@ -1861,6 +2614,39 @@ public UnaryCallSettings.Builder writeFileS return queryCompilationResultActionsSettings; } + /** Returns the builder for the settings used for calls to listWorkflowConfigs. */ + public PagedCallSettings.Builder< + ListWorkflowConfigsRequest, + ListWorkflowConfigsResponse, + ListWorkflowConfigsPagedResponse> + listWorkflowConfigsSettings() { + return listWorkflowConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getWorkflowConfig. */ + public UnaryCallSettings.Builder + getWorkflowConfigSettings() { + return getWorkflowConfigSettings; + } + + /** Returns the builder for the settings used for calls to createWorkflowConfig. */ + public UnaryCallSettings.Builder + createWorkflowConfigSettings() { + return createWorkflowConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkflowConfig. */ + public UnaryCallSettings.Builder + updateWorkflowConfigSettings() { + return updateWorkflowConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkflowConfig. */ + public UnaryCallSettings.Builder + deleteWorkflowConfigSettings() { + return deleteWorkflowConfigSettings; + } + /** Returns the builder for the settings used for calls to listWorkflowInvocations. */ public PagedCallSettings.Builder< ListWorkflowInvocationsRequest, @@ -1915,6 +2701,22 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + @Override public DataformStubSettings build() throws IOException { return new DataformStubSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java index dc47e79799cd..7f6718ddc179 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -16,13 +16,17 @@ package com.google.cloud.dataform.v1beta1.stub; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.core.BetaApi; @@ -34,13 +38,20 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; @@ -51,16 +62,24 @@ import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; @@ -77,15 +96,23 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; import com.google.cloud.dataform.v1beta1.RemoveFileRequest; import com.google.cloud.dataform.v1beta1.Repository; import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; import com.google.cloud.dataform.v1beta1.Workspace; import com.google.cloud.dataform.v1beta1.WriteFileRequest; @@ -94,6 +121,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -162,6 +194,75 @@ public class GrpcDataformStub extends DataformStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + commitRepositoryChangesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CommitRepositoryChanges") + .setRequestMarshaller( + ProtoUtils.marshaller(CommitRepositoryChangesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + readRepositoryFileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ReadRepositoryFile") + .setRequestMarshaller( + ProtoUtils.marshaller(ReadRepositoryFileRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReadRepositoryFileResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/QueryRepositoryDirectoryContents") + .setRequestMarshaller( + ProtoUtils.marshaller( + QueryRepositoryDirectoryContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + QueryRepositoryDirectoryContentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse> + fetchRepositoryHistoryMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/FetchRepositoryHistory") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchRepositoryHistoryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchRepositoryHistoryResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/ComputeRepositoryAccessTokenStatus") + .setRequestMarshaller( + ProtoUtils.marshaller( + ComputeRepositoryAccessTokenStatusRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ComputeRepositoryAccessTokenStatusResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor fetchRemoteBranchesMethodDescriptor = MethodDescriptor.newBuilder() @@ -377,6 +478,57 @@ public class GrpcDataformStub extends DataformStub { .setResponseMarshaller(ProtoUtils.marshaller(WriteFileResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listReleaseConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListReleaseConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListReleaseConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListReleaseConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getReleaseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetReleaseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetReleaseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ReleaseConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createReleaseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateReleaseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateReleaseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ReleaseConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateReleaseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateReleaseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateReleaseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ReleaseConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteReleaseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteReleaseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteReleaseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor< ListCompilationResultsRequest, ListCompilationResultsResponse> listCompilationResultsMethodDescriptor = @@ -425,6 +577,57 @@ public class GrpcDataformStub extends DataformStub { ProtoUtils.marshaller(QueryCompilationResultActionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listWorkflowConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListWorkflowConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListWorkflowConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListWorkflowConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getWorkflowConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetWorkflowConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWorkflowConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createWorkflowConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateWorkflowConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkflowConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateWorkflowConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateWorkflowConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateWorkflowConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteWorkflowConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteWorkflowConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse> listWorkflowInvocationsMethodDescriptor = @@ -513,6 +716,33 @@ public class GrpcDataformStub extends DataformStub { .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -521,6 +751,23 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable + commitRepositoryChangesCallable; + private final UnaryCallable + readRepositoryFileCallable; + private final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable; + private final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable; + private final UnaryCallable + fetchRepositoryHistoryCallable; + private final UnaryCallable + fetchRepositoryHistoryPagedCallable; + private final UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable; private final UnaryCallable fetchRemoteBranchesCallable; private final UnaryCallable listWorkspacesCallable; @@ -551,6 +798,16 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable removeFileCallable; private final UnaryCallable moveFileCallable; private final UnaryCallable writeFileCallable; + private final UnaryCallable + listReleaseConfigsCallable; + private final UnaryCallable + listReleaseConfigsPagedCallable; + private final UnaryCallable getReleaseConfigCallable; + private final UnaryCallable + createReleaseConfigCallable; + private final UnaryCallable + updateReleaseConfigCallable; + private final UnaryCallable deleteReleaseConfigCallable; private final UnaryCallable listCompilationResultsCallable; private final UnaryCallable @@ -565,6 +822,16 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable< QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> queryCompilationResultActionsPagedCallable; + private final UnaryCallable + listWorkflowConfigsCallable; + private final UnaryCallable + listWorkflowConfigsPagedCallable; + private final UnaryCallable getWorkflowConfigCallable; + private final UnaryCallable + createWorkflowConfigCallable; + private final UnaryCallable + updateWorkflowConfigCallable; + private final UnaryCallable deleteWorkflowConfigCallable; private final UnaryCallable listWorkflowInvocationsCallable; private final UnaryCallable @@ -587,6 +854,10 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -678,6 +949,69 @@ protected GrpcDataformStub( return builder.build(); }) .build(); + GrpcCallSettings + commitRepositoryChangesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(commitRepositoryChangesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + readRepositoryFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(readRepositoryFileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(queryRepositoryDirectoryContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + fetchRepositoryHistoryTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(fetchRepositoryHistoryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(computeRepositoryAccessTokenStatusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings fetchRemoteBranchesTransportSettings = GrpcCallSettings.newBuilder() @@ -895,6 +1229,61 @@ protected GrpcDataformStub( return builder.build(); }) .build(); + GrpcCallSettings + listReleaseConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listReleaseConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getReleaseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getReleaseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createReleaseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createReleaseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateReleaseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateReleaseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "release_config.name", + String.valueOf(request.getReleaseConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteReleaseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteReleaseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listCompilationResultsTransportSettings = GrpcCallSettings @@ -942,6 +1331,61 @@ protected GrpcDataformStub( return builder.build(); }) .build(); + GrpcCallSettings + listWorkflowConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listWorkflowConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getWorkflowConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createWorkflowConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateWorkflowConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateWorkflowConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "workflow_config.name", + String.valueOf(request.getWorkflowConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteWorkflowConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkflowConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listWorkflowInvocationsTransportSettings = GrpcCallSettings @@ -1031,6 +1475,37 @@ protected GrpcDataformStub( return builder.build(); }) .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); this.listRepositoriesCallable = callableFactory.createUnaryCallable( @@ -1050,6 +1525,41 @@ protected GrpcDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.commitRepositoryChangesCallable = + callableFactory.createUnaryCallable( + commitRepositoryChangesTransportSettings, + settings.commitRepositoryChangesSettings(), + clientContext); + this.readRepositoryFileCallable = + callableFactory.createUnaryCallable( + readRepositoryFileTransportSettings, + settings.readRepositoryFileSettings(), + clientContext); + this.queryRepositoryDirectoryContentsCallable = + callableFactory.createUnaryCallable( + queryRepositoryDirectoryContentsTransportSettings, + settings.queryRepositoryDirectoryContentsSettings(), + clientContext); + this.queryRepositoryDirectoryContentsPagedCallable = + callableFactory.createPagedCallable( + queryRepositoryDirectoryContentsTransportSettings, + settings.queryRepositoryDirectoryContentsSettings(), + clientContext); + this.fetchRepositoryHistoryCallable = + callableFactory.createUnaryCallable( + fetchRepositoryHistoryTransportSettings, + settings.fetchRepositoryHistorySettings(), + clientContext); + this.fetchRepositoryHistoryPagedCallable = + callableFactory.createPagedCallable( + fetchRepositoryHistoryTransportSettings, + settings.fetchRepositoryHistorySettings(), + clientContext); + this.computeRepositoryAccessTokenStatusCallable = + callableFactory.createUnaryCallable( + computeRepositoryAccessTokenStatusTransportSettings, + settings.computeRepositoryAccessTokenStatusSettings(), + clientContext); this.fetchRemoteBranchesCallable = callableFactory.createUnaryCallable( fetchRemoteBranchesTransportSettings, @@ -1135,6 +1645,34 @@ protected GrpcDataformStub( this.writeFileCallable = callableFactory.createUnaryCallable( writeFileTransportSettings, settings.writeFileSettings(), clientContext); + this.listReleaseConfigsCallable = + callableFactory.createUnaryCallable( + listReleaseConfigsTransportSettings, + settings.listReleaseConfigsSettings(), + clientContext); + this.listReleaseConfigsPagedCallable = + callableFactory.createPagedCallable( + listReleaseConfigsTransportSettings, + settings.listReleaseConfigsSettings(), + clientContext); + this.getReleaseConfigCallable = + callableFactory.createUnaryCallable( + getReleaseConfigTransportSettings, settings.getReleaseConfigSettings(), clientContext); + this.createReleaseConfigCallable = + callableFactory.createUnaryCallable( + createReleaseConfigTransportSettings, + settings.createReleaseConfigSettings(), + clientContext); + this.updateReleaseConfigCallable = + callableFactory.createUnaryCallable( + updateReleaseConfigTransportSettings, + settings.updateReleaseConfigSettings(), + clientContext); + this.deleteReleaseConfigCallable = + callableFactory.createUnaryCallable( + deleteReleaseConfigTransportSettings, + settings.deleteReleaseConfigSettings(), + clientContext); this.listCompilationResultsCallable = callableFactory.createUnaryCallable( listCompilationResultsTransportSettings, @@ -1165,6 +1703,36 @@ protected GrpcDataformStub( queryCompilationResultActionsTransportSettings, settings.queryCompilationResultActionsSettings(), clientContext); + this.listWorkflowConfigsCallable = + callableFactory.createUnaryCallable( + listWorkflowConfigsTransportSettings, + settings.listWorkflowConfigsSettings(), + clientContext); + this.listWorkflowConfigsPagedCallable = + callableFactory.createPagedCallable( + listWorkflowConfigsTransportSettings, + settings.listWorkflowConfigsSettings(), + clientContext); + this.getWorkflowConfigCallable = + callableFactory.createUnaryCallable( + getWorkflowConfigTransportSettings, + settings.getWorkflowConfigSettings(), + clientContext); + this.createWorkflowConfigCallable = + callableFactory.createUnaryCallable( + createWorkflowConfigTransportSettings, + settings.createWorkflowConfigSettings(), + clientContext); + this.updateWorkflowConfigCallable = + callableFactory.createUnaryCallable( + updateWorkflowConfigTransportSettings, + settings.updateWorkflowConfigSettings(), + clientContext); + this.deleteWorkflowConfigCallable = + callableFactory.createUnaryCallable( + deleteWorkflowConfigTransportSettings, + settings.deleteWorkflowConfigSettings(), + clientContext); this.listWorkflowInvocationsCallable = callableFactory.createUnaryCallable( listWorkflowInvocationsTransportSettings, @@ -1214,6 +1782,17 @@ protected GrpcDataformStub( this.getLocationCallable = callableFactory.createUnaryCallable( getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1255,6 +1834,50 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable commitRepositoryChangesCallable() { + return commitRepositoryChangesCallable; + } + + @Override + public UnaryCallable + readRepositoryFileCallable() { + return readRepositoryFileCallable; + } + + @Override + public UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable() { + return queryRepositoryDirectoryContentsCallable; + } + + @Override + public UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable() { + return queryRepositoryDirectoryContentsPagedCallable; + } + + @Override + public UnaryCallable + fetchRepositoryHistoryCallable() { + return fetchRepositoryHistoryCallable; + } + + @Override + public UnaryCallable + fetchRepositoryHistoryPagedCallable() { + return fetchRepositoryHistoryPagedCallable; + } + + @Override + public UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable() { + return computeRepositoryAccessTokenStatusCallable; + } + @Override public UnaryCallable fetchRemoteBranchesCallable() { @@ -1377,6 +2000,38 @@ public UnaryCallable writeFileCallable() { return writeFileCallable; } + @Override + public UnaryCallable + listReleaseConfigsCallable() { + return listReleaseConfigsCallable; + } + + @Override + public UnaryCallable + listReleaseConfigsPagedCallable() { + return listReleaseConfigsPagedCallable; + } + + @Override + public UnaryCallable getReleaseConfigCallable() { + return getReleaseConfigCallable; + } + + @Override + public UnaryCallable createReleaseConfigCallable() { + return createReleaseConfigCallable; + } + + @Override + public UnaryCallable updateReleaseConfigCallable() { + return updateReleaseConfigCallable; + } + + @Override + public UnaryCallable deleteReleaseConfigCallable() { + return deleteReleaseConfigCallable; + } + @Override public UnaryCallable listCompilationResultsCallable() { @@ -1414,6 +2069,38 @@ public UnaryCallable writeFileCallable() { return queryCompilationResultActionsPagedCallable; } + @Override + public UnaryCallable + listWorkflowConfigsCallable() { + return listWorkflowConfigsCallable; + } + + @Override + public UnaryCallable + listWorkflowConfigsPagedCallable() { + return listWorkflowConfigsPagedCallable; + } + + @Override + public UnaryCallable getWorkflowConfigCallable() { + return getWorkflowConfigCallable; + } + + @Override + public UnaryCallable createWorkflowConfigCallable() { + return createWorkflowConfigCallable; + } + + @Override + public UnaryCallable updateWorkflowConfigCallable() { + return updateWorkflowConfigCallable; + } + + @Override + public UnaryCallable deleteWorkflowConfigCallable() { + return deleteWorkflowConfigCallable; + } + @Override public UnaryCallable listWorkflowInvocationsCallable() { @@ -1478,6 +2165,22 @@ public UnaryCallable getLocationCallable() { return getLocationCallable; } + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + @Override public final void close() { try { diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java index 22effc943388..229cf24a9731 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -16,13 +16,17 @@ package com.google.cloud.dataform.v1beta1.stub; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.core.BetaApi; @@ -39,13 +43,20 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; @@ -56,16 +67,24 @@ import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; @@ -82,15 +101,23 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; import com.google.cloud.dataform.v1beta1.RemoveFileRequest; import com.google.cloud.dataform.v1beta1.Repository; import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; import com.google.cloud.dataform.v1beta1.Workspace; import com.google.cloud.dataform.v1beta1.WriteFileRequest; @@ -99,6 +126,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -305,6 +337,202 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + commitRepositoryChangesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CommitRepositoryChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*}:commit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + readRepositoryFileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ReadRepositoryFile") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "commitSha", request.getCommitSha()); + serializer.putQueryParam(fields, "path", request.getPath()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReadRepositoryFileResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/QueryRepositoryDirectoryContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "commitSha", request.getCommitSha()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "path", request.getPath()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + QueryRepositoryDirectoryContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse> + fetchRepositoryHistoryMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/FetchRepositoryHistory") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchRepositoryHistoryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/ComputeRepositoryAccessTokenStatus") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ComputeRepositoryAccessTokenStatusResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor fetchRemoteBranchesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1071,21 +1299,19 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); - private static final ApiMethodDescriptor< - ListCompilationResultsRequest, ListCompilationResultsResponse> - listCompilationResultsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListCompilationResults") + private static final ApiMethodDescriptor + listReleaseConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListReleaseConfigs") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults", + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -1093,7 +1319,7 @@ public class HttpJsonDataformStub extends DataformStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -1103,25 +1329,25 @@ public class HttpJsonDataformStub extends DataformStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCompilationResultsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListReleaseConfigsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getCompilationResultMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetCompilationResult") + private static final ApiMethodDescriptor + getReleaseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetReleaseConfig") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}", + "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -1129,7 +1355,7 @@ public class HttpJsonDataformStub extends DataformStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1137,25 +1363,25 @@ public class HttpJsonDataformStub extends DataformStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CompilationResult.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReleaseConfig.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createCompilationResultMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateCompilationResult") + private static final ApiMethodDescriptor + createReleaseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateReleaseConfig") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults", + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -1163,147 +1389,517 @@ public class HttpJsonDataformStub extends DataformStub { .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "releaseConfigId", request.getReleaseConfigId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "compilationResult", request.getCompilationResult(), true)) + .toBody("releaseConfig", request.getReleaseConfig(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CompilationResult.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReleaseConfig.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.cloud.dataform.v1beta1.Dataform/QueryCompilationResultActions") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + updateReleaseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateReleaseConfig") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query", + "/v1beta1/{releaseConfig.name=projects/*/locations/*/repositories/*/releaseConfigs/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, "releaseConfig.name", request.getReleaseConfig().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("releaseConfig", request.getReleaseConfig(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - QueryCompilationResultActionsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReleaseConfig.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse> - listWorkflowInvocationsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListWorkflowInvocations") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + deleteReleaseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteReleaseConfig") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations", + "/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListWorkflowInvocationsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getWorkflowInvocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetWorkflowInvocation") + private static final ApiMethodDescriptor< + ListCompilationResultsRequest, ListCompilationResultsResponse> + listCompilationResultsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListCompilationResults") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}", + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(WorkflowInvocation.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCompilationResultsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createWorkflowInvocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateWorkflowInvocation") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( + private static final ApiMethodDescriptor + getCompilationResultMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetCompilationResult") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompilationResult.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCompilationResultMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateCompilationResult") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "compilationResult", request.getCompilationResult(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompilationResult.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> + queryCompilationResultActionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/QueryCompilationResultActions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + QueryCompilationResultActionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listWorkflowConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListWorkflowConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkflowConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getWorkflowConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetWorkflowConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createWorkflowConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateWorkflowConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "workflowConfigId", request.getWorkflowConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workflowConfig", request.getWorkflowConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateWorkflowConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateWorkflowConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{workflowConfig.name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "workflowConfig.name", + request.getWorkflowConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workflowConfig", request.getWorkflowConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteWorkflowConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse> + listWorkflowInvocationsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListWorkflowInvocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkflowInvocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getWorkflowInvocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetWorkflowInvocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowInvocation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createWorkflowInvocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateWorkflowInvocation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations", request -> { Map fields = new HashMap<>(); @@ -1513,6 +2109,123 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/collections/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/collections/*}:getIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/collections/*}:testIamPermissions", + "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -1521,6 +2234,23 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable + commitRepositoryChangesCallable; + private final UnaryCallable + readRepositoryFileCallable; + private final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable; + private final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable; + private final UnaryCallable + fetchRepositoryHistoryCallable; + private final UnaryCallable + fetchRepositoryHistoryPagedCallable; + private final UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable; private final UnaryCallable fetchRemoteBranchesCallable; private final UnaryCallable listWorkspacesCallable; @@ -1551,6 +2281,16 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable removeFileCallable; private final UnaryCallable moveFileCallable; private final UnaryCallable writeFileCallable; + private final UnaryCallable + listReleaseConfigsCallable; + private final UnaryCallable + listReleaseConfigsPagedCallable; + private final UnaryCallable getReleaseConfigCallable; + private final UnaryCallable + createReleaseConfigCallable; + private final UnaryCallable + updateReleaseConfigCallable; + private final UnaryCallable deleteReleaseConfigCallable; private final UnaryCallable listCompilationResultsCallable; private final UnaryCallable @@ -1565,6 +2305,16 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable< QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> queryCompilationResultActionsPagedCallable; + private final UnaryCallable + listWorkflowConfigsCallable; + private final UnaryCallable + listWorkflowConfigsPagedCallable; + private final UnaryCallable getWorkflowConfigCallable; + private final UnaryCallable + createWorkflowConfigCallable; + private final UnaryCallable + updateWorkflowConfigCallable; + private final UnaryCallable deleteWorkflowConfigCallable; private final UnaryCallable listWorkflowInvocationsCallable; private final UnaryCallable @@ -1587,6 +2337,10 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -1637,54 +2391,122 @@ protected HttpJsonDataformStub( .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("repository.name", String.valueOf(request.getRepository().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + commitRepositoryChangesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(commitRepositoryChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + readRepositoryFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(readRepositoryFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(queryRepositoryDirectoryContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + fetchRepositoryHistoryTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchRepositoryHistoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(computeRepositoryAccessTokenStatusMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings getRepositoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getRepositoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createRepositoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createRepositoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings updateRepositoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateRepositoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("repository.name", String.valueOf(request.getRepository().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteRepositoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteRepositoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); HttpJsonCallSettings fetchRemoteBranchesTransportSettings = HttpJsonCallSettings @@ -1931,6 +2753,66 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listReleaseConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listReleaseConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getReleaseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getReleaseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createReleaseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createReleaseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateReleaseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateReleaseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "release_config.name", + String.valueOf(request.getReleaseConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteReleaseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteReleaseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listCompilationResultsTransportSettings = HttpJsonCallSettings @@ -1983,6 +2865,68 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listWorkflowConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listWorkflowConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getWorkflowConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createWorkflowConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateWorkflowConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkflowConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "workflow_config.name", + String.valueOf(request.getWorkflowConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteWorkflowConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkflowConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listWorkflowInvocationsTransportSettings = HttpJsonCallSettings @@ -2082,6 +3026,40 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); this.listRepositoriesCallable = callableFactory.createUnaryCallable( @@ -2101,6 +3079,41 @@ protected HttpJsonDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.commitRepositoryChangesCallable = + callableFactory.createUnaryCallable( + commitRepositoryChangesTransportSettings, + settings.commitRepositoryChangesSettings(), + clientContext); + this.readRepositoryFileCallable = + callableFactory.createUnaryCallable( + readRepositoryFileTransportSettings, + settings.readRepositoryFileSettings(), + clientContext); + this.queryRepositoryDirectoryContentsCallable = + callableFactory.createUnaryCallable( + queryRepositoryDirectoryContentsTransportSettings, + settings.queryRepositoryDirectoryContentsSettings(), + clientContext); + this.queryRepositoryDirectoryContentsPagedCallable = + callableFactory.createPagedCallable( + queryRepositoryDirectoryContentsTransportSettings, + settings.queryRepositoryDirectoryContentsSettings(), + clientContext); + this.fetchRepositoryHistoryCallable = + callableFactory.createUnaryCallable( + fetchRepositoryHistoryTransportSettings, + settings.fetchRepositoryHistorySettings(), + clientContext); + this.fetchRepositoryHistoryPagedCallable = + callableFactory.createPagedCallable( + fetchRepositoryHistoryTransportSettings, + settings.fetchRepositoryHistorySettings(), + clientContext); + this.computeRepositoryAccessTokenStatusCallable = + callableFactory.createUnaryCallable( + computeRepositoryAccessTokenStatusTransportSettings, + settings.computeRepositoryAccessTokenStatusSettings(), + clientContext); this.fetchRemoteBranchesCallable = callableFactory.createUnaryCallable( fetchRemoteBranchesTransportSettings, @@ -2186,6 +3199,34 @@ protected HttpJsonDataformStub( this.writeFileCallable = callableFactory.createUnaryCallable( writeFileTransportSettings, settings.writeFileSettings(), clientContext); + this.listReleaseConfigsCallable = + callableFactory.createUnaryCallable( + listReleaseConfigsTransportSettings, + settings.listReleaseConfigsSettings(), + clientContext); + this.listReleaseConfigsPagedCallable = + callableFactory.createPagedCallable( + listReleaseConfigsTransportSettings, + settings.listReleaseConfigsSettings(), + clientContext); + this.getReleaseConfigCallable = + callableFactory.createUnaryCallable( + getReleaseConfigTransportSettings, settings.getReleaseConfigSettings(), clientContext); + this.createReleaseConfigCallable = + callableFactory.createUnaryCallable( + createReleaseConfigTransportSettings, + settings.createReleaseConfigSettings(), + clientContext); + this.updateReleaseConfigCallable = + callableFactory.createUnaryCallable( + updateReleaseConfigTransportSettings, + settings.updateReleaseConfigSettings(), + clientContext); + this.deleteReleaseConfigCallable = + callableFactory.createUnaryCallable( + deleteReleaseConfigTransportSettings, + settings.deleteReleaseConfigSettings(), + clientContext); this.listCompilationResultsCallable = callableFactory.createUnaryCallable( listCompilationResultsTransportSettings, @@ -2216,6 +3257,36 @@ protected HttpJsonDataformStub( queryCompilationResultActionsTransportSettings, settings.queryCompilationResultActionsSettings(), clientContext); + this.listWorkflowConfigsCallable = + callableFactory.createUnaryCallable( + listWorkflowConfigsTransportSettings, + settings.listWorkflowConfigsSettings(), + clientContext); + this.listWorkflowConfigsPagedCallable = + callableFactory.createPagedCallable( + listWorkflowConfigsTransportSettings, + settings.listWorkflowConfigsSettings(), + clientContext); + this.getWorkflowConfigCallable = + callableFactory.createUnaryCallable( + getWorkflowConfigTransportSettings, + settings.getWorkflowConfigSettings(), + clientContext); + this.createWorkflowConfigCallable = + callableFactory.createUnaryCallable( + createWorkflowConfigTransportSettings, + settings.createWorkflowConfigSettings(), + clientContext); + this.updateWorkflowConfigCallable = + callableFactory.createUnaryCallable( + updateWorkflowConfigTransportSettings, + settings.updateWorkflowConfigSettings(), + clientContext); + this.deleteWorkflowConfigCallable = + callableFactory.createUnaryCallable( + deleteWorkflowConfigTransportSettings, + settings.deleteWorkflowConfigSettings(), + clientContext); this.listWorkflowInvocationsCallable = callableFactory.createUnaryCallable( listWorkflowInvocationsTransportSettings, @@ -2265,6 +3336,17 @@ protected HttpJsonDataformStub( this.getLocationCallable = callableFactory.createUnaryCallable( getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -2278,6 +3360,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(createRepositoryMethodDescriptor); methodDescriptors.add(updateRepositoryMethodDescriptor); methodDescriptors.add(deleteRepositoryMethodDescriptor); + methodDescriptors.add(commitRepositoryChangesMethodDescriptor); + methodDescriptors.add(readRepositoryFileMethodDescriptor); + methodDescriptors.add(queryRepositoryDirectoryContentsMethodDescriptor); + methodDescriptors.add(fetchRepositoryHistoryMethodDescriptor); + methodDescriptors.add(computeRepositoryAccessTokenStatusMethodDescriptor); methodDescriptors.add(fetchRemoteBranchesMethodDescriptor); methodDescriptors.add(listWorkspacesMethodDescriptor); methodDescriptors.add(getWorkspaceMethodDescriptor); @@ -2299,10 +3386,20 @@ public static List getMethodDescriptors() { methodDescriptors.add(removeFileMethodDescriptor); methodDescriptors.add(moveFileMethodDescriptor); methodDescriptors.add(writeFileMethodDescriptor); + methodDescriptors.add(listReleaseConfigsMethodDescriptor); + methodDescriptors.add(getReleaseConfigMethodDescriptor); + methodDescriptors.add(createReleaseConfigMethodDescriptor); + methodDescriptors.add(updateReleaseConfigMethodDescriptor); + methodDescriptors.add(deleteReleaseConfigMethodDescriptor); methodDescriptors.add(listCompilationResultsMethodDescriptor); methodDescriptors.add(getCompilationResultMethodDescriptor); methodDescriptors.add(createCompilationResultMethodDescriptor); methodDescriptors.add(queryCompilationResultActionsMethodDescriptor); + methodDescriptors.add(listWorkflowConfigsMethodDescriptor); + methodDescriptors.add(getWorkflowConfigMethodDescriptor); + methodDescriptors.add(createWorkflowConfigMethodDescriptor); + methodDescriptors.add(updateWorkflowConfigMethodDescriptor); + methodDescriptors.add(deleteWorkflowConfigMethodDescriptor); methodDescriptors.add(listWorkflowInvocationsMethodDescriptor); methodDescriptors.add(getWorkflowInvocationMethodDescriptor); methodDescriptors.add(createWorkflowInvocationMethodDescriptor); @@ -2311,6 +3408,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(queryWorkflowInvocationActionsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); return methodDescriptors; } @@ -2346,6 +3446,50 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable commitRepositoryChangesCallable() { + return commitRepositoryChangesCallable; + } + + @Override + public UnaryCallable + readRepositoryFileCallable() { + return readRepositoryFileCallable; + } + + @Override + public UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable() { + return queryRepositoryDirectoryContentsCallable; + } + + @Override + public UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable() { + return queryRepositoryDirectoryContentsPagedCallable; + } + + @Override + public UnaryCallable + fetchRepositoryHistoryCallable() { + return fetchRepositoryHistoryCallable; + } + + @Override + public UnaryCallable + fetchRepositoryHistoryPagedCallable() { + return fetchRepositoryHistoryPagedCallable; + } + + @Override + public UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable() { + return computeRepositoryAccessTokenStatusCallable; + } + @Override public UnaryCallable fetchRemoteBranchesCallable() { @@ -2468,6 +3612,38 @@ public UnaryCallable writeFileCallable() { return writeFileCallable; } + @Override + public UnaryCallable + listReleaseConfigsCallable() { + return listReleaseConfigsCallable; + } + + @Override + public UnaryCallable + listReleaseConfigsPagedCallable() { + return listReleaseConfigsPagedCallable; + } + + @Override + public UnaryCallable getReleaseConfigCallable() { + return getReleaseConfigCallable; + } + + @Override + public UnaryCallable createReleaseConfigCallable() { + return createReleaseConfigCallable; + } + + @Override + public UnaryCallable updateReleaseConfigCallable() { + return updateReleaseConfigCallable; + } + + @Override + public UnaryCallable deleteReleaseConfigCallable() { + return deleteReleaseConfigCallable; + } + @Override public UnaryCallable listCompilationResultsCallable() { @@ -2505,6 +3681,38 @@ public UnaryCallable writeFileCallable() { return queryCompilationResultActionsPagedCallable; } + @Override + public UnaryCallable + listWorkflowConfigsCallable() { + return listWorkflowConfigsCallable; + } + + @Override + public UnaryCallable + listWorkflowConfigsPagedCallable() { + return listWorkflowConfigsPagedCallable; + } + + @Override + public UnaryCallable getWorkflowConfigCallable() { + return getWorkflowConfigCallable; + } + + @Override + public UnaryCallable createWorkflowConfigCallable() { + return createWorkflowConfigCallable; + } + + @Override + public UnaryCallable updateWorkflowConfigCallable() { + return updateWorkflowConfigCallable; + } + + @Override + public UnaryCallable deleteWorkflowConfigCallable() { + return deleteWorkflowConfigCallable; + } + @Override public UnaryCallable listWorkflowInvocationsCallable() { @@ -2569,6 +3777,22 @@ public UnaryCallable getLocationCallable() { return getLocationCallable; } + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + @Override public final void close() { try { diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index 4e3dd3a25d3c..b94d29b74042 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CodeCompilationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CodeCompilationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CommitAuthor", "queryAllDeclaredConstructors": true, @@ -405,7 +423,574 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CommitAuthor$Builder", + "name": "com.google.cloud.dataform.v1beta1.CommitAuthor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitLogEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitLogEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$FileOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$FileOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$FileOperation$DeleteFile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$FileOperation$DeleteFile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$FileOperation$WriteFile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest$FileOperation$WriteFile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResult$CompilationError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResult$CompilationError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Assertion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Assertion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Operations", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Operations$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$IncrementalTableConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$IncrementalTableConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$RelationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse$TokenStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateRepositoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateRepositoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DirectoryEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DirectoryEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -414,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest", + "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -423,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -432,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResult", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -441,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResult$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -450,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResult$CodeCompilationConfig", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -459,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResult$CodeCompilationConfig$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$UncommittedFileChange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -468,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResult$CompilationError", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$UncommittedFileChange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -477,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResult$CompilationError$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$UncommittedFileChange$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -486,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction", + "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -495,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Assertion", + "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -504,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Assertion$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -513,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -522,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Declaration", + "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -531,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Declaration$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Operations", + "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Operations$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation", + "name": "com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$IncrementalTableConfig", + "name": "com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$IncrementalTableConfig$Builder", + "name": "com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$RelationType", + "name": "com.google.cloud.dataform.v1beta1.GetCompilationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest", + "name": "com.google.cloud.dataform.v1beta1.GetCompilationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateRepositoryRequest", + "name": "com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.GetRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1beta1.GetRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest", + "name": "com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest", + "name": "com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.GetWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1beta1.GetWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest", + "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffRequest", + "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.InvocationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffResponse", + "name": "com.google.cloud.dataform.v1beta1.InvocationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileDiffResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest", + "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse", + "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$UncommittedFileChange", + "name": "com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$UncommittedFileChange$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse$UncommittedFileChange$State", + "name": "com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest", + "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse", + "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetCompilationResultRequest", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetCompilationResultRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetRepositoryRequest", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetWorkspaceRequest", + "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.GetWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest", + "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse", + "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest", + "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse", + "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesRequest", + "name": "com.google.cloud.dataform.v1beta1.MoveFileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveFileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesResponse", + "name": "com.google.cloud.dataform.v1beta1.MoveFileResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListRepositoriesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveFileResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest", + "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse", + "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ListWorkspacesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MakeDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveFileRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveFileRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveFileResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.MoveFileResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest", + "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest", + "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse$DirectoryEntry", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse$DirectoryEntry$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$ScheduledReleaseRecord", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$ScheduledReleaseRecord$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse", + "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest", + "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse", + "name": "com.google.cloud.dataform.v1beta1.Repository", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.Repository$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor", + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$Builder", + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor", + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$SshAuthenticationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor$Builder", + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$SshAuthenticationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest", + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$TokenStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.Repository$WorkspaceCompilationOverrides", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest", + "name": "com.google.cloud.dataform.v1beta1.Repository$WorkspaceCompilationOverrides$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository", + "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$Builder", + "name": "com.google.cloud.dataform.v1beta1.Target", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings", + "name": "com.google.cloud.dataform.v1beta1.Target$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$Builder", + "name": "com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$TokenStatus", + "name": "com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest", + "name": "com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Target", + "name": "com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Target$Builder", + "name": "com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest", + "name": "com.google.cloud.dataform.v1beta1.WorkflowConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.WorkflowConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.WorkflowInvocation", + "name": "com.google.cloud.dataform.v1beta1.WorkflowConfig$ScheduledExecutionRecord", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.WorkflowInvocation$Builder", + "name": "com.google.cloud.dataform.v1beta1.WorkflowConfig$ScheduledExecutionRecord$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.WorkflowInvocation$InvocationConfig", + "name": "com.google.cloud.dataform.v1beta1.WorkflowInvocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.WorkflowInvocation$InvocationConfig$Builder", + "name": "com.google.cloud.dataform.v1beta1.WorkflowInvocation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2771,6 +3356,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Expr", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java index 7e674c6fdbe3..d0f7e835cee7 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java @@ -16,13 +16,17 @@ package com.google.cloud.dataform.v1beta1; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -40,6 +44,14 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; @@ -197,7 +209,15 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockService.addResponse(expectedResponse); @@ -242,7 +262,15 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockService.addResponse(expectedResponse); @@ -287,7 +315,15 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockService.addResponse(expectedResponse); @@ -336,7 +372,15 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockService.addResponse(expectedResponse); @@ -385,14 +429,30 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockService.addResponse(expectedResponse); Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -425,7 +485,15 @@ public void updateRepositoryExceptionTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateRepository(repository, updateMask); @@ -515,6 +583,286 @@ public void deleteRepositoryExceptionTest2() throws Exception { } } + @Test + public void commitRepositoryChangesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CommitRepositoryChangesRequest request = + CommitRepositoryChangesRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitMetadata(CommitMetadata.newBuilder().build()) + .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + .putAllFileOperations( + new HashMap()) + .build(); + + client.commitRepositoryChanges(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitRepositoryChangesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CommitRepositoryChangesRequest request = + CommitRepositoryChangesRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitMetadata(CommitMetadata.newBuilder().build()) + .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + .putAllFileOperations( + new HashMap()) + .build(); + client.commitRepositoryChanges(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readRepositoryFileTest() throws Exception { + ReadRepositoryFileResponse expectedResponse = + ReadRepositoryFileResponse.newBuilder().setContents(ByteString.EMPTY).build(); + mockService.addResponse(expectedResponse); + + ReadRepositoryFileRequest request = + ReadRepositoryFileRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .build(); + + ReadRepositoryFileResponse actualResponse = client.readRepositoryFile(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void readRepositoryFileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReadRepositoryFileRequest request = + ReadRepositoryFileRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .build(); + client.readRepositoryFile(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryRepositoryDirectoryContentsTest() throws Exception { + DirectoryEntry responsesElement = DirectoryEntry.newBuilder().build(); + QueryRepositoryDirectoryContentsResponse expectedResponse = + QueryRepositoryDirectoryContentsResponse.newBuilder() + .setNextPageToken("") + .addAllDirectoryEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + QueryRepositoryDirectoryContentsPagedResponse pagedListResponse = + client.queryRepositoryDirectoryContents(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDirectoryEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryRepositoryDirectoryContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.queryRepositoryDirectoryContents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchRepositoryHistoryTest() throws Exception { + CommitLogEntry responsesElement = CommitLogEntry.newBuilder().build(); + FetchRepositoryHistoryResponse expectedResponse = + FetchRepositoryHistoryResponse.newBuilder() + .setNextPageToken("") + .addAllCommits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + FetchRepositoryHistoryPagedResponse pagedListResponse = client.fetchRepositoryHistory(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommitsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchRepositoryHistoryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.fetchRepositoryHistory(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeRepositoryAccessTokenStatusTest() throws Exception { + ComputeRepositoryAccessTokenStatusResponse expectedResponse = + ComputeRepositoryAccessTokenStatusResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ComputeRepositoryAccessTokenStatusRequest request = + ComputeRepositoryAccessTokenStatusRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + + ComputeRepositoryAccessTokenStatusResponse actualResponse = + client.computeRepositoryAccessTokenStatus(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void computeRepositoryAccessTokenStatusExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ComputeRepositoryAccessTokenStatusRequest request = + ComputeRepositoryAccessTokenStatusRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + client.computeRepositoryAccessTokenStatus(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void fetchRemoteBranchesTest() throws Exception { FetchRemoteBranchesResponse expectedResponse = @@ -1376,8 +1724,7 @@ public void fetchFileDiffExceptionTest() throws Exception { @Test public void queryDirectoryContentsTest() throws Exception { - QueryDirectoryContentsResponse.DirectoryEntry responsesElement = - QueryDirectoryContentsResponse.DirectoryEntry.newBuilder().build(); + DirectoryEntry responsesElement = DirectoryEntry.newBuilder().build(); QueryDirectoryContentsResponse expectedResponse = QueryDirectoryContentsResponse.newBuilder() .setNextPageToken("") @@ -1397,8 +1744,7 @@ public void queryDirectoryContentsTest() throws Exception { QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request); - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getDirectoryEntriesList().get(0), resources.get(0)); @@ -1819,23 +2165,23 @@ public void writeFileExceptionTest() throws Exception { } @Test - public void listCompilationResultsTest() throws Exception { - CompilationResult responsesElement = CompilationResult.newBuilder().build(); - ListCompilationResultsResponse expectedResponse = - ListCompilationResultsResponse.newBuilder() + public void listReleaseConfigsTest() throws Exception { + ReleaseConfig responsesElement = ReleaseConfig.newBuilder().build(); + ListReleaseConfigsResponse expectedResponse = + ListReleaseConfigsResponse.newBuilder() .setNextPageToken("") - .addAllCompilationResults(Arrays.asList(responsesElement)) + .addAllReleaseConfigs(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + ListReleaseConfigsPagedResponse pagedListResponse = client.listReleaseConfigs(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getReleaseConfigsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1853,7 +2199,7 @@ public void listCompilationResultsTest() throws Exception { } @Test - public void listCompilationResultsExceptionTest() throws Exception { + public void listReleaseConfigsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1861,7 +2207,7 @@ public void listCompilationResultsExceptionTest() throws Exception { try { RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.listCompilationResults(parent); + client.listReleaseConfigs(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1869,23 +2215,23 @@ public void listCompilationResultsExceptionTest() throws Exception { } @Test - public void listCompilationResultsTest2() throws Exception { - CompilationResult responsesElement = CompilationResult.newBuilder().build(); - ListCompilationResultsResponse expectedResponse = - ListCompilationResultsResponse.newBuilder() + public void listReleaseConfigsTest2() throws Exception { + ReleaseConfig responsesElement = ReleaseConfig.newBuilder().build(); + ListReleaseConfigsResponse expectedResponse = + ListReleaseConfigsResponse.newBuilder() .setNextPageToken("") - .addAllCompilationResults(Arrays.asList(responsesElement)) + .addAllReleaseConfigs(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + ListReleaseConfigsPagedResponse pagedListResponse = client.listReleaseConfigs(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getReleaseConfigsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1903,7 +2249,7 @@ public void listCompilationResultsTest2() throws Exception { } @Test - public void listCompilationResultsExceptionTest2() throws Exception { + public void listReleaseConfigsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1911,7 +2257,7 @@ public void listCompilationResultsExceptionTest2() throws Exception { try { String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - client.listCompilationResults(parent); + client.listReleaseConfigs(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1919,23 +2265,29 @@ public void listCompilationResultsExceptionTest2() throws Exception { } @Test - public void getCompilationResultTest() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void getReleaseConfigTest() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( CompilationResultName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - CompilationResultName name = - CompilationResultName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); - CompilationResult actualResponse = client.getCompilationResult(name); + ReleaseConfig actualResponse = client.getReleaseConfig(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1954,15 +2306,521 @@ public void getCompilationResultTest() throws Exception { } @Test - public void getCompilationResultExceptionTest() throws Exception { + public void getReleaseConfigExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CompilationResultName name = - CompilationResultName.of( + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + client.getReleaseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReleaseConfigTest2() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9636/locations/location-9636/repositories/repositorie-9636/releaseConfigs/releaseConfig-9636"; + + ReleaseConfig actualResponse = client.getReleaseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getReleaseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9636/locations/location-9636/repositories/repositorie-9636/releaseConfigs/releaseConfig-9636"; + client.getReleaseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseConfigTest() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + + ReleaseConfig actualResponse = + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createReleaseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseConfigTest2() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + + ReleaseConfig actualResponse = + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createReleaseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReleaseConfigTest() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + ReleaseConfig releaseConfig = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReleaseConfig actualResponse = client.updateReleaseConfig(releaseConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateReleaseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReleaseConfig releaseConfig = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReleaseConfig(releaseConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + + client.deleteReleaseConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteReleaseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + client.deleteReleaseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9636/locations/location-9636/repositories/repositorie-9636/releaseConfigs/releaseConfig-9636"; + + client.deleteReleaseConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteReleaseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9636/locations/location-9636/repositories/repositorie-9636/releaseConfigs/releaseConfig-9636"; + client.deleteReleaseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompilationResultsTest() throws Exception { + CompilationResult responsesElement = CompilationResult.newBuilder().build(); + ListCompilationResultsResponse expectedResponse = + ListCompilationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllCompilationResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompilationResultsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listCompilationResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompilationResultsTest2() throws Exception { + CompilationResult responsesElement = CompilationResult.newBuilder().build(); + ListCompilationResultsResponse expectedResponse = + ListCompilationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllCompilationResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + + ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompilationResultsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + client.listCompilationResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompilationResultTest() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CompilationResultName name = + CompilationResultName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); + + CompilationResult actualResponse = client.getCompilationResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCompilationResultExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompilationResultName name = + CompilationResultName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); client.getCompilationResult(name); Assert.fail("No exception raised"); @@ -1972,23 +2830,473 @@ public void getCompilationResultExceptionTest() throws Exception { } @Test - public void getCompilationResultTest2() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void getCompilationResultTest2() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7493/locations/location-7493/repositories/repositorie-7493/compilationResults/compilationResult-7493"; + + CompilationResult actualResponse = client.getCompilationResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCompilationResultExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7493/locations/location-7493/repositories/repositorie-7493/compilationResults/compilationResult-7493"; + client.getCompilationResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompilationResultTest() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + + CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompilationResultExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + client.createCompilationResult(parent, compilationResult); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompilationResultTest2() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + + CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompilationResultExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + client.createCompilationResult(parent, compilationResult); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryCompilationResultActionsTest() throws Exception { + CompilationResultAction responsesElement = CompilationResultAction.newBuilder().build(); + QueryCompilationResultActionsResponse expectedResponse = + QueryCompilationResultActionsResponse.newBuilder() + .setNextPageToken("") + .addAllCompilationResultActions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueryCompilationResultActionsRequest request = + QueryCompilationResultActionsRequest.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + QueryCompilationResultActionsPagedResponse pagedListResponse = + client.queryCompilationResultActions(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCompilationResultActionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryCompilationResultActionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryCompilationResultActionsRequest request = + QueryCompilationResultActionsRequest.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.queryCompilationResultActions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkflowConfigsTest() throws Exception { + WorkflowConfig responsesElement = WorkflowConfig.newBuilder().build(); + ListWorkflowConfigsResponse expectedResponse = + ListWorkflowConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkflowConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListWorkflowConfigsPagedResponse pagedListResponse = client.listWorkflowConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkflowConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkflowConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listWorkflowConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkflowConfigsTest2() throws Exception { + WorkflowConfig responsesElement = WorkflowConfig.newBuilder().build(); + ListWorkflowConfigsResponse expectedResponse = + ListWorkflowConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkflowConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + + ListWorkflowConfigsPagedResponse pagedListResponse = client.listWorkflowConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkflowConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkflowConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + client.listWorkflowConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowConfigTest() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + + WorkflowConfig actualResponse = client.getWorkflowConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkflowConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + client.getWorkflowConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowConfigTest2() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9018/locations/location-9018/repositories/repositorie-9018/workflowConfigs/workflowConfig-9018"; + + WorkflowConfig actualResponse = client.getWorkflowConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkflowConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9018/locations/location-9018/repositories/repositorie-9018/workflowConfigs/workflowConfig-9018"; + client.getWorkflowConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkflowConfigTest() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String name = - "projects/project-7493/locations/location-7493/repositories/repositorie-7493/compilationResults/compilationResult-7493"; + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; - CompilationResult actualResponse = client.getCompilationResult(name); + WorkflowConfig actualResponse = + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2007,16 +3315,17 @@ public void getCompilationResultTest2() throws Exception { } @Test - public void getCompilationResultExceptionTest2() throws Exception { + public void createWorkflowConfigExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "projects/project-7493/locations/location-7493/repositories/repositorie-7493/compilationResults/compilationResult-7493"; - client.getCompilationResult(name); + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2024,23 +3333,30 @@ public void getCompilationResultExceptionTest2() throws Exception { } @Test - public void createCompilationResultTest() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void createWorkflowConfigTest2() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - CompilationResult compilationResult = CompilationResult.newBuilder().build(); + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; - CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + WorkflowConfig actualResponse = + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2059,16 +3375,17 @@ public void createCompilationResultTest() throws Exception { } @Test - public void createCompilationResultExceptionTest() throws Exception { + public void createWorkflowConfigExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - CompilationResult compilationResult = CompilationResult.newBuilder().build(); - client.createCompilationResult(parent, compilationResult); + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2076,23 +3393,42 @@ public void createCompilationResultExceptionTest() throws Exception { } @Test - public void createCompilationResultTest2() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void updateWorkflowConfigTest() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - CompilationResult compilationResult = CompilationResult.newBuilder().build(); + WorkflowConfig workflowConfig = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + WorkflowConfig actualResponse = client.updateWorkflowConfig(workflowConfig, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2111,16 +3447,31 @@ public void createCompilationResultTest2() throws Exception { } @Test - public void createCompilationResultExceptionTest2() throws Exception { + public void updateWorkflowConfigExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - CompilationResult compilationResult = CompilationResult.newBuilder().build(); - client.createCompilationResult(parent, compilationResult); + WorkflowConfig workflowConfig = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkflowConfig(workflowConfig, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2128,34 +3479,56 @@ public void createCompilationResultExceptionTest2() throws Exception { } @Test - public void queryCompilationResultActionsTest() throws Exception { - CompilationResultAction responsesElement = CompilationResultAction.newBuilder().build(); - QueryCompilationResultActionsResponse expectedResponse = - QueryCompilationResultActionsResponse.newBuilder() - .setNextPageToken("") - .addAllCompilationResultActions(Arrays.asList(responsesElement)) - .build(); + public void deleteWorkflowConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - QueryCompilationResultActionsRequest request = - QueryCompilationResultActionsRequest.newBuilder() - .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); - QueryCompilationResultActionsPagedResponse pagedListResponse = - client.queryCompilationResultActions(request); + client.deleteWorkflowConfig(name); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getCompilationResultActionsList().get(0), resources.get(0)); + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkflowConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + client.deleteWorkflowConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkflowConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9018/locations/location-9018/repositories/repositorie-9018/workflowConfigs/workflowConfig-9018"; + + client.deleteWorkflowConfig(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2173,24 +3546,16 @@ public void queryCompilationResultActionsTest() throws Exception { } @Test - public void queryCompilationResultActionsExceptionTest() throws Exception { + public void deleteWorkflowConfigExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - QueryCompilationResultActionsRequest request = - QueryCompilationResultActionsRequest.newBuilder() - .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - client.queryCompilationResultActions(request); + String name = + "projects/project-9018/locations/location-9018/repositories/repositorie-9018/workflowConfigs/workflowConfig-9018"; + client.deleteWorkflowConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2305,11 +3670,7 @@ public void getWorkflowInvocationTest() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2362,11 +3723,7 @@ public void getWorkflowInvocationTest2() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2417,11 +3774,7 @@ public void createWorkflowInvocationTest() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2472,11 +3825,7 @@ public void createWorkflowInvocationTest2() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2840,4 +4189,166 @@ public void getLocationExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java index b74324710128..44eead2c8a09 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java @@ -16,13 +16,17 @@ package com.google.cloud.dataform.v1beta1; +import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -37,6 +41,14 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -194,7 +206,15 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockDataform.addResponse(expectedResponse); @@ -233,7 +253,15 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockDataform.addResponse(expectedResponse); @@ -272,7 +300,15 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockDataform.addResponse(expectedResponse); @@ -317,7 +353,15 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockDataform.addResponse(expectedResponse); @@ -362,7 +406,15 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) + .setNpmrcEnvironmentVariablesSecretVersion( + "npmrcEnvironmentVariablesSecretVersion-1472767288") + .setWorkspaceCompilationOverrides( + Repository.WorkspaceCompilationOverrides.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSetAuthenticatedUserAdmin(true) + .setServiceAccount("serviceAccount1079137720") .build(); mockDataform.addResponse(expectedResponse); @@ -467,6 +519,272 @@ public void deleteRepositoryExceptionTest2() throws Exception { } } + @Test + public void commitRepositoryChangesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + CommitRepositoryChangesRequest request = + CommitRepositoryChangesRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitMetadata(CommitMetadata.newBuilder().build()) + .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + .putAllFileOperations( + new HashMap()) + .build(); + + client.commitRepositoryChanges(request); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitRepositoryChangesRequest actualRequest = + ((CommitRepositoryChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getCommitMetadata(), actualRequest.getCommitMetadata()); + Assert.assertEquals( + request.getRequiredHeadCommitSha(), actualRequest.getRequiredHeadCommitSha()); + Assert.assertEquals(request.getFileOperationsMap(), actualRequest.getFileOperationsMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitRepositoryChangesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + CommitRepositoryChangesRequest request = + CommitRepositoryChangesRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitMetadata(CommitMetadata.newBuilder().build()) + .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + .putAllFileOperations( + new HashMap()) + .build(); + client.commitRepositoryChanges(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readRepositoryFileTest() throws Exception { + ReadRepositoryFileResponse expectedResponse = + ReadRepositoryFileResponse.newBuilder().setContents(ByteString.EMPTY).build(); + mockDataform.addResponse(expectedResponse); + + ReadRepositoryFileRequest request = + ReadRepositoryFileRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .build(); + + ReadRepositoryFileResponse actualResponse = client.readRepositoryFile(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadRepositoryFileRequest actualRequest = ((ReadRepositoryFileRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getCommitSha(), actualRequest.getCommitSha()); + Assert.assertEquals(request.getPath(), actualRequest.getPath()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readRepositoryFileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + ReadRepositoryFileRequest request = + ReadRepositoryFileRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .build(); + client.readRepositoryFile(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryRepositoryDirectoryContentsTest() throws Exception { + DirectoryEntry responsesElement = DirectoryEntry.newBuilder().build(); + QueryRepositoryDirectoryContentsResponse expectedResponse = + QueryRepositoryDirectoryContentsResponse.newBuilder() + .setNextPageToken("") + .addAllDirectoryEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + QueryRepositoryDirectoryContentsPagedResponse pagedListResponse = + client.queryRepositoryDirectoryContents(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDirectoryEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryRepositoryDirectoryContentsRequest actualRequest = + ((QueryRepositoryDirectoryContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getCommitSha(), actualRequest.getCommitSha()); + Assert.assertEquals(request.getPath(), actualRequest.getPath()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryRepositoryDirectoryContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.queryRepositoryDirectoryContents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchRepositoryHistoryTest() throws Exception { + CommitLogEntry responsesElement = CommitLogEntry.newBuilder().build(); + FetchRepositoryHistoryResponse expectedResponse = + FetchRepositoryHistoryResponse.newBuilder() + .setNextPageToken("") + .addAllCommits(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + FetchRepositoryHistoryPagedResponse pagedListResponse = client.fetchRepositoryHistory(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommitsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchRepositoryHistoryRequest actualRequest = + ((FetchRepositoryHistoryRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchRepositoryHistoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.fetchRepositoryHistory(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeRepositoryAccessTokenStatusTest() throws Exception { + ComputeRepositoryAccessTokenStatusResponse expectedResponse = + ComputeRepositoryAccessTokenStatusResponse.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + ComputeRepositoryAccessTokenStatusRequest request = + ComputeRepositoryAccessTokenStatusRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + + ComputeRepositoryAccessTokenStatusResponse actualResponse = + client.computeRepositoryAccessTokenStatus(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeRepositoryAccessTokenStatusRequest actualRequest = + ((ComputeRepositoryAccessTokenStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeRepositoryAccessTokenStatusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + ComputeRepositoryAccessTokenStatusRequest request = + ComputeRepositoryAccessTokenStatusRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + client.computeRepositoryAccessTokenStatus(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void fetchRemoteBranchesTest() throws Exception { FetchRemoteBranchesResponse expectedResponse = @@ -1239,8 +1557,7 @@ public void fetchFileDiffExceptionTest() throws Exception { @Test public void queryDirectoryContentsTest() throws Exception { - QueryDirectoryContentsResponse.DirectoryEntry responsesElement = - QueryDirectoryContentsResponse.DirectoryEntry.newBuilder().build(); + DirectoryEntry responsesElement = DirectoryEntry.newBuilder().build(); QueryDirectoryContentsResponse expectedResponse = QueryDirectoryContentsResponse.newBuilder() .setNextPageToken("") @@ -1260,8 +1577,7 @@ public void queryDirectoryContentsTest() throws Exception { QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request); - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getDirectoryEntriesList().get(0), resources.get(0)); @@ -1648,28 +1964,27 @@ public void writeFileExceptionTest() throws Exception { } @Test - public void listCompilationResultsTest() throws Exception { - CompilationResult responsesElement = CompilationResult.newBuilder().build(); - ListCompilationResultsResponse expectedResponse = - ListCompilationResultsResponse.newBuilder() + public void listReleaseConfigsTest() throws Exception { + ReleaseConfig responsesElement = ReleaseConfig.newBuilder().build(); + ListReleaseConfigsResponse expectedResponse = + ListReleaseConfigsResponse.newBuilder() .setNextPageToken("") - .addAllCompilationResults(Arrays.asList(responsesElement)) + .addAllReleaseConfigs(Arrays.asList(responsesElement)) .build(); mockDataform.addResponse(expectedResponse); RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + ListReleaseConfigsPagedResponse pagedListResponse = client.listReleaseConfigs(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getReleaseConfigsList().get(0), resources.get(0)); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCompilationResultsRequest actualRequest = - ((ListCompilationResultsRequest) actualRequests.get(0)); + ListReleaseConfigsRequest actualRequest = ((ListReleaseConfigsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1679,13 +1994,13 @@ public void listCompilationResultsTest() throws Exception { } @Test - public void listCompilationResultsExceptionTest() throws Exception { + public void listReleaseConfigsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.listCompilationResults(parent); + client.listReleaseConfigs(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1693,28 +2008,27 @@ public void listCompilationResultsExceptionTest() throws Exception { } @Test - public void listCompilationResultsTest2() throws Exception { - CompilationResult responsesElement = CompilationResult.newBuilder().build(); - ListCompilationResultsResponse expectedResponse = - ListCompilationResultsResponse.newBuilder() + public void listReleaseConfigsTest2() throws Exception { + ReleaseConfig responsesElement = ReleaseConfig.newBuilder().build(); + ListReleaseConfigsResponse expectedResponse = + ListReleaseConfigsResponse.newBuilder() .setNextPageToken("") - .addAllCompilationResults(Arrays.asList(responsesElement)) + .addAllReleaseConfigs(Arrays.asList(responsesElement)) .build(); mockDataform.addResponse(expectedResponse); String parent = "parent-995424086"; - ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + ListReleaseConfigsPagedResponse pagedListResponse = client.listReleaseConfigs(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getReleaseConfigsList().get(0), resources.get(0)); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCompilationResultsRequest actualRequest = - ((ListCompilationResultsRequest) actualRequests.get(0)); + ListReleaseConfigsRequest actualRequest = ((ListReleaseConfigsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1724,13 +2038,13 @@ public void listCompilationResultsTest2() throws Exception { } @Test - public void listCompilationResultsExceptionTest2() throws Exception { + public void listReleaseConfigsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { String parent = "parent-995424086"; - client.listCompilationResults(parent); + client.listReleaseConfigs(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1738,29 +2052,34 @@ public void listCompilationResultsExceptionTest2() throws Exception { } @Test - public void getCompilationResultTest() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void getReleaseConfigTest() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( CompilationResultName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) .build(); mockDataform.addResponse(expectedResponse); - CompilationResultName name = - CompilationResultName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); - CompilationResult actualResponse = client.getCompilationResult(name); + ReleaseConfig actualResponse = client.getReleaseConfig(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCompilationResultRequest actualRequest = - ((GetCompilationResultRequest) actualRequests.get(0)); + GetReleaseConfigRequest actualRequest = ((GetReleaseConfigRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1770,15 +2089,14 @@ public void getCompilationResultTest() throws Exception { } @Test - public void getCompilationResultExceptionTest() throws Exception { + public void getReleaseConfigExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { - CompilationResultName name = - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); - client.getCompilationResult(name); + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + client.getReleaseConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1786,28 +2104,33 @@ public void getCompilationResultExceptionTest() throws Exception { } @Test - public void getCompilationResultTest2() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void getReleaseConfigTest2() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( CompilationResultName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) .build(); mockDataform.addResponse(expectedResponse); String name = "name3373707"; - CompilationResult actualResponse = client.getCompilationResult(name); + ReleaseConfig actualResponse = client.getReleaseConfig(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCompilationResultRequest actualRequest = - ((GetCompilationResultRequest) actualRequests.get(0)); + GetReleaseConfigRequest actualRequest = ((GetReleaseConfigRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1817,13 +2140,13 @@ public void getCompilationResultTest2() throws Exception { } @Test - public void getCompilationResultExceptionTest2() throws Exception { + public void getReleaseConfigExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { String name = "name3373707"; - client.getCompilationResult(name); + client.getReleaseConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1831,32 +2154,455 @@ public void getCompilationResultExceptionTest2() throws Exception { } @Test - public void createCompilationResultTest() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void createReleaseConfigTest() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( CompilationResultName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) .build(); mockDataform.addResponse(expectedResponse); RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - CompilationResult compilationResult = CompilationResult.newBuilder().build(); + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; - CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + ReleaseConfig actualResponse = + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCompilationResultRequest actualRequest = - ((CreateCompilationResultRequest) actualRequests.get(0)); + CreateReleaseConfigRequest actualRequest = ((CreateReleaseConfigRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(compilationResult, actualRequest.getCompilationResult()); + Assert.assertEquals(releaseConfig, actualRequest.getReleaseConfig()); + Assert.assertEquals(releaseConfigId, actualRequest.getReleaseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReleaseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseConfigTest2() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + + ReleaseConfig actualResponse = + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReleaseConfigRequest actualRequest = ((CreateReleaseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(releaseConfig, actualRequest.getReleaseConfig()); + Assert.assertEquals(releaseConfigId, actualRequest.getReleaseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReleaseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + client.createReleaseConfig(parent, releaseConfig, releaseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReleaseConfigTest() throws Exception { + ReleaseConfig expectedResponse = + ReleaseConfig.newBuilder() + .setName( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setGitCommitish("gitCommitish-98628555") + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledReleaseRecords( + new ArrayList()) + .setReleaseCompilationResult( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .build(); + mockDataform.addResponse(expectedResponse); + + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReleaseConfig actualResponse = client.updateReleaseConfig(releaseConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReleaseConfigRequest actualRequest = ((UpdateReleaseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(releaseConfig, actualRequest.getReleaseConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReleaseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReleaseConfig(releaseConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + + client.deleteReleaseConfig(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReleaseConfigRequest actualRequest = ((DeleteReleaseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReleaseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + client.deleteReleaseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteReleaseConfig(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReleaseConfigRequest actualRequest = ((DeleteReleaseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReleaseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteReleaseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompilationResultsTest() throws Exception { + CompilationResult responsesElement = CompilationResult.newBuilder().build(); + ListCompilationResultsResponse expectedResponse = + ListCompilationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllCompilationResults(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCompilationResultsRequest actualRequest = + ((ListCompilationResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCompilationResultsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listCompilationResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompilationResultsTest2() throws Exception { + CompilationResult responsesElement = CompilationResult.newBuilder().build(); + ListCompilationResultsResponse expectedResponse = + ListCompilationResultsResponse.newBuilder() + .setNextPageToken("") + .addAllCompilationResults(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCompilationResultsPagedResponse pagedListResponse = client.listCompilationResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompilationResultsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCompilationResultsRequest actualRequest = + ((ListCompilationResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCompilationResultsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCompilationResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompilationResultTest() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + CompilationResultName name = + CompilationResultName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); + + CompilationResult actualResponse = client.getCompilationResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCompilationResultRequest actualRequest = + ((GetCompilationResultRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCompilationResultExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + CompilationResultName name = + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); + client.getCompilationResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompilationResultTest2() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + CompilationResult actualResponse = client.getCompilationResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCompilationResultRequest actualRequest = + ((GetCompilationResultRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCompilationResultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getCompilationResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompilationResultTest() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + + CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCompilationResultRequest actualRequest = + ((CreateCompilationResultRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(compilationResult, actualRequest.getCompilationResult()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1870,8 +2616,370 @@ public void createCompilationResultExceptionTest() throws Exception { try { RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - CompilationResult compilationResult = CompilationResult.newBuilder().build(); - client.createCompilationResult(parent, compilationResult); + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + client.createCompilationResult(parent, compilationResult); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompilationResultTest2() throws Exception { + CompilationResult expectedResponse = + CompilationResult.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setCodeCompilationConfig(CodeCompilationConfig.newBuilder().build()) + .setResolvedGitCommitSha("resolvedGitCommitSha1908380763") + .setDataformCoreVersion("dataformCoreVersion1859535851") + .addAllCompilationErrors(new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + + CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCompilationResultRequest actualRequest = + ((CreateCompilationResultRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(compilationResult, actualRequest.getCompilationResult()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCompilationResultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + CompilationResult compilationResult = CompilationResult.newBuilder().build(); + client.createCompilationResult(parent, compilationResult); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryCompilationResultActionsTest() throws Exception { + CompilationResultAction responsesElement = CompilationResultAction.newBuilder().build(); + QueryCompilationResultActionsResponse expectedResponse = + QueryCompilationResultActionsResponse.newBuilder() + .setNextPageToken("") + .addAllCompilationResultActions(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + QueryCompilationResultActionsRequest request = + QueryCompilationResultActionsRequest.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + QueryCompilationResultActionsPagedResponse pagedListResponse = + client.queryCompilationResultActions(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCompilationResultActionsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryCompilationResultActionsRequest actualRequest = + ((QueryCompilationResultActionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryCompilationResultActionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + QueryCompilationResultActionsRequest request = + QueryCompilationResultActionsRequest.newBuilder() + .setName( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.queryCompilationResultActions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkflowConfigsTest() throws Exception { + WorkflowConfig responsesElement = WorkflowConfig.newBuilder().build(); + ListWorkflowConfigsResponse expectedResponse = + ListWorkflowConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkflowConfigs(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + ListWorkflowConfigsPagedResponse pagedListResponse = client.listWorkflowConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkflowConfigsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkflowConfigsRequest actualRequest = ((ListWorkflowConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkflowConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.listWorkflowConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkflowConfigsTest2() throws Exception { + WorkflowConfig responsesElement = WorkflowConfig.newBuilder().build(); + ListWorkflowConfigsResponse expectedResponse = + ListWorkflowConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkflowConfigs(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListWorkflowConfigsPagedResponse pagedListResponse = client.listWorkflowConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkflowConfigsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkflowConfigsRequest actualRequest = ((ListWorkflowConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkflowConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + client.listWorkflowConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowConfigTest() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + + WorkflowConfig actualResponse = client.getWorkflowConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkflowConfigRequest actualRequest = ((GetWorkflowConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkflowConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + client.getWorkflowConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowConfigTest2() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + WorkflowConfig actualResponse = client.getWorkflowConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkflowConfigRequest actualRequest = ((GetWorkflowConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkflowConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getWorkflowConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkflowConfigTest() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) + .build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + + WorkflowConfig actualResponse = + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowConfigRequest actualRequest = + ((CreateWorkflowConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workflowConfig, actualRequest.getWorkflowConfig()); + Assert.assertEquals(workflowConfigId, actualRequest.getWorkflowConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1879,32 +2987,40 @@ public void createCompilationResultExceptionTest() throws Exception { } @Test - public void createCompilationResultTest2() throws Exception { - CompilationResult expectedResponse = - CompilationResult.newBuilder() + public void createWorkflowConfigTest2() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") .toString()) - .setCodeCompilationConfig(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .setDataformCoreVersion("dataformCoreVersion1859535851") - .addAllCompilationErrors(new ArrayList()) + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) .build(); mockDataform.addResponse(expectedResponse); String parent = "parent-995424086"; - CompilationResult compilationResult = CompilationResult.newBuilder().build(); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; - CompilationResult actualResponse = client.createCompilationResult(parent, compilationResult); + WorkflowConfig actualResponse = + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCompilationResultRequest actualRequest = - ((CreateCompilationResultRequest) actualRequests.get(0)); + CreateWorkflowConfigRequest actualRequest = + ((CreateWorkflowConfigRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(compilationResult, actualRequest.getCompilationResult()); + Assert.assertEquals(workflowConfig, actualRequest.getWorkflowConfig()); + Assert.assertEquals(workflowConfigId, actualRequest.getWorkflowConfigId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1912,14 +3028,15 @@ public void createCompilationResultTest2() throws Exception { } @Test - public void createCompilationResultExceptionTest2() throws Exception { + public void createWorkflowConfigExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { String parent = "parent-995424086"; - CompilationResult compilationResult = CompilationResult.newBuilder().build(); - client.createCompilationResult(parent, compilationResult); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + client.createWorkflowConfig(parent, workflowConfig, workflowConfigId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1927,44 +3044,74 @@ public void createCompilationResultExceptionTest2() throws Exception { } @Test - public void queryCompilationResultActionsTest() throws Exception { - CompilationResultAction responsesElement = CompilationResultAction.newBuilder().build(); - QueryCompilationResultActionsResponse expectedResponse = - QueryCompilationResultActionsResponse.newBuilder() - .setNextPageToken("") - .addAllCompilationResultActions(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - QueryCompilationResultActionsRequest request = - QueryCompilationResultActionsRequest.newBuilder() + public void updateWorkflowConfigTest() throws Exception { + WorkflowConfig expectedResponse = + WorkflowConfig.newBuilder() .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") + .setReleaseConfig( + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) + .setCronSchedule("cronSchedule-1022672059") + .setTimeZone("timeZone-2077180903") + .addAllRecentScheduledExecutionRecords( + new ArrayList()) .build(); + mockDataform.addResponse(expectedResponse); - QueryCompilationResultActionsPagedResponse pagedListResponse = - client.queryCompilationResultActions(request); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + WorkflowConfig actualResponse = client.updateWorkflowConfig(workflowConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getCompilationResultActionsList().get(0), resources.get(0)); + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateWorkflowConfigRequest actualRequest = + ((UpdateWorkflowConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(workflowConfig, actualRequest.getWorkflowConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateWorkflowConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkflowConfig(workflowConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkflowConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + + client.deleteWorkflowConfig(name); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - QueryCompilationResultActionsRequest actualRequest = - ((QueryCompilationResultActionsRequest) actualRequests.get(0)); + DeleteWorkflowConfigRequest actualRequest = + ((DeleteWorkflowConfigRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1972,22 +3119,49 @@ public void queryCompilationResultActionsTest() throws Exception { } @Test - public void queryCompilationResultActionsExceptionTest() throws Exception { + public void deleteWorkflowConfigExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { - QueryCompilationResultActionsRequest request = - QueryCompilationResultActionsRequest.newBuilder() - .setName( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - client.queryCompilationResultActions(request); + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + client.deleteWorkflowConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteWorkflowConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteWorkflowConfig(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkflowConfigRequest actualRequest = + ((DeleteWorkflowConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkflowConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteWorkflowConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2092,11 +3266,7 @@ public void getWorkflowInvocationTest() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2144,11 +3314,7 @@ public void getWorkflowInvocationTest2() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2192,11 +3358,7 @@ public void createWorkflowInvocationTest() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2243,11 +3405,7 @@ public void createWorkflowInvocationTest2() throws Exception { WorkflowInvocationName.of( "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) + .setInvocationConfig(InvocationConfig.newBuilder().build()) .setInvocationTiming(Interval.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2572,4 +3730,152 @@ public void getLocationExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java index f4c2a6118fe3..6e6d51f8ae88 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java @@ -164,6 +164,115 @@ public void deleteRepository( } } + @Override + public void commitRepositoryChanges( + CommitRepositoryChangesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CommitRepositoryChanges, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void readRepositoryFile( + ReadRepositoryFileRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReadRepositoryFileResponse) { + requests.add(request); + responseObserver.onNext(((ReadRepositoryFileResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ReadRepositoryFile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReadRepositoryFileResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryRepositoryDirectoryContents( + QueryRepositoryDirectoryContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryRepositoryDirectoryContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryRepositoryDirectoryContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryRepositoryDirectoryContents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryRepositoryDirectoryContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchRepositoryHistory( + FetchRepositoryHistoryRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchRepositoryHistoryResponse) { + requests.add(request); + responseObserver.onNext(((FetchRepositoryHistoryResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchRepositoryHistory, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchRepositoryHistoryResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeRepositoryAccessTokenStatusResponse) { + requests.add(request); + responseObserver.onNext(((ComputeRepositoryAccessTokenStatusResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeRepositoryAccessTokenStatus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeRepositoryAccessTokenStatusResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void fetchRemoteBranches( FetchRemoteBranchesRequest request, @@ -607,6 +716,112 @@ public void writeFile( } } + @Override + public void listReleaseConfigs( + ListReleaseConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReleaseConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListReleaseConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListReleaseConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReleaseConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getReleaseConfig( + GetReleaseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReleaseConfig) { + requests.add(request); + responseObserver.onNext(((ReleaseConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetReleaseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReleaseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createReleaseConfig( + CreateReleaseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReleaseConfig) { + requests.add(request); + responseObserver.onNext(((ReleaseConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateReleaseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReleaseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateReleaseConfig( + UpdateReleaseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReleaseConfig) { + requests.add(request); + responseObserver.onNext(((ReleaseConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateReleaseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReleaseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteReleaseConfig( + DeleteReleaseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteReleaseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listCompilationResults( ListCompilationResultsRequest request, @@ -693,6 +908,112 @@ public void queryCompilationResultActions( } } + @Override + public void listWorkflowConfigs( + ListWorkflowConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListWorkflowConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListWorkflowConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkflowConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListWorkflowConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getWorkflowConfig( + GetWorkflowConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WorkflowConfig) { + requests.add(request); + responseObserver.onNext(((WorkflowConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkflowConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WorkflowConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createWorkflowConfig( + CreateWorkflowConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WorkflowConfig) { + requests.add(request); + responseObserver.onNext(((WorkflowConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkflowConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WorkflowConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateWorkflowConfig( + UpdateWorkflowConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WorkflowConfig) { + requests.add(request); + responseObserver.onNext(((WorkflowConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWorkflowConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WorkflowConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteWorkflowConfig( + DeleteWorkflowConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteWorkflowConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listWorkflowInvocations( ListWorkflowInvocationsRequest request, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java index 2f2927bfca12..3d9d076d5ba4 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java @@ -17,8 +17,14 @@ package com.google.cloud.dataform.v1beta1; import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; @@ -56,4 +62,66 @@ public void reset() { requests = new ArrayList<>(); responses = new LinkedList<>(); } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java index c268aafaa3f1..906f139782a5 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java @@ -259,6 +259,262 @@ private DataformGrpc() {} return getDeleteRepositoryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, + com.google.protobuf.Empty> + getCommitRepositoryChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitRepositoryChanges", + requestType = com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, + com.google.protobuf.Empty> + getCommitRepositoryChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, + com.google.protobuf.Empty> + getCommitRepositoryChangesMethod; + if ((getCommitRepositoryChangesMethod = DataformGrpc.getCommitRepositoryChangesMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCommitRepositoryChangesMethod = DataformGrpc.getCommitRepositoryChangesMethod) + == null) { + DataformGrpc.getCommitRepositoryChangesMethod = + getCommitRepositoryChangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CommitRepositoryChanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CommitRepositoryChanges")) + .build(); + } + } + } + return getCommitRepositoryChangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse> + getReadRepositoryFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReadRepositoryFile", + requestType = com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse> + getReadRepositoryFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse> + getReadRepositoryFileMethod; + if ((getReadRepositoryFileMethod = DataformGrpc.getReadRepositoryFileMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getReadRepositoryFileMethod = DataformGrpc.getReadRepositoryFileMethod) == null) { + DataformGrpc.getReadRepositoryFileMethod = + getReadRepositoryFileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRepositoryFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("ReadRepositoryFile")) + .build(); + } + } + } + return getReadRepositoryFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse> + getQueryRepositoryDirectoryContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryRepositoryDirectoryContents", + requestType = com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.class, + responseType = + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse> + getQueryRepositoryDirectoryContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse> + getQueryRepositoryDirectoryContentsMethod; + if ((getQueryRepositoryDirectoryContentsMethod = + DataformGrpc.getQueryRepositoryDirectoryContentsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getQueryRepositoryDirectoryContentsMethod = + DataformGrpc.getQueryRepositoryDirectoryContentsMethod) + == null) { + DataformGrpc.getQueryRepositoryDirectoryContentsMethod = + getQueryRepositoryDirectoryContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryRepositoryDirectoryContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .QueryRepositoryDirectoryContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .QueryRepositoryDirectoryContentsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryRepositoryDirectoryContents")) + .build(); + } + } + } + return getQueryRepositoryDirectoryContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse> + getFetchRepositoryHistoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchRepositoryHistory", + requestType = com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.class, + responseType = com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse> + getFetchRepositoryHistoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse> + getFetchRepositoryHistoryMethod; + if ((getFetchRepositoryHistoryMethod = DataformGrpc.getFetchRepositoryHistoryMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getFetchRepositoryHistoryMethod = DataformGrpc.getFetchRepositoryHistoryMethod) + == null) { + DataformGrpc.getFetchRepositoryHistoryMethod = + getFetchRepositoryHistoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchRepositoryHistory")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("FetchRepositoryHistory")) + .build(); + } + } + } + return getFetchRepositoryHistoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse> + getComputeRepositoryAccessTokenStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeRepositoryAccessTokenStatus", + requestType = + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.class, + responseType = + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse> + getComputeRepositoryAccessTokenStatusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse> + getComputeRepositoryAccessTokenStatusMethod; + if ((getComputeRepositoryAccessTokenStatusMethod = + DataformGrpc.getComputeRepositoryAccessTokenStatusMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getComputeRepositoryAccessTokenStatusMethod = + DataformGrpc.getComputeRepositoryAccessTokenStatusMethod) + == null) { + DataformGrpc.getComputeRepositoryAccessTokenStatusMethod = + getComputeRepositoryAccessTokenStatusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ComputeRepositoryAccessTokenStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .ComputeRepositoryAccessTokenStatusRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .ComputeRepositoryAccessTokenStatusResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier( + "ComputeRepositoryAccessTokenStatus")) + .build(); + } + } + } + return getComputeRepositoryAccessTokenStatusMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest, com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse> @@ -1216,224 +1472,690 @@ private DataformGrpc() {} } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, - com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> - getListCompilationResultsMethod; + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse> + getListReleaseConfigsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCompilationResults", - requestType = com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.class, - responseType = com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "ListReleaseConfigs", + requestType = com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, - com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> - getListCompilationResultsMethod() { + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse> + getListReleaseConfigsMethod() { io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, - com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> - getListCompilationResultsMethod; - if ((getListCompilationResultsMethod = DataformGrpc.getListCompilationResultsMethod) == null) { + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse> + getListReleaseConfigsMethod; + if ((getListReleaseConfigsMethod = DataformGrpc.getListReleaseConfigsMethod) == null) { synchronized (DataformGrpc.class) { - if ((getListCompilationResultsMethod = DataformGrpc.getListCompilationResultsMethod) - == null) { - DataformGrpc.getListCompilationResultsMethod = - getListCompilationResultsMethod = + if ((getListReleaseConfigsMethod = DataformGrpc.getListReleaseConfigsMethod) == null) { + DataformGrpc.getListReleaseConfigsMethod = + getListReleaseConfigsMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCompilationResults")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReleaseConfigs")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse .getDefaultInstance())) .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("ListCompilationResults")) + new DataformMethodDescriptorSupplier("ListReleaseConfigs")) .build(); } } } - return getListCompilationResultsMethod; + return getListReleaseConfigsMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, - com.google.cloud.dataform.v1beta1.CompilationResult> - getGetCompilationResultMethod; + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getGetReleaseConfigMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCompilationResult", - requestType = com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.class, - responseType = com.google.cloud.dataform.v1beta1.CompilationResult.class, + fullMethodName = SERVICE_NAME + '/' + "GetReleaseConfig", + requestType = com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ReleaseConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, - com.google.cloud.dataform.v1beta1.CompilationResult> - getGetCompilationResultMethod() { + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getGetReleaseConfigMethod() { io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, - com.google.cloud.dataform.v1beta1.CompilationResult> - getGetCompilationResultMethod; - if ((getGetCompilationResultMethod = DataformGrpc.getGetCompilationResultMethod) == null) { + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getGetReleaseConfigMethod; + if ((getGetReleaseConfigMethod = DataformGrpc.getGetReleaseConfigMethod) == null) { synchronized (DataformGrpc.class) { - if ((getGetCompilationResultMethod = DataformGrpc.getGetCompilationResultMethod) == null) { - DataformGrpc.getGetCompilationResultMethod = - getGetCompilationResultMethod = + if ((getGetReleaseConfigMethod = DataformGrpc.getGetReleaseConfigMethod) == null) { + DataformGrpc.getGetReleaseConfigMethod = + getGetReleaseConfigMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCompilationResult")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReleaseConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.CompilationResult - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("GetCompilationResult")) + com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetReleaseConfig")) .build(); } } } - return getGetCompilationResultMethod; + return getGetReleaseConfigMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, - com.google.cloud.dataform.v1beta1.CompilationResult> - getCreateCompilationResultMethod; + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getCreateReleaseConfigMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCompilationResult", - requestType = com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.class, - responseType = com.google.cloud.dataform.v1beta1.CompilationResult.class, + fullMethodName = SERVICE_NAME + '/' + "CreateReleaseConfig", + requestType = com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ReleaseConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, - com.google.cloud.dataform.v1beta1.CompilationResult> - getCreateCompilationResultMethod() { + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getCreateReleaseConfigMethod() { io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, - com.google.cloud.dataform.v1beta1.CompilationResult> - getCreateCompilationResultMethod; - if ((getCreateCompilationResultMethod = DataformGrpc.getCreateCompilationResultMethod) - == null) { + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getCreateReleaseConfigMethod; + if ((getCreateReleaseConfigMethod = DataformGrpc.getCreateReleaseConfigMethod) == null) { synchronized (DataformGrpc.class) { - if ((getCreateCompilationResultMethod = DataformGrpc.getCreateCompilationResultMethod) - == null) { - DataformGrpc.getCreateCompilationResultMethod = - getCreateCompilationResultMethod = + if ((getCreateReleaseConfigMethod = DataformGrpc.getCreateReleaseConfigMethod) == null) { + DataformGrpc.getCreateReleaseConfigMethod = + getCreateReleaseConfigMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCompilationResult")) + generateFullMethodName(SERVICE_NAME, "CreateReleaseConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.CompilationResult - .getDefaultInstance())) + com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance())) .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("CreateCompilationResult")) + new DataformMethodDescriptorSupplier("CreateReleaseConfig")) .build(); } } } - return getCreateCompilationResultMethod; + return getCreateReleaseConfigMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> - getQueryCompilationResultActionsMethod; + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getUpdateReleaseConfigMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryCompilationResultActions", - requestType = com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.class, - responseType = com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "UpdateReleaseConfig", + requestType = com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ReleaseConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> - getQueryCompilationResultActionsMethod() { + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getUpdateReleaseConfigMethod() { io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> - getQueryCompilationResultActionsMethod; - if ((getQueryCompilationResultActionsMethod = - DataformGrpc.getQueryCompilationResultActionsMethod) - == null) { + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getUpdateReleaseConfigMethod; + if ((getUpdateReleaseConfigMethod = DataformGrpc.getUpdateReleaseConfigMethod) == null) { synchronized (DataformGrpc.class) { - if ((getQueryCompilationResultActionsMethod = - DataformGrpc.getQueryCompilationResultActionsMethod) - == null) { - DataformGrpc.getQueryCompilationResultActionsMethod = - getQueryCompilationResultActionsMethod = + if ((getUpdateReleaseConfigMethod = DataformGrpc.getUpdateReleaseConfigMethod) == null) { + DataformGrpc.getUpdateReleaseConfigMethod = + getUpdateReleaseConfigMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "QueryCompilationResultActions")) + generateFullMethodName(SERVICE_NAME, "UpdateReleaseConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1beta1 - .QueryCompilationResultActionsResponse.getDefaultInstance())) + com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance())) .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("QueryCompilationResultActions")) + new DataformMethodDescriptorSupplier("UpdateReleaseConfig")) .build(); } } } - return getQueryCompilationResultActionsMethod; + return getUpdateReleaseConfigMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> - getListWorkflowInvocationsMethod; + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest, com.google.protobuf.Empty> + getDeleteReleaseConfigMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkflowInvocations", - requestType = com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.class, - responseType = com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "DeleteReleaseConfig", + requestType = com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.class, + responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> - getListWorkflowInvocationsMethod() { + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest, com.google.protobuf.Empty> + getDeleteReleaseConfigMethod() { io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> - getListWorkflowInvocationsMethod; - if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) - == null) { + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest, com.google.protobuf.Empty> + getDeleteReleaseConfigMethod; + if ((getDeleteReleaseConfigMethod = DataformGrpc.getDeleteReleaseConfigMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteReleaseConfigMethod = DataformGrpc.getDeleteReleaseConfigMethod) == null) { + DataformGrpc.getDeleteReleaseConfigMethod = + getDeleteReleaseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteReleaseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("DeleteReleaseConfig")) + .build(); + } + } + } + return getDeleteReleaseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + getListCompilationResultsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCompilationResults", + requestType = com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + getListCompilationResultsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + getListCompilationResultsMethod; + if ((getListCompilationResultsMethod = DataformGrpc.getListCompilationResultsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getListCompilationResultsMethod = DataformGrpc.getListCompilationResultsMethod) + == null) { + DataformGrpc.getListCompilationResultsMethod = + getListCompilationResultsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCompilationResults")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("ListCompilationResults")) + .build(); + } + } + } + return getListCompilationResultsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getGetCompilationResultMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCompilationResult", + requestType = com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.class, + responseType = com.google.cloud.dataform.v1beta1.CompilationResult.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getGetCompilationResultMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getGetCompilationResultMethod; + if ((getGetCompilationResultMethod = DataformGrpc.getGetCompilationResultMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetCompilationResultMethod = DataformGrpc.getGetCompilationResultMethod) == null) { + DataformGrpc.getGetCompilationResultMethod = + getGetCompilationResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCompilationResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CompilationResult + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("GetCompilationResult")) + .build(); + } + } + } + return getGetCompilationResultMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getCreateCompilationResultMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCompilationResult", + requestType = com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.class, + responseType = com.google.cloud.dataform.v1beta1.CompilationResult.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getCreateCompilationResultMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getCreateCompilationResultMethod; + if ((getCreateCompilationResultMethod = DataformGrpc.getCreateCompilationResultMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCreateCompilationResultMethod = DataformGrpc.getCreateCompilationResultMethod) + == null) { + DataformGrpc.getCreateCompilationResultMethod = + getCreateCompilationResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCompilationResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CompilationResult + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateCompilationResult")) + .build(); + } + } + } + return getCreateCompilationResultMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + getQueryCompilationResultActionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryCompilationResultActions", + requestType = com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + getQueryCompilationResultActionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + getQueryCompilationResultActionsMethod; + if ((getQueryCompilationResultActionsMethod = + DataformGrpc.getQueryCompilationResultActionsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getQueryCompilationResultActionsMethod = + DataformGrpc.getQueryCompilationResultActionsMethod) + == null) { + DataformGrpc.getQueryCompilationResultActionsMethod = + getQueryCompilationResultActionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryCompilationResultActions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .QueryCompilationResultActionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryCompilationResultActions")) + .build(); + } + } + } + return getQueryCompilationResultActionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse> + getListWorkflowConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkflowConfigs", + requestType = com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse> + getListWorkflowConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse> + getListWorkflowConfigsMethod; + if ((getListWorkflowConfigsMethod = DataformGrpc.getListWorkflowConfigsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getListWorkflowConfigsMethod = DataformGrpc.getListWorkflowConfigsMethod) == null) { + DataformGrpc.getListWorkflowConfigsMethod = + getListWorkflowConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkflowConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("ListWorkflowConfigs")) + .build(); + } + } + } + return getListWorkflowConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getGetWorkflowConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkflowConfig", + requestType = com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.class, + responseType = com.google.cloud.dataform.v1beta1.WorkflowConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getGetWorkflowConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getGetWorkflowConfigMethod; + if ((getGetWorkflowConfigMethod = DataformGrpc.getGetWorkflowConfigMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetWorkflowConfigMethod = DataformGrpc.getGetWorkflowConfigMethod) == null) { + DataformGrpc.getGetWorkflowConfigMethod = + getGetWorkflowConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflowConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.WorkflowConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("GetWorkflowConfig")) + .build(); + } + } + } + return getGetWorkflowConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getCreateWorkflowConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowConfig", + requestType = com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.class, + responseType = com.google.cloud.dataform.v1beta1.WorkflowConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getCreateWorkflowConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getCreateWorkflowConfigMethod; + if ((getCreateWorkflowConfigMethod = DataformGrpc.getCreateWorkflowConfigMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateWorkflowConfigMethod = DataformGrpc.getCreateWorkflowConfigMethod) == null) { + DataformGrpc.getCreateWorkflowConfigMethod = + getCreateWorkflowConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkflowConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.WorkflowConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateWorkflowConfig")) + .build(); + } + } + } + return getCreateWorkflowConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getUpdateWorkflowConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflowConfig", + requestType = com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.class, + responseType = com.google.cloud.dataform.v1beta1.WorkflowConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getUpdateWorkflowConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getUpdateWorkflowConfigMethod; + if ((getUpdateWorkflowConfigMethod = DataformGrpc.getUpdateWorkflowConfigMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateWorkflowConfigMethod = DataformGrpc.getUpdateWorkflowConfigMethod) == null) { + DataformGrpc.getUpdateWorkflowConfigMethod = + getUpdateWorkflowConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkflowConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.WorkflowConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("UpdateWorkflowConfig")) + .build(); + } + } + } + return getUpdateWorkflowConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest, com.google.protobuf.Empty> + getDeleteWorkflowConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowConfig", + requestType = com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest, com.google.protobuf.Empty> + getDeleteWorkflowConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest, + com.google.protobuf.Empty> + getDeleteWorkflowConfigMethod; + if ((getDeleteWorkflowConfigMethod = DataformGrpc.getDeleteWorkflowConfigMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteWorkflowConfigMethod = DataformGrpc.getDeleteWorkflowConfigMethod) == null) { + DataformGrpc.getDeleteWorkflowConfigMethod = + getDeleteWorkflowConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkflowConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("DeleteWorkflowConfig")) + .build(); + } + } + } + return getDeleteWorkflowConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + getListWorkflowInvocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkflowInvocations", + requestType = com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + getListWorkflowInvocationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + getListWorkflowInvocationsMethod; + if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) + == null) { synchronized (DataformGrpc.class) { if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) == null) { @@ -1837,6 +2559,87 @@ default void deleteRepository( getDeleteRepositoryMethod(), responseObserver); } + /** + * + * + *

+     * Applies a Git commit to a Repository. The Repository must not have a value
+     * for `git_remote_settings.url`.
+     * 
+ */ + default void commitRepositoryChanges( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitRepositoryChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Repository). The Repository
+     * must not have a value for `git_remote_settings.url`.
+     * 
+ */ + default void readRepositoryFile( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReadRepositoryFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a given Repository directory. The Repository must
+     * not have a value for `git_remote_settings.url`.
+     * 
+ */ + default void queryRepositoryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryRepositoryDirectoryContentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a Repository's history of commits.  The Repository must not have a
+     * value for `git_remote_settings.url`.
+     * 
+ */ + default void fetchRepositoryHistory( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchRepositoryHistoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Computes a Repository's Git access token status.
+     * 
+ */ + default void computeRepositoryAccessTokenStatus( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeRepositoryAccessTokenStatusMethod(), responseObserver); + } + /** * * @@ -2124,83 +2927,231 @@ default void moveFile( com.google.cloud.dataform.v1beta1.MoveFileRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Writes to a file (inside a Workspace).
+     * 
+ */ + default void writeFile( + com.google.cloud.dataform.v1beta1.WriteFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ReleaseConfigs in a given Repository.
+     * 
+ */ + default void listReleaseConfigs( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReleaseConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a single ReleaseConfig.
+     * 
+ */ + default void getReleaseConfig( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReleaseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new ReleaseConfig in a given Repository.
+     * 
+ */ + default void createReleaseConfig( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReleaseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a single ReleaseConfig.
+     * 
+ */ + default void updateReleaseConfig( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateReleaseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single ReleaseConfig.
+     * 
+ */ + default void deleteReleaseConfig( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReleaseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CompilationResults in a given Repository.
+     * 
+ */ + default void listCompilationResults( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCompilationResultsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a single CompilationResult.
+     * 
+ */ + default void getCompilationResult( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCompilationResultMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new CompilationResult in a given project and location.
+     * 
+ */ + default void createCompilationResult( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCompilationResultMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns CompilationResultActions in a given CompilationResult.
+     * 
+ */ + default void queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryCompilationResultActionsMethod(), responseObserver); } /** * * *
-     * Writes to a file (inside a Workspace).
+     * Lists WorkflowConfigs in a given Repository.
      * 
*/ - default void writeFile( - com.google.cloud.dataform.v1beta1.WriteFileRequest request, - io.grpc.stub.StreamObserver + default void listWorkflowConfigs( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteFileMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowConfigsMethod(), responseObserver); } /** * * *
-     * Lists CompilationResults in a given Repository.
+     * Fetches a single WorkflowConfig.
      * 
*/ - default void listCompilationResults( - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + default void getWorkflowConfig( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCompilationResultsMethod(), responseObserver); + getGetWorkflowConfigMethod(), responseObserver); } /** * * *
-     * Fetches a single CompilationResult.
+     * Creates a new WorkflowConfig in a given Repository.
      * 
*/ - default void getCompilationResult( - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request, - io.grpc.stub.StreamObserver + default void createWorkflowConfig( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCompilationResultMethod(), responseObserver); + getCreateWorkflowConfigMethod(), responseObserver); } /** * * *
-     * Creates a new CompilationResult in a given project and location.
+     * Updates a single WorkflowConfig.
      * 
*/ - default void createCompilationResult( - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request, - io.grpc.stub.StreamObserver + default void updateWorkflowConfig( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCompilationResultMethod(), responseObserver); + getUpdateWorkflowConfigMethod(), responseObserver); } /** * * *
-     * Returns CompilationResultActions in a given CompilationResult.
+     * Deletes a single WorkflowConfig.
      * 
*/ - default void queryCompilationResultActions( - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> - responseObserver) { + default void deleteWorkflowConfig( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryCompilationResultActionsMethod(), responseObserver); + getDeleteWorkflowConfigMethod(), responseObserver); } /** @@ -2412,6 +3363,97 @@ public void deleteRepository( responseObserver); } + /** + * + * + *
+     * Applies a Git commit to a Repository. The Repository must not have a value
+     * for `git_remote_settings.url`.
+     * 
+ */ + public void commitRepositoryChanges( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitRepositoryChangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Repository). The Repository
+     * must not have a value for `git_remote_settings.url`.
+     * 
+ */ + public void readRepositoryFile( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReadRepositoryFileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a given Repository directory. The Repository must
+     * not have a value for `git_remote_settings.url`.
+     * 
+ */ + public void queryRepositoryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryRepositoryDirectoryContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a Repository's history of commits.  The Repository must not have a
+     * value for `git_remote_settings.url`.
+     * 
+ */ + public void fetchRepositoryHistory( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchRepositoryHistoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Computes a Repository's Git access token status.
+     * 
+ */ + public void computeRepositoryAccessTokenStatus( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeRepositoryAccessTokenStatusMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2616,12 +3658,174 @@ public void resetWorkspaceChanges( * Fetches Git diff for an uncommitted file in a Workspace. * */ - public void fetchFileDiff( - com.google.cloud.dataform.v1beta1.FetchFileDiffRequest request, - io.grpc.stub.StreamObserver + public void fetchFileDiff( + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchFileDiffMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a given Workspace directory.
+     * 
+ */ + public void queryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryDirectoryContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a directory inside a Workspace.
+     * 
+ */ + public void makeDirectory( + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMakeDirectoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a directory (inside a Workspace) and all of its contents.
+     * 
+ */ + public void removeDirectory( + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveDirectoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Moves a directory (inside a Workspace), and all of its contents, to a new
+     * location.
+     * 
+ */ + public void moveDirectory( + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveDirectoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Workspace).
+     * 
+ */ + public void readFile( + com.google.cloud.dataform.v1beta1.ReadFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReadFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a file (inside a Workspace).
+     * 
+ */ + public void removeFile( + com.google.cloud.dataform.v1beta1.RemoveFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Moves a file (inside a Workspace) to a new location.
+     * 
+ */ + public void moveFile( + com.google.cloud.dataform.v1beta1.MoveFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Writes to a file (inside a Workspace).
+     * 
+ */ + public void writeFile( + com.google.cloud.dataform.v1beta1.WriteFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWriteFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists ReleaseConfigs in a given Repository.
+     * 
+ */ + public void listReleaseConfigs( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReleaseConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a single ReleaseConfig.
+     * 
+ */ + public void getReleaseConfig( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchFileDiffMethod(), getCallOptions()), + getChannel().newCall(getGetReleaseConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2630,16 +3834,15 @@ public void fetchFileDiff( * * *
-     * Returns the contents of a given Workspace directory.
+     * Creates a new ReleaseConfig in a given Repository.
      * 
*/ - public void queryDirectoryContents( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse> + public void createReleaseConfig( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryDirectoryContentsMethod(), getCallOptions()), + getChannel().newCall(getCreateReleaseConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2648,15 +3851,15 @@ public void queryDirectoryContents( * * *
-     * Creates a directory inside a Workspace.
+     * Updates a single ReleaseConfig.
      * 
*/ - public void makeDirectory( - com.google.cloud.dataform.v1beta1.MakeDirectoryRequest request, - io.grpc.stub.StreamObserver + public void updateReleaseConfig( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMakeDirectoryMethod(), getCallOptions()), + getChannel().newCall(getUpdateReleaseConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2665,14 +3868,14 @@ public void makeDirectory( * * *
-     * Deletes a directory (inside a Workspace) and all of its contents.
+     * Deletes a single ReleaseConfig.
      * 
*/ - public void removeDirectory( - com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest request, + public void deleteReleaseConfig( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveDirectoryMethod(), getCallOptions()), + getChannel().newCall(getDeleteReleaseConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2681,16 +3884,16 @@ public void removeDirectory( * * *
-     * Moves a directory (inside a Workspace), and all of its contents, to a new
-     * location.
+     * Lists CompilationResults in a given Repository.
      * 
*/ - public void moveDirectory( - com.google.cloud.dataform.v1beta1.MoveDirectoryRequest request, - io.grpc.stub.StreamObserver + public void listCompilationResults( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMoveDirectoryMethod(), getCallOptions()), + getChannel().newCall(getListCompilationResultsMethod(), getCallOptions()), request, responseObserver); } @@ -2699,75 +3902,84 @@ public void moveDirectory( * * *
-     * Returns the contents of a file (inside a Workspace).
+     * Fetches a single CompilationResult.
      * 
*/ - public void readFile( - com.google.cloud.dataform.v1beta1.ReadFileRequest request, - io.grpc.stub.StreamObserver + public void getCompilationResult( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReadFileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetCompilationResultMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Deletes a file (inside a Workspace).
+     * Creates a new CompilationResult in a given project and location.
      * 
*/ - public void removeFile( - com.google.cloud.dataform.v1beta1.RemoveFileRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createCompilationResult( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveFileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateCompilationResultMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Moves a file (inside a Workspace) to a new location.
+     * Returns CompilationResultActions in a given CompilationResult.
      * 
*/ - public void moveFile( - com.google.cloud.dataform.v1beta1.MoveFileRequest request, - io.grpc.stub.StreamObserver + public void queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMoveFileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getQueryCompilationResultActionsMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Writes to a file (inside a Workspace).
+     * Lists WorkflowConfigs in a given Repository.
      * 
*/ - public void writeFile( - com.google.cloud.dataform.v1beta1.WriteFileRequest request, - io.grpc.stub.StreamObserver + public void listWorkflowConfigs( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteFileMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListWorkflowConfigsMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Lists CompilationResults in a given Repository.
+     * Fetches a single WorkflowConfig.
      * 
*/ - public void listCompilationResults( - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + public void getWorkflowConfig( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCompilationResultsMethod(), getCallOptions()), + getChannel().newCall(getGetWorkflowConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2776,15 +3988,15 @@ public void listCompilationResults( * * *
-     * Fetches a single CompilationResult.
+     * Creates a new WorkflowConfig in a given Repository.
      * 
*/ - public void getCompilationResult( - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request, - io.grpc.stub.StreamObserver + public void createWorkflowConfig( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCompilationResultMethod(), getCallOptions()), + getChannel().newCall(getCreateWorkflowConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2793,15 +4005,15 @@ public void getCompilationResult( * * *
-     * Creates a new CompilationResult in a given project and location.
+     * Updates a single WorkflowConfig.
      * 
*/ - public void createCompilationResult( - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request, - io.grpc.stub.StreamObserver + public void updateWorkflowConfig( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCompilationResultMethod(), getCallOptions()), + getChannel().newCall(getUpdateWorkflowConfigMethod(), getCallOptions()), request, responseObserver); } @@ -2810,16 +4022,14 @@ public void createCompilationResult( * * *
-     * Returns CompilationResultActions in a given CompilationResult.
+     * Deletes a single WorkflowConfig.
      * 
*/ - public void queryCompilationResultActions( - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> - responseObserver) { + public void deleteWorkflowConfig( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryCompilationResultActionsMethod(), getCallOptions()), + getChannel().newCall(getDeleteWorkflowConfigMethod(), getCallOptions()), request, responseObserver); } @@ -3011,6 +4221,77 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Applies a Git commit to a Repository. The Repository must not have a value
+     * for `git_remote_settings.url`.
+     * 
+ */ + public com.google.protobuf.Empty commitRepositoryChanges( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitRepositoryChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Repository). The Repository
+     * must not have a value for `git_remote_settings.url`.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse readRepositoryFile( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReadRepositoryFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the contents of a given Repository directory. The Repository must
+     * not have a value for `git_remote_settings.url`.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + queryRepositoryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryRepositoryDirectoryContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a Repository's history of commits.  The Repository must not have a
+     * value for `git_remote_settings.url`.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse fetchRepositoryHistory( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchRepositoryHistoryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Computes a Repository's Git access token status.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + computeRepositoryAccessTokenStatus( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeRepositoryAccessTokenStatusMethod(), getCallOptions(), request); + } + /** * * @@ -3269,73 +4550,203 @@ public com.google.protobuf.Empty removeFile( public com.google.cloud.dataform.v1beta1.MoveFileResponse moveFile( com.google.cloud.dataform.v1beta1.MoveFileRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMoveFileMethod(), getCallOptions(), request); + getChannel(), getMoveFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Writes to a file (inside a Workspace).
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.WriteFileResponse writeFile( + com.google.cloud.dataform.v1beta1.WriteFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ReleaseConfigs in a given Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse listReleaseConfigs( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReleaseConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a single ReleaseConfig.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReleaseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new ReleaseConfig in a given Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig createReleaseConfig( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReleaseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a single ReleaseConfig.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig updateReleaseConfig( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReleaseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single ReleaseConfig.
+     * 
+ */ + public com.google.protobuf.Empty deleteReleaseConfig( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReleaseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CompilationResults in a given Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse listCompilationResults( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCompilationResultsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a single CompilationResult.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCompilationResultMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new CompilationResult in a given project and location.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResult( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns CompilationResultActions in a given CompilationResult.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); } /** * * *
-     * Writes to a file (inside a Workspace).
+     * Lists WorkflowConfigs in a given Repository.
      * 
*/ - public com.google.cloud.dataform.v1beta1.WriteFileResponse writeFile( - com.google.cloud.dataform.v1beta1.WriteFileRequest request) { + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse listWorkflowConfigs( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getWriteFileMethod(), getCallOptions(), request); + getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); } /** * * *
-     * Lists CompilationResults in a given Repository.
+     * Fetches a single WorkflowConfig.
      * 
*/ - public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse listCompilationResults( - com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request) { + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCompilationResultsMethod(), getCallOptions(), request); + getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); } /** * * *
-     * Fetches a single CompilationResult.
+     * Creates a new WorkflowConfig in a given Repository.
      * 
*/ - public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult( - com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request) { + public com.google.cloud.dataform.v1beta1.WorkflowConfig createWorkflowConfig( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCompilationResultMethod(), getCallOptions(), request); + getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new CompilationResult in a given project and location.
+     * Updates a single WorkflowConfig.
      * 
*/ - public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResult( - com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request) { + public com.google.cloud.dataform.v1beta1.WorkflowConfig updateWorkflowConfig( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); } /** * * *
-     * Returns CompilationResultActions in a given CompilationResult.
+     * Deletes a single WorkflowConfig.
      * 
*/ - public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse - queryCompilationResultActions( - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) { + public com.google.protobuf.Empty deleteWorkflowConfig( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); } /** @@ -3507,6 +4918,85 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Applies a Git commit to a Repository. The Repository must not have a value
+     * for `git_remote_settings.url`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + commitRepositoryChanges( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitRepositoryChangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Repository). The Repository
+     * must not have a value for `git_remote_settings.url`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse> + readRepositoryFile(com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReadRepositoryFileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the contents of a given Repository directory. The Repository must
+     * not have a value for `git_remote_settings.url`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryRepositoryDirectoryContentsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Fetches a Repository's history of commits.  The Repository must not have a
+     * value for `git_remote_settings.url`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse> + fetchRepositoryHistory( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchRepositoryHistoryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Computes a Repository's Git access token status.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatus( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeRepositoryAccessTokenStatusMethod(), getCallOptions()), + request); + } + /** * * @@ -3799,6 +5289,75 @@ public com.google.common.util.concurrent.ListenableFuture + * Lists ReleaseConfigs in a given Repository. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse> + listReleaseConfigs(com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReleaseConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches a single ReleaseConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ReleaseConfig> + getReleaseConfig(com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReleaseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new ReleaseConfig in a given Repository.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ReleaseConfig> + createReleaseConfig(com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReleaseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a single ReleaseConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ReleaseConfig> + updateReleaseConfig(com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReleaseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single ReleaseConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteReleaseConfig(com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteReleaseConfigMethod(), getCallOptions()), request); + } + /** * * @@ -3860,6 +5419,78 @@ public com.google.common.util.concurrent.ListenableFuture + * Lists WorkflowConfigs in a given Repository. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse> + listWorkflowConfigs(com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkflowConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches a single WorkflowConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.WorkflowConfig> + getWorkflowConfig(com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkflowConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new WorkflowConfig in a given Repository.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.WorkflowConfig> + createWorkflowConfig( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkflowConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a single WorkflowConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.WorkflowConfig> + updateWorkflowConfig( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkflowConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single WorkflowConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkflowConfig( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkflowConfigMethod(), getCallOptions()), request); + } + /** * * @@ -3955,37 +5586,52 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4034,6 +5680,39 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_COMMIT_REPOSITORY_CHANGES: + serviceImpl.commitRepositoryChanges( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_READ_REPOSITORY_FILE: + serviceImpl.readRepositoryFile( + (com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse>) + responseObserver); + break; + case METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS: + serviceImpl.queryRepositoryDirectoryContents( + (com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse>) + responseObserver); + break; + case METHODID_FETCH_REPOSITORY_HISTORY: + serviceImpl.fetchRepositoryHistory( + (com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse>) + responseObserver); + break; + case METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS: + serviceImpl.computeRepositoryAccessTokenStatus( + (com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse>) + responseObserver); + break; case METHODID_FETCH_REMOTE_BRANCHES: serviceImpl.fetchRemoteBranches( (com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) request, @@ -4159,6 +5838,36 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_RELEASE_CONFIGS: + serviceImpl.listReleaseConfigs( + (com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse>) + responseObserver); + break; + case METHODID_GET_RELEASE_CONFIG: + serviceImpl.getReleaseConfig( + (com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_RELEASE_CONFIG: + serviceImpl.createReleaseConfig( + (com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RELEASE_CONFIG: + serviceImpl.updateReleaseConfig( + (com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_RELEASE_CONFIG: + serviceImpl.deleteReleaseConfig( + (com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_COMPILATION_RESULTS: serviceImpl.listCompilationResults( (com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) request, @@ -4185,6 +5894,36 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse>) responseObserver); break; + case METHODID_LIST_WORKFLOW_CONFIGS: + serviceImpl.listWorkflowConfigs( + (com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse>) + responseObserver); + break; + case METHODID_GET_WORKFLOW_CONFIG: + serviceImpl.getWorkflowConfig( + (com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_WORKFLOW_CONFIG: + serviceImpl.createWorkflowConfig( + (com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_WORKFLOW_CONFIG: + serviceImpl.updateWorkflowConfig( + (com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_WORKFLOW_CONFIG: + serviceImpl.deleteWorkflowConfig( + (com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_WORKFLOW_INVOCATIONS: serviceImpl.listWorkflowInvocations( (com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) request, @@ -4273,6 +6012,40 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REPOSITORY))) + .addMethod( + getCommitRepositoryChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, + com.google.protobuf.Empty>(service, METHODID_COMMIT_REPOSITORY_CHANGES))) + .addMethod( + getReadRepositoryFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse>( + service, METHODID_READ_REPOSITORY_FILE))) + .addMethod( + getQueryRepositoryDirectoryContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse>( + service, METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS))) + .addMethod( + getFetchRepositoryHistoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse>( + service, METHODID_FETCH_REPOSITORY_HISTORY))) + .addMethod( + getComputeRepositoryAccessTokenStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse>( + service, METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS))) .addMethod( getFetchRemoteBranchesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4412,6 +6185,40 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.dataform.v1beta1.WriteFileRequest, com.google.cloud.dataform.v1beta1.WriteFileResponse>( service, METHODID_WRITE_FILE))) + .addMethod( + getListReleaseConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse>( + service, METHODID_LIST_RELEASE_CONFIGS))) + .addMethod( + getGetReleaseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig>( + service, METHODID_GET_RELEASE_CONFIG))) + .addMethod( + getCreateReleaseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig>( + service, METHODID_CREATE_RELEASE_CONFIG))) + .addMethod( + getUpdateReleaseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest, + com.google.cloud.dataform.v1beta1.ReleaseConfig>( + service, METHODID_UPDATE_RELEASE_CONFIG))) + .addMethod( + getDeleteReleaseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_RELEASE_CONFIG))) .addMethod( getListCompilationResultsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4440,6 +6247,40 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse>( service, METHODID_QUERY_COMPILATION_RESULT_ACTIONS))) + .addMethod( + getListWorkflowConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse>( + service, METHODID_LIST_WORKFLOW_CONFIGS))) + .addMethod( + getGetWorkflowConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig>( + service, METHODID_GET_WORKFLOW_CONFIG))) + .addMethod( + getCreateWorkflowConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig>( + service, METHODID_CREATE_WORKFLOW_CONFIG))) + .addMethod( + getUpdateWorkflowConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest, + com.google.cloud.dataform.v1beta1.WorkflowConfig>( + service, METHODID_UPDATE_WORKFLOW_CONFIG))) + .addMethod( + getDeleteWorkflowConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_WORKFLOW_CONFIG))) .addMethod( getListWorkflowInvocationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4534,6 +6375,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateRepositoryMethod()) .addMethod(getUpdateRepositoryMethod()) .addMethod(getDeleteRepositoryMethod()) + .addMethod(getCommitRepositoryChangesMethod()) + .addMethod(getReadRepositoryFileMethod()) + .addMethod(getQueryRepositoryDirectoryContentsMethod()) + .addMethod(getFetchRepositoryHistoryMethod()) + .addMethod(getComputeRepositoryAccessTokenStatusMethod()) .addMethod(getFetchRemoteBranchesMethod()) .addMethod(getListWorkspacesMethod()) .addMethod(getGetWorkspaceMethod()) @@ -4555,10 +6401,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRemoveFileMethod()) .addMethod(getMoveFileMethod()) .addMethod(getWriteFileMethod()) + .addMethod(getListReleaseConfigsMethod()) + .addMethod(getGetReleaseConfigMethod()) + .addMethod(getCreateReleaseConfigMethod()) + .addMethod(getUpdateReleaseConfigMethod()) + .addMethod(getDeleteReleaseConfigMethod()) .addMethod(getListCompilationResultsMethod()) .addMethod(getGetCompilationResultMethod()) .addMethod(getCreateCompilationResultMethod()) .addMethod(getQueryCompilationResultActionsMethod()) + .addMethod(getListWorkflowConfigsMethod()) + .addMethod(getGetWorkflowConfigMethod()) + .addMethod(getCreateWorkflowConfigMethod()) + .addMethod(getUpdateWorkflowConfigMethod()) + .addMethod(getDeleteWorkflowConfigMethod()) .addMethod(getListWorkflowInvocationsMethod()) .addMethod(getGetWorkflowInvocationMethod()) .addMethod(getCreateWorkflowInvocationMethod()) diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CodeCompilationConfig.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CodeCompilationConfig.java new file mode 100644 index 000000000000..ce541c0bb59c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CodeCompilationConfig.java @@ -0,0 +1,2085 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Configures various aspects of Dataform code compilation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CodeCompilationConfig} + */ +public final class CodeCompilationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CodeCompilationConfig) + CodeCompilationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CodeCompilationConfig.newBuilder() to construct. + private CodeCompilationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CodeCompilationConfig() { + defaultDatabase_ = ""; + defaultSchema_ = ""; + defaultLocation_ = ""; + assertionSchema_ = ""; + databaseSuffix_ = ""; + schemaSuffix_ = ""; + tablePrefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CodeCompilationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetVars(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.class, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder.class); + } + + public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultDatabase_ = ""; + /** + * + * + *
+   * Optional. The default database (Google Cloud project ID).
+   * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + @java.lang.Override + public java.lang.String getDefaultDatabase() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDatabase_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The default database (Google Cloud project ID).
+   * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_SCHEMA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultSchema_ = ""; + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID).
+   * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultSchema. + */ + @java.lang.Override + public java.lang.String getDefaultSchema() { + java.lang.Object ref = defaultSchema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSchema_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID).
+   * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultSchemaBytes() { + java.lang.Object ref = defaultSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_LOCATION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLocation_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The defaultLocation. + */ + @java.lang.Override + public java.lang.String getDefaultLocation() { + java.lang.Object ref = defaultLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLocation_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for defaultLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLocationBytes() { + java.lang.Object ref = defaultLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSERTION_SCHEMA_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object assertionSchema_ = ""; + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID) for assertions.
+   * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assertionSchema. + */ + @java.lang.Override + public java.lang.String getAssertionSchema() { + java.lang.Object ref = assertionSchema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assertionSchema_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID) for assertions.
+   * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assertionSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssertionSchemaBytes() { + java.lang.Object ref = assertionSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assertionSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VARS_FIELD_NUMBER = 4; + + private static final class VarsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_VarsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField vars_; + + private com.google.protobuf.MapField internalGetVars() { + if (vars_ == null) { + return com.google.protobuf.MapField.emptyMapField(VarsDefaultEntryHolder.defaultEntry); + } + return vars_; + } + + public int getVarsCount() { + return internalGetVars().getMap().size(); + } + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsVars(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetVars().getMap().containsKey(key); + } + /** Use {@link #getVarsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getVars() { + return getVarsMap(); + } + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getVarsMap() { + return internalGetVars().getMap(); + } + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getVarsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetVars().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getVarsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetVars().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DATABASE_SUFFIX_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseSuffix_ = ""; + /** + * + * + *
+   * Optional. The suffix that should be appended to all database (Google Cloud
+   * project ID) names.
+   * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseSuffix. + */ + @java.lang.Override + public java.lang.String getDatabaseSuffix() { + java.lang.Object ref = databaseSuffix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseSuffix_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The suffix that should be appended to all database (Google Cloud
+   * project ID) names.
+   * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseSuffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseSuffixBytes() { + java.lang.Object ref = databaseSuffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_SUFFIX_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaSuffix_ = ""; + /** + * + * + *
+   * Optional. The suffix that should be appended to all schema (BigQuery
+   * dataset ID) names.
+   * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + @java.lang.Override + public java.lang.String getSchemaSuffix() { + java.lang.Object ref = schemaSuffix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaSuffix_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The suffix that should be appended to all schema (BigQuery
+   * dataset ID) names.
+   * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaSuffixBytes() { + java.lang.Object ref = schemaSuffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_PREFIX_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object tablePrefix_ = ""; + /** + * + * + *
+   * Optional. The prefix that should be prepended to all table names.
+   * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + @java.lang.Override + public java.lang.String getTablePrefix() { + java.lang.Object ref = tablePrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tablePrefix_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The prefix that should be prepended to all table names.
+   * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTablePrefixBytes() { + java.lang.Object ref = tablePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tablePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultDatabase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultSchema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assertionSchema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assertionSchema_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetVars(), VarsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseSuffix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, schemaSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tablePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, defaultLocation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultDatabase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultSchema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assertionSchema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assertionSchema_); + } + for (java.util.Map.Entry entry : + internalGetVars().getMap().entrySet()) { + com.google.protobuf.MapEntry vars__ = + VarsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, vars__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseSuffix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, schemaSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tablePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, defaultLocation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CodeCompilationConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CodeCompilationConfig other = + (com.google.cloud.dataform.v1beta1.CodeCompilationConfig) obj; + + if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; + if (!getDefaultSchema().equals(other.getDefaultSchema())) return false; + if (!getDefaultLocation().equals(other.getDefaultLocation())) return false; + if (!getAssertionSchema().equals(other.getAssertionSchema())) return false; + if (!internalGetVars().equals(other.internalGetVars())) return false; + if (!getDatabaseSuffix().equals(other.getDatabaseSuffix())) return false; + if (!getSchemaSuffix().equals(other.getSchemaSuffix())) return false; + if (!getTablePrefix().equals(other.getTablePrefix())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDatabase().hashCode(); + hash = (37 * hash) + DEFAULT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSchema().hashCode(); + hash = (37 * hash) + DEFAULT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLocation().hashCode(); + hash = (37 * hash) + ASSERTION_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getAssertionSchema().hashCode(); + if (!internalGetVars().getMap().isEmpty()) { + hash = (37 * hash) + VARS_FIELD_NUMBER; + hash = (53 * hash) + internalGetVars().hashCode(); + } + hash = (37 * hash) + DATABASE_SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseSuffix().hashCode(); + hash = (37 * hash) + SCHEMA_SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getSchemaSuffix().hashCode(); + hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getTablePrefix().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configures various aspects of Dataform code compilation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CodeCompilationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CodeCompilationConfig) + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetVars(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableVars(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.class, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CodeCompilationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultDatabase_ = ""; + defaultSchema_ = ""; + defaultLocation_ = ""; + assertionSchema_ = ""; + internalGetMutableVars().clear(); + databaseSuffix_ = ""; + schemaSuffix_ = ""; + tablePrefix_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig build() { + com.google.cloud.dataform.v1beta1.CodeCompilationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig buildPartial() { + com.google.cloud.dataform.v1beta1.CodeCompilationConfig result = + new com.google.cloud.dataform.v1beta1.CodeCompilationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CodeCompilationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultDatabase_ = defaultDatabase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultSchema_ = defaultSchema_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultLocation_ = defaultLocation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.assertionSchema_ = assertionSchema_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vars_ = internalGetVars(); + result.vars_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.databaseSuffix_ = databaseSuffix_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.schemaSuffix_ = schemaSuffix_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.tablePrefix_ = tablePrefix_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CodeCompilationConfig) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CodeCompilationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CodeCompilationConfig other) { + if (other == com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance()) + return this; + if (!other.getDefaultDatabase().isEmpty()) { + defaultDatabase_ = other.defaultDatabase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDefaultSchema().isEmpty()) { + defaultSchema_ = other.defaultSchema_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDefaultLocation().isEmpty()) { + defaultLocation_ = other.defaultLocation_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAssertionSchema().isEmpty()) { + assertionSchema_ = other.assertionSchema_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableVars().mergeFrom(other.internalGetVars()); + bitField0_ |= 0x00000010; + if (!other.getDatabaseSuffix().isEmpty()) { + databaseSuffix_ = other.databaseSuffix_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getSchemaSuffix().isEmpty()) { + schemaSuffix_ = other.schemaSuffix_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getTablePrefix().isEmpty()) { + tablePrefix_ = other.tablePrefix_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + defaultDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + assertionSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry vars__ = + input.readMessage( + VarsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableVars().getMutableMap().put(vars__.getKey(), vars__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + databaseSuffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + schemaSuffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + tablePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + defaultLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object defaultDatabase_ = ""; + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + public java.lang.String getDefaultDatabase() { + java.lang.Object ref = defaultDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultDatabase to set. + * @return This builder for chaining. + */ + public Builder setDefaultDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultDatabase() { + defaultDatabase_ = getDefaultInstance().getDefaultDatabase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultDatabase to set. + * @return This builder for chaining. + */ + public Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object defaultSchema_ = ""; + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultSchema. + */ + public java.lang.String getDefaultSchema() { + java.lang.Object ref = defaultSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultSchema. + */ + public com.google.protobuf.ByteString getDefaultSchemaBytes() { + java.lang.Object ref = defaultSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultSchema to set. + * @return This builder for chaining. + */ + public Builder setDefaultSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultSchema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultSchema() { + defaultSchema_ = getDefaultInstance().getDefaultSchema(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultSchema to set. + * @return This builder for chaining. + */ + public Builder setDefaultSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultSchema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object defaultLocation_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The defaultLocation. + */ + public java.lang.String getDefaultLocation() { + java.lang.Object ref = defaultLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for defaultLocation. + */ + public com.google.protobuf.ByteString getDefaultLocationBytes() { + java.lang.Object ref = defaultLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The defaultLocation to set. + * @return This builder for chaining. + */ + public Builder setDefaultLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultLocation() { + defaultLocation_ = getDefaultInstance().getDefaultLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for defaultLocation to set. + * @return This builder for chaining. + */ + public Builder setDefaultLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object assertionSchema_ = ""; + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assertionSchema. + */ + public java.lang.String getAssertionSchema() { + java.lang.Object ref = assertionSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assertionSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assertionSchema. + */ + public com.google.protobuf.ByteString getAssertionSchemaBytes() { + java.lang.Object ref = assertionSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assertionSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assertionSchema to set. + * @return This builder for chaining. + */ + public Builder setAssertionSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assertionSchema_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssertionSchema() { + assertionSchema_ = getDefaultInstance().getAssertionSchema(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assertionSchema to set. + * @return This builder for chaining. + */ + public Builder setAssertionSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assertionSchema_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField vars_; + + private com.google.protobuf.MapField internalGetVars() { + if (vars_ == null) { + return com.google.protobuf.MapField.emptyMapField(VarsDefaultEntryHolder.defaultEntry); + } + return vars_; + } + + private com.google.protobuf.MapField + internalGetMutableVars() { + if (vars_ == null) { + vars_ = com.google.protobuf.MapField.newMapField(VarsDefaultEntryHolder.defaultEntry); + } + if (!vars_.isMutable()) { + vars_ = vars_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return vars_; + } + + public int getVarsCount() { + return internalGetVars().getMap().size(); + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsVars(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetVars().getMap().containsKey(key); + } + /** Use {@link #getVarsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getVars() { + return getVarsMap(); + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getVarsMap() { + return internalGetVars().getMap(); + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getVarsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetVars().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getVarsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetVars().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearVars() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableVars().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeVars(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableVars().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableVars() { + bitField0_ |= 0x00000010; + return internalGetMutableVars().getMutableMap(); + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putVars(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableVars().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code
+     * during compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllVars(java.util.Map values) { + internalGetMutableVars().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object databaseSuffix_ = ""; + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud
+     * project ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseSuffix. + */ + public java.lang.String getDatabaseSuffix() { + java.lang.Object ref = databaseSuffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseSuffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud
+     * project ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseSuffix. + */ + public com.google.protobuf.ByteString getDatabaseSuffixBytes() { + java.lang.Object ref = databaseSuffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud
+     * project ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The databaseSuffix to set. + * @return This builder for chaining. + */ + public Builder setDatabaseSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseSuffix_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud
+     * project ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseSuffix() { + databaseSuffix_ = getDefaultInstance().getDatabaseSuffix(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud
+     * project ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for databaseSuffix to set. + * @return This builder for chaining. + */ + public Builder setDatabaseSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseSuffix_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object schemaSuffix_ = ""; + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + public java.lang.String getSchemaSuffix() { + java.lang.Object ref = schemaSuffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaSuffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + public com.google.protobuf.ByteString getSchemaSuffixBytes() { + java.lang.Object ref = schemaSuffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The schemaSuffix to set. + * @return This builder for chaining. + */ + public Builder setSchemaSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaSuffix_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSchemaSuffix() { + schemaSuffix_ = getDefaultInstance().getSchemaSuffix(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for schemaSuffix to set. + * @return This builder for chaining. + */ + public Builder setSchemaSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaSuffix_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object tablePrefix_ = ""; + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + public java.lang.String getTablePrefix() { + java.lang.Object ref = tablePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tablePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + public com.google.protobuf.ByteString getTablePrefixBytes() { + java.lang.Object ref = tablePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tablePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tablePrefix to set. + * @return This builder for chaining. + */ + public Builder setTablePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tablePrefix_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTablePrefix() { + tablePrefix_ = getDefaultInstance().getTablePrefix(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tablePrefix to set. + * @return This builder for chaining. + */ + public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tablePrefix_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CodeCompilationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CodeCompilationConfig) + private static final com.google.cloud.dataform.v1beta1.CodeCompilationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CodeCompilationConfig(); + } + + public static com.google.cloud.dataform.v1beta1.CodeCompilationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeCompilationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CodeCompilationConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CodeCompilationConfigOrBuilder.java new file mode 100644 index 000000000000..253a5b78df0e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CodeCompilationConfigOrBuilder.java @@ -0,0 +1,271 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CodeCompilationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CodeCompilationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The default database (Google Cloud project ID).
+   * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + java.lang.String getDefaultDatabase(); + /** + * + * + *
+   * Optional. The default database (Google Cloud project ID).
+   * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + com.google.protobuf.ByteString getDefaultDatabaseBytes(); + + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID).
+   * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultSchema. + */ + java.lang.String getDefaultSchema(); + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID).
+   * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultSchema. + */ + com.google.protobuf.ByteString getDefaultSchemaBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The defaultLocation. + */ + java.lang.String getDefaultLocation(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for defaultLocation. + */ + com.google.protobuf.ByteString getDefaultLocationBytes(); + + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID) for assertions.
+   * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assertionSchema. + */ + java.lang.String getAssertionSchema(); + /** + * + * + *
+   * Optional. The default schema (BigQuery dataset ID) for assertions.
+   * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assertionSchema. + */ + com.google.protobuf.ByteString getAssertionSchemaBytes(); + + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getVarsCount(); + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsVars(java.lang.String key); + /** Use {@link #getVarsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getVars(); + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getVarsMap(); + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getVarsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. User-defined variables that are made available to project code
+   * during compilation.
+   * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getVarsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. The suffix that should be appended to all database (Google Cloud
+   * project ID) names.
+   * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseSuffix. + */ + java.lang.String getDatabaseSuffix(); + /** + * + * + *
+   * Optional. The suffix that should be appended to all database (Google Cloud
+   * project ID) names.
+   * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseSuffix. + */ + com.google.protobuf.ByteString getDatabaseSuffixBytes(); + + /** + * + * + *
+   * Optional. The suffix that should be appended to all schema (BigQuery
+   * dataset ID) names.
+   * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + java.lang.String getSchemaSuffix(); + /** + * + * + *
+   * Optional. The suffix that should be appended to all schema (BigQuery
+   * dataset ID) names.
+   * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + com.google.protobuf.ByteString getSchemaSuffixBytes(); + + /** + * + * + *
+   * Optional. The prefix that should be prepended to all table names.
+   * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + java.lang.String getTablePrefix(); + /** + * + * + *
+   * Optional. The prefix that should be prepended to all table names.
+   * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + com.google.protobuf.ByteString getTablePrefixBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitLogEntry.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitLogEntry.java new file mode 100644 index 000000000000..fcb5eb16aee0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitLogEntry.java @@ -0,0 +1,1331 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a single commit log.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitLogEntry} + */ +public final class CommitLogEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitLogEntry) + CommitLogEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommitLogEntry.newBuilder() to construct. + private CommitLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommitLogEntry() { + commitSha_ = ""; + commitMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommitLogEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitLogEntry.class, + com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder.class); + } + + public static final int COMMIT_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp commitTime_; + /** + * + * + *
+   * Commit timestamp.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + * + * @return Whether the commitTime field is set. + */ + @java.lang.Override + public boolean hasCommitTime() { + return commitTime_ != null; + } + /** + * + * + *
+   * Commit timestamp.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + * + * @return The commitTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCommitTime() { + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + } + /** + * + * + *
+   * Commit timestamp.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + /** + * + * + *
+   * The commit SHA for this commit log entry.
+   * 
+ * + * string commit_sha = 2; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + /** + * + * + *
+   * The commit SHA for this commit log entry.
+   * 
+ * + * string commit_sha = 2; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 3; + private com.google.cloud.dataform.v1beta1.CommitAuthor author_; + /** + * + * + *
+   * The commit author for this commit log entry.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return author_ != null; + } + /** + * + * + *
+   * The commit author for this commit log entry.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * + * @return The author. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + /** + * + * + *
+   * The commit author for this commit log entry.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + + public static final int COMMIT_MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitMessage_ = ""; + /** + * + * + *
+   * The commit message for this commit log entry.
+   * 
+ * + * string commit_message = 4; + * + * @return The commitMessage. + */ + @java.lang.Override + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } + } + /** + * + * + *
+   * The commit message for this commit log entry.
+   * 
+ * + * string commit_message = 4; + * + * @return The bytes for commitMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (commitTime_ != null) { + output.writeMessage(1, getCommitTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitSha_); + } + if (author_ != null) { + output.writeMessage(3, getAuthor()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, commitMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commitTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitSha_); + } + if (author_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthor()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, commitMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CommitLogEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitLogEntry other = + (com.google.cloud.dataform.v1beta1.CommitLogEntry) obj; + + if (hasCommitTime() != other.hasCommitTime()) return false; + if (hasCommitTime()) { + if (!getCommitTime().equals(other.getCommitTime())) return false; + } + if (!getCommitSha().equals(other.getCommitSha())) return false; + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor().equals(other.getAuthor())) return false; + } + if (!getCommitMessage().equals(other.getCommitMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCommitTime()) { + hash = (37 * hash) + COMMIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCommitTime().hashCode(); + } + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + hash = (37 * hash) + COMMIT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getCommitMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.CommitLogEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a single commit log.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitLogEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitLogEntry) + com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitLogEntry.class, + com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CommitLogEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + commitTime_ = null; + if (commitTimeBuilder_ != null) { + commitTimeBuilder_.dispose(); + commitTimeBuilder_ = null; + } + commitSha_ = ""; + author_ = null; + if (authorBuilder_ != null) { + authorBuilder_.dispose(); + authorBuilder_ = null; + } + commitMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitLogEntry getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitLogEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitLogEntry build() { + com.google.cloud.dataform.v1beta1.CommitLogEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitLogEntry buildPartial() { + com.google.cloud.dataform.v1beta1.CommitLogEntry result = + new com.google.cloud.dataform.v1beta1.CommitLogEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CommitLogEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitSha_ = commitSha_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.author_ = authorBuilder_ == null ? author_ : authorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.commitMessage_ = commitMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CommitLogEntry) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CommitLogEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CommitLogEntry other) { + if (other == com.google.cloud.dataform.v1beta1.CommitLogEntry.getDefaultInstance()) + return this; + if (other.hasCommitTime()) { + mergeCommitTime(other.getCommitTime()); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAuthor()) { + mergeAuthor(other.getAuthor()); + } + if (!other.getCommitMessage().isEmpty()) { + commitMessage_ = other.commitMessage_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getAuthorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + commitMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp commitTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + * + * @return Whether the commitTime field is set. + */ + public boolean hasCommitTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + * + * @return The commitTime. + */ + public com.google.protobuf.Timestamp getCommitTime() { + if (commitTimeBuilder_ == null) { + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; + } else { + return commitTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + public Builder setCommitTime(com.google.protobuf.Timestamp value) { + if (commitTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commitTime_ = value; + } else { + commitTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (commitTimeBuilder_ == null) { + commitTime_ = builderForValue.build(); + } else { + commitTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { + if (commitTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && commitTime_ != null + && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCommitTimeBuilder().mergeFrom(value); + } else { + commitTime_ = value; + } + } else { + commitTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + public Builder clearCommitTime() { + bitField0_ = (bitField0_ & ~0x00000001); + commitTime_ = null; + if (commitTimeBuilder_ != null) { + commitTimeBuilder_.dispose(); + commitTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCommitTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { + if (commitTimeBuilder_ != null) { + return commitTimeBuilder_.getMessageOrBuilder(); + } else { + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; + } + } + /** + * + * + *
+     * Commit timestamp.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCommitTimeFieldBuilder() { + if (commitTimeBuilder_ == null) { + commitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), getParentForChildren(), isClean()); + commitTime_ = null; + } + return commitTimeBuilder_; + } + + private java.lang.Object commitSha_ = ""; + /** + * + * + *
+     * The commit SHA for this commit log entry.
+     * 
+ * + * string commit_sha = 2; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The commit SHA for this commit log entry.
+     * 
+ * + * string commit_sha = 2; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The commit SHA for this commit log entry.
+     * 
+ * + * string commit_sha = 2; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The commit SHA for this commit log entry.
+     * 
+ * + * string commit_sha = 2; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The commit SHA for this commit log entry.
+     * 
+ * + * string commit_sha = 2; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CommitAuthor author_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + authorBuilder_; + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * + * @return The author. + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + if (authorBuilder_ == null) { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } else { + return authorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + public Builder setAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + } else { + authorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + public Builder setAuthor( + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder builderForValue) { + if (authorBuilder_ == null) { + author_ = builderForValue.build(); + } else { + authorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + public Builder mergeAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && author_ != null + && author_ != com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance()) { + getAuthorBuilder().mergeFrom(value); + } else { + author_ = value; + } + } else { + authorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + public Builder clearAuthor() { + bitField0_ = (bitField0_ & ~0x00000004); + author_ = null; + if (authorBuilder_ != null) { + authorBuilder_.dispose(); + authorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor.Builder getAuthorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuthorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + if (authorBuilder_ != null) { + return authorBuilder_.getMessageOrBuilder(); + } else { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + } + /** + * + * + *
+     * The commit author for this commit log entry.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + getAuthorFieldBuilder() { + if (authorBuilder_ == null) { + authorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder>( + getAuthor(), getParentForChildren(), isClean()); + author_ = null; + } + return authorBuilder_; + } + + private java.lang.Object commitMessage_ = ""; + /** + * + * + *
+     * The commit message for this commit log entry.
+     * 
+ * + * string commit_message = 4; + * + * @return The commitMessage. + */ + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The commit message for this commit log entry.
+     * 
+ * + * string commit_message = 4; + * + * @return The bytes for commitMessage. + */ + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The commit message for this commit log entry.
+     * 
+ * + * string commit_message = 4; + * + * @param value The commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The commit message for this commit log entry.
+     * 
+ * + * string commit_message = 4; + * + * @return This builder for chaining. + */ + public Builder clearCommitMessage() { + commitMessage_ = getDefaultInstance().getCommitMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The commit message for this commit log entry.
+     * 
+ * + * string commit_message = 4; + * + * @param value The bytes for commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitLogEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitLogEntry) + private static final com.google.cloud.dataform.v1beta1.CommitLogEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitLogEntry(); + } + + public static com.google.cloud.dataform.v1beta1.CommitLogEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitLogEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitLogEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitLogEntryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitLogEntryOrBuilder.java new file mode 100644 index 000000000000..adbccbac0de0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitLogEntryOrBuilder.java @@ -0,0 +1,145 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CommitLogEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitLogEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Commit timestamp.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + * + * @return Whether the commitTime field is set. + */ + boolean hasCommitTime(); + /** + * + * + *
+   * Commit timestamp.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + * + * @return The commitTime. + */ + com.google.protobuf.Timestamp getCommitTime(); + /** + * + * + *
+   * Commit timestamp.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); + + /** + * + * + *
+   * The commit SHA for this commit log entry.
+   * 
+ * + * string commit_sha = 2; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + * + * + *
+   * The commit SHA for this commit log entry.
+   * 
+ * + * string commit_sha = 2; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + + /** + * + * + *
+   * The commit author for this commit log entry.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * + * @return Whether the author field is set. + */ + boolean hasAuthor(); + /** + * + * + *
+   * The commit author for this commit log entry.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * + * @return The author. + */ + com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor(); + /** + * + * + *
+   * The commit author for this commit log entry.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder(); + + /** + * + * + *
+   * The commit message for this commit log entry.
+   * 
+ * + * string commit_message = 4; + * + * @return The commitMessage. + */ + java.lang.String getCommitMessage(); + /** + * + * + *
+   * The commit message for this commit log entry.
+   * 
+ * + * string commit_message = 4; + * + * @return The bytes for commitMessage. + */ + com.google.protobuf.ByteString getCommitMessageBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitMetadata.java new file mode 100644 index 000000000000..6f6fc3c35eab --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitMetadata.java @@ -0,0 +1,913 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a Dataform Git commit.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitMetadata} + */ +public final class CommitMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitMetadata) + CommitMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommitMetadata.newBuilder() to construct. + private CommitMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommitMetadata() { + commitMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommitMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitMetadata.class, + com.google.cloud.dataform.v1beta1.CommitMetadata.Builder.class); + } + + public static final int AUTHOR_FIELD_NUMBER = 1; + private com.google.cloud.dataform.v1beta1.CommitAuthor author_; + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return author_ != null; + } + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + + public static final int COMMIT_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitMessage_ = ""; + /** + * + * + *
+   * Optional. The commit's message.
+   * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitMessage. + */ + @java.lang.Override + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The commit's message.
+   * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (author_ != null) { + output.writeMessage(1, getAuthor()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (author_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAuthor()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CommitMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitMetadata other = + (com.google.cloud.dataform.v1beta1.CommitMetadata) obj; + + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor().equals(other.getAuthor())) return false; + } + if (!getCommitMessage().equals(other.getCommitMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + hash = (37 * hash) + COMMIT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getCommitMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.CommitMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a Dataform Git commit.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitMetadata) + com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitMetadata.class, + com.google.cloud.dataform.v1beta1.CommitMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CommitMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + author_ = null; + if (authorBuilder_ != null) { + authorBuilder_.dispose(); + authorBuilder_ = null; + } + commitMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitMetadata build() { + com.google.cloud.dataform.v1beta1.CommitMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.CommitMetadata result = + new com.google.cloud.dataform.v1beta1.CommitMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CommitMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.author_ = authorBuilder_ == null ? author_ : authorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitMessage_ = commitMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CommitMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CommitMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CommitMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance()) + return this; + if (other.hasAuthor()) { + mergeAuthor(other.getAuthor()); + } + if (!other.getCommitMessage().isEmpty()) { + commitMessage_ = other.commitMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAuthorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dataform.v1beta1.CommitAuthor author_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + authorBuilder_; + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + if (authorBuilder_ == null) { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } else { + return authorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + } else { + authorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthor( + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder builderForValue) { + if (authorBuilder_ == null) { + author_ = builderForValue.build(); + } else { + authorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && author_ != null + && author_ != com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance()) { + getAuthorBuilder().mergeFrom(value); + } else { + author_ = value; + } + } else { + authorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthor() { + bitField0_ = (bitField0_ & ~0x00000001); + author_ = null; + if (authorBuilder_ != null) { + authorBuilder_.dispose(); + authorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor.Builder getAuthorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAuthorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + if (authorBuilder_ != null) { + return authorBuilder_.getMessageOrBuilder(); + } else { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + getAuthorFieldBuilder() { + if (authorBuilder_ == null) { + authorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder>( + getAuthor(), getParentForChildren(), isClean()); + author_ = null; + } + return authorBuilder_; + } + + private java.lang.Object commitMessage_ = ""; + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitMessage. + */ + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitMessage. + */ + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommitMessage() { + commitMessage_ = getDefaultInstance().getCommitMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitMetadata) + private static final com.google.cloud.dataform.v1beta1.CommitMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.CommitMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitMetadataOrBuilder.java new file mode 100644 index 000000000000..55358727cdcb --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitMetadataOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CommitMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + boolean hasAuthor(); + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor(); + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder(); + + /** + * + * + *
+   * Optional. The commit's message.
+   * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitMessage. + */ + java.lang.String getCommitMessage(); + /** + * + * + *
+   * Optional. The commit's message.
+   * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitMessage. + */ + com.google.protobuf.ByteString getCommitMessageBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitRepositoryChangesRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitRepositoryChangesRequest.java new file mode 100644 index 000000000000..2b9043ae4e01 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitRepositoryChangesRequest.java @@ -0,0 +1,4049 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CommitRepositoryChanges` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} + */ +public final class CommitRepositoryChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) + CommitRepositoryChangesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommitRepositoryChangesRequest.newBuilder() to construct. + private CommitRepositoryChangesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommitRepositoryChangesRequest() { + name_ = ""; + requiredHeadCommitSha_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommitRepositoryChangesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFileOperations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.Builder.class); + } + + public interface FileOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Represents the write operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + * + * @return Whether the writeFile field is set. + */ + boolean hasWriteFile(); + /** + * + * + *
+     * Represents the write operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + * + * @return The writeFile. + */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + getWriteFile(); + /** + * + * + *
+     * Represents the write operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder + getWriteFileOrBuilder(); + + /** + * + * + *
+     * Represents the delete operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + * + * @return Whether the deleteFile field is set. + */ + boolean hasDeleteFile(); + /** + * + * + *
+     * Represents the delete operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + * + * @return The deleteFile. + */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + getDeleteFile(); + /** + * + * + *
+     * Represents the delete operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder + getDeleteFileOrBuilder(); + + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.OperationCase + getOperationCase(); + } + /** + * + * + *
+   * Represents a single file operation to the repository.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} + */ + public static final class FileOperation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + FileOperationOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileOperation.newBuilder() to construct. + private FileOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileOperation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileOperation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.Builder + .class); + } + + public interface WriteFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The file's contents.
+       * 
+ * + * bytes contents = 1; + * + * @return The contents. + */ + com.google.protobuf.ByteString getContents(); + } + /** + * + * + *
+     * Represents the write file operation (for files added or modified).
+     * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} + */ + public static final class WriteFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) + WriteFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFile.newBuilder() to construct. + private WriteFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WriteFile() { + contents_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.Builder.class); + } + + public static final int CONTENTS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+       * The file's contents.
+       * 
+ * + * bytes contents = 1; + * + * @return The contents. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContents() { + return contents_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!contents_.isEmpty()) { + output.writeBytes(1, contents_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!contents_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, contents_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + other = + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + obj; + + if (!getContents().equals(other.getContents())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContents().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Represents the write file operation (for files added or modified).
+       * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contents_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + build() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + buildPartial() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + result = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contents_ = contents_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + other) { + if (other + == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance()) return this; + if (other.getContents() != com.google.protobuf.ByteString.EMPTY) { + setContents(other.getContents()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + contents_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+         * The file's contents.
+         * 
+ * + * bytes contents = 1; + * + * @return The contents. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContents() { + return contents_; + } + /** + * + * + *
+         * The file's contents.
+         * 
+ * + * bytes contents = 1; + * + * @param value The contents to set. + * @return This builder for chaining. + */ + public Builder setContents(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + contents_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The file's contents.
+         * 
+ * + * bytes contents = 1; + * + * @return This builder for chaining. + */ + public Builder clearContents() { + bitField0_ = (bitField0_ & ~0x00000001); + contents_ = getDefaultInstance().getContents(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) + private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation.WriteFile + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile(); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeleteFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * Represents the delete file operation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} + */ + public static final class DeleteFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) + DeleteFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFile.newBuilder() to construct. + private DeleteFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFile() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + other = + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Represents the delete file operation.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + build() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + buildPartial() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + result = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + other) { + if (other + == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) + private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation.DeleteFile + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile(); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int operationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object operation_; + + public enum OperationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WRITE_FILE(1), + DELETE_FILE(2), + OPERATION_NOT_SET(0); + private final int value; + + private OperationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationCase valueOf(int value) { + return forNumber(value); + } + + public static OperationCase forNumber(int value) { + switch (value) { + case 1: + return WRITE_FILE; + case 2: + return DELETE_FILE; + case 0: + return OPERATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OperationCase getOperationCase() { + return OperationCase.forNumber(operationCase_); + } + + public static final int WRITE_FILE_FIELD_NUMBER = 1; + /** + * + * + *
+     * Represents the write operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + * + * @return Whether the writeFile field is set. + */ + @java.lang.Override + public boolean hasWriteFile() { + return operationCase_ == 1; + } + /** + * + * + *
+     * Represents the write operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + * + * @return The writeFile. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + getWriteFile() { + if (operationCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } + /** + * + * + *
+     * Represents the write operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder + getWriteFileOrBuilder() { + if (operationCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } + + public static final int DELETE_FILE_FIELD_NUMBER = 2; + /** + * + * + *
+     * Represents the delete operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + * + * @return Whether the deleteFile field is set. + */ + @java.lang.Override + public boolean hasDeleteFile() { + return operationCase_ == 2; + } + /** + * + * + *
+     * Represents the delete operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + * + * @return The deleteFile. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + getDeleteFile() { + if (operationCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } + /** + * + * + *
+     * Represents the delete operation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder + getDeleteFileOrBuilder() { + if (operationCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (operationCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_); + } + if (operationCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_); + } + if (operationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation other = + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) obj; + + if (!getOperationCase().equals(other.getOperationCase())) return false; + switch (operationCase_) { + case 1: + if (!getWriteFile().equals(other.getWriteFile())) return false; + break; + case 2: + if (!getDeleteFile().equals(other.getDeleteFile())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (operationCase_) { + case 1: + hash = (37 * hash) + WRITE_FILE_FIELD_NUMBER; + hash = (53 * hash) + getWriteFile().hashCode(); + break; + case 2: + hash = (37 * hash) + DELETE_FILE_FIELD_NUMBER; + hash = (53 * hash) + getDeleteFile().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Represents a single file operation to the repository.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (writeFileBuilder_ != null) { + writeFileBuilder_.clear(); + } + if (deleteFileBuilder_ != null) { + deleteFileBuilder_.clear(); + } + operationCase_ = 0; + operation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + build() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + buildPartial() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result) { + result.operationCase_ = operationCase_; + result.operation_ = this.operation_; + if (operationCase_ == 1 && writeFileBuilder_ != null) { + result.operation_ = writeFileBuilder_.build(); + } + if (operationCase_ == 2 && deleteFileBuilder_ != null) { + result.operation_ = deleteFileBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation other) { + if (other + == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .getDefaultInstance()) return this; + switch (other.getOperationCase()) { + case WRITE_FILE: + { + mergeWriteFile(other.getWriteFile()); + break; + } + case DELETE_FILE: + { + mergeDeleteFile(other.getDeleteFile()); + break; + } + case OPERATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getWriteFileFieldBuilder().getBuilder(), extensionRegistry); + operationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getDeleteFileFieldBuilder().getBuilder(), extensionRegistry); + operationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int operationCase_ = 0; + private java.lang.Object operation_; + + public OperationCase getOperationCase() { + return OperationCase.forNumber(operationCase_); + } + + public Builder clearOperation() { + operationCase_ = 0; + operation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.Builder, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder> + writeFileBuilder_; + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + * + * @return Whether the writeFile field is set. + */ + @java.lang.Override + public boolean hasWriteFile() { + return operationCase_ == 1; + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + * + * @return The writeFile. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile + getWriteFile() { + if (writeFileBuilder_ == null) { + if (operationCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } else { + if (operationCase_ == 1) { + return writeFileBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + public Builder setWriteFile( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + value) { + if (writeFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + writeFileBuilder_.setMessage(value); + } + operationCase_ = 1; + return this; + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + public Builder setWriteFile( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + .Builder + builderForValue) { + if (writeFileBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + writeFileBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 1; + return this; + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + public Builder mergeWriteFile( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + value) { + if (writeFileBuilder_ == null) { + if (operationCase_ == 1 + && operation_ + != com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance()) { + operation_ = + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.newBuilder( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation.WriteFile) + operation_) + .mergeFrom(value) + .buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 1) { + writeFileBuilder_.mergeFrom(value); + } else { + writeFileBuilder_.setMessage(value); + } + } + operationCase_ = 1; + return this; + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + public Builder clearWriteFile() { + if (writeFileBuilder_ == null) { + if (operationCase_ == 1) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 1) { + operationCase_ = 0; + operation_ = null; + } + writeFileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.Builder + getWriteFileBuilder() { + return getWriteFileFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder + getWriteFileOrBuilder() { + if ((operationCase_ == 1) && (writeFileBuilder_ != null)) { + return writeFileBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } + } + /** + * + * + *
+       * Represents the write operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.Builder, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder> + getWriteFileFieldBuilder() { + if (writeFileBuilder_ == null) { + if (!(operationCase_ == 1)) { + operation_ = + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.getDefaultInstance(); + } + writeFileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile.Builder, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFileOrBuilder>( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .WriteFile) + operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 1; + onChanged(); + return writeFileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.Builder, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder> + deleteFileBuilder_; + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + * + * @return Whether the deleteFile field is set. + */ + @java.lang.Override + public boolean hasDeleteFile() { + return operationCase_ == 2; + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + * + * @return The deleteFile. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile + getDeleteFile() { + if (deleteFileBuilder_ == null) { + if (operationCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } else { + if (operationCase_ == 2) { + return deleteFileBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + public Builder setDeleteFile( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + value) { + if (deleteFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + deleteFileBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + public Builder setDeleteFile( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + .Builder + builderForValue) { + if (deleteFileBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + deleteFileBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 2; + return this; + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + public Builder mergeDeleteFile( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + value) { + if (deleteFileBuilder_ == null) { + if (operationCase_ == 2 + && operation_ + != com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance()) { + operation_ = + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.newBuilder( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation.DeleteFile) + operation_) + .mergeFrom(value) + .buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 2) { + deleteFileBuilder_.mergeFrom(value); + } else { + deleteFileBuilder_.setMessage(value); + } + } + operationCase_ = 2; + return this; + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + public Builder clearDeleteFile() { + if (deleteFileBuilder_ == null) { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + } + deleteFileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.Builder + getDeleteFileBuilder() { + return getDeleteFileFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder + getDeleteFileOrBuilder() { + if ((operationCase_ == 2) && (deleteFileBuilder_ != null)) { + return deleteFileBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_; + } + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } + } + /** + * + * + *
+       * Represents the delete operation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.Builder, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder> + getDeleteFileFieldBuilder() { + if (deleteFileBuilder_ == null) { + if (!(operationCase_ == 2)) { + operation_ = + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.getDefaultInstance(); + } + deleteFileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile.Builder, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFileOrBuilder>( + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + .DeleteFile) + operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 2; + onChanged(); + return deleteFileBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) + private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation(); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.CommitMetadata commitMetadata_; + /** + * + * + *
+   * Required. The changes to commit to the repository.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the commitMetadata field is set. + */ + @java.lang.Override + public boolean hasCommitMetadata() { + return commitMetadata_ != null; + } + /** + * + * + *
+   * Required. The changes to commit to the repository.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The commitMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitMetadata getCommitMetadata() { + return commitMetadata_ == null + ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() + : commitMetadata_; + } + /** + * + * + *
+   * Required. The changes to commit to the repository.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder getCommitMetadataOrBuilder() { + return commitMetadata_ == null + ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() + : commitMetadata_; + } + + public static final int REQUIRED_HEAD_COMMIT_SHA_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object 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.
+   * 
+ * + * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredHeadCommitSha. + */ + @java.lang.Override + public java.lang.String getRequiredHeadCommitSha() { + java.lang.Object ref = requiredHeadCommitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requiredHeadCommitSha_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for requiredHeadCommitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequiredHeadCommitShaBytes() { + java.lang.Object ref = requiredHeadCommitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requiredHeadCommitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_OPERATIONS_FIELD_NUMBER = 3; + + private static final class FileOperationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + fileOperations_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + internalGetFileOperations() { + if (fileOperations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FileOperationsDefaultEntryHolder.defaultEntry); + } + return fileOperations_; + } + + public int getFileOperationsCount() { + return internalGetFileOperations().getMap().size(); + } + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public boolean containsFileOperations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFileOperations().getMap().containsKey(key); + } + /** Use {@link #getFileOperationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getFileOperations() { + return getFileOperationsMap(); + } + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getFileOperationsMap() { + return internalGetFileOperations().getMap(); + } + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation + getFileOperationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + map = internalGetFileOperations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getFileOperationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + map = internalGetFileOperations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (commitMetadata_ != null) { + output.writeMessage(2, getCommitMetadata()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFileOperations(), FileOperationsDefaultEntryHolder.defaultEntry, 3); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requiredHeadCommitSha_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requiredHeadCommitSha_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (commitMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCommitMetadata()); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + entry : internalGetFileOperations().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + fileOperations__ = + FileOperationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fileOperations__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requiredHeadCommitSha_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requiredHeadCommitSha_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest other = + (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCommitMetadata() != other.hasCommitMetadata()) return false; + if (hasCommitMetadata()) { + if (!getCommitMetadata().equals(other.getCommitMetadata())) return false; + } + if (!getRequiredHeadCommitSha().equals(other.getRequiredHeadCommitSha())) return false; + if (!internalGetFileOperations().equals(other.internalGetFileOperations())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCommitMetadata()) { + hash = (37 * hash) + COMMIT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCommitMetadata().hashCode(); + } + hash = (37 * hash) + REQUIRED_HEAD_COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getRequiredHeadCommitSha().hashCode(); + if (!internalGetFileOperations().getMap().isEmpty()) { + hash = (37 * hash) + FILE_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFileOperations().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `CommitRepositoryChanges` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetFileOperations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableFileOperations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.class, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + commitMetadata_ = null; + if (commitMetadataBuilder_ != null) { + commitMetadataBuilder_.dispose(); + commitMetadataBuilder_ = null; + } + requiredHeadCommitSha_ = ""; + internalGetMutableFileOperations().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest build() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest result = + new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitMetadata_ = + commitMetadataBuilder_ == null ? commitMetadata_ : commitMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requiredHeadCommitSha_ = requiredHeadCommitSha_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fileOperations_ = internalGetFileOperations(); + result.fileOperations_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCommitMetadata()) { + mergeCommitMetadata(other.getCommitMetadata()); + } + if (!other.getRequiredHeadCommitSha().isEmpty()) { + requiredHeadCommitSha_ = other.requiredHeadCommitSha_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableFileOperations().mergeFrom(other.internalGetFileOperations()); + bitField0_ |= 0x00000008; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCommitMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation> + fileOperations__ = + input.readMessage( + FileOperationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFileOperations() + .getMutableMap() + .put(fileOperations__.getKey(), fileOperations__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + requiredHeadCommitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CommitMetadata commitMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitMetadata, + com.google.cloud.dataform.v1beta1.CommitMetadata.Builder, + com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder> + commitMetadataBuilder_; + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the commitMetadata field is set. + */ + public boolean hasCommitMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The commitMetadata. + */ + public com.google.cloud.dataform.v1beta1.CommitMetadata getCommitMetadata() { + if (commitMetadataBuilder_ == null) { + return commitMetadata_ == null + ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() + : commitMetadata_; + } else { + return commitMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCommitMetadata(com.google.cloud.dataform.v1beta1.CommitMetadata value) { + if (commitMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commitMetadata_ = value; + } else { + commitMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCommitMetadata( + com.google.cloud.dataform.v1beta1.CommitMetadata.Builder builderForValue) { + if (commitMetadataBuilder_ == null) { + commitMetadata_ = builderForValue.build(); + } else { + commitMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCommitMetadata(com.google.cloud.dataform.v1beta1.CommitMetadata value) { + if (commitMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && commitMetadata_ != null + && commitMetadata_ + != com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance()) { + getCommitMetadataBuilder().mergeFrom(value); + } else { + commitMetadata_ = value; + } + } else { + commitMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCommitMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + commitMetadata_ = null; + if (commitMetadataBuilder_ != null) { + commitMetadataBuilder_.dispose(); + commitMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitMetadata.Builder getCommitMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCommitMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder getCommitMetadataOrBuilder() { + if (commitMetadataBuilder_ != null) { + return commitMetadataBuilder_.getMessageOrBuilder(); + } else { + return commitMetadata_ == null + ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() + : commitMetadata_; + } + } + /** + * + * + *
+     * Required. The changes to commit to the repository.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitMetadata, + com.google.cloud.dataform.v1beta1.CommitMetadata.Builder, + com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder> + getCommitMetadataFieldBuilder() { + if (commitMetadataBuilder_ == null) { + commitMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitMetadata, + com.google.cloud.dataform.v1beta1.CommitMetadata.Builder, + com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder>( + getCommitMetadata(), getParentForChildren(), isClean()); + commitMetadata_ = null; + } + return commitMetadataBuilder_; + } + + private java.lang.Object 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.
+     * 
+ * + * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredHeadCommitSha. + */ + public java.lang.String getRequiredHeadCommitSha() { + java.lang.Object ref = requiredHeadCommitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requiredHeadCommitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for requiredHeadCommitSha. + */ + public com.google.protobuf.ByteString getRequiredHeadCommitShaBytes() { + java.lang.Object ref = requiredHeadCommitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requiredHeadCommitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The requiredHeadCommitSha to set. + * @return This builder for chaining. + */ + public Builder setRequiredHeadCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requiredHeadCommitSha_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearRequiredHeadCommitSha() { + requiredHeadCommitSha_ = getDefaultInstance().getRequiredHeadCommitSha(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for requiredHeadCommitSha to set. + * @return This builder for chaining. + */ + public Builder setRequiredHeadCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requiredHeadCommitSha_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + fileOperations_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + internalGetFileOperations() { + if (fileOperations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FileOperationsDefaultEntryHolder.defaultEntry); + } + return fileOperations_; + } + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + internalGetMutableFileOperations() { + if (fileOperations_ == null) { + fileOperations_ = + com.google.protobuf.MapField.newMapField(FileOperationsDefaultEntryHolder.defaultEntry); + } + if (!fileOperations_.isMutable()) { + fileOperations_ = fileOperations_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return fileOperations_; + } + + public int getFileOperationsCount() { + return internalGetFileOperations().getMap().size(); + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public boolean containsFileOperations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFileOperations().getMap().containsKey(key); + } + /** Use {@link #getFileOperationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getFileOperations() { + return getFileOperationsMap(); + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getFileOperationsMap() { + return internalGetFileOperations().getMap(); + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + .FileOperation + getFileOperationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + map = internalGetFileOperations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getFileOperationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + map = internalGetFileOperations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFileOperations() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableFileOperations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + public Builder removeFileOperations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFileOperations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getMutableFileOperations() { + bitField0_ |= 0x00000008; + return internalGetMutableFileOperations().getMutableMap(); + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + public Builder putFileOperations( + java.lang.String key, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFileOperations().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * A map to the path of the file to the operation. The path is the full file
+     * path including filename, from repository root.
+     * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + public Builder putAllFileOperations( + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + values) { + internalGetMutableFileOperations().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) + private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitRepositoryChangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitRepositoryChangesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitRepositoryChangesRequestOrBuilder.java new file mode 100644 index 000000000000..f8870d43242b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitRepositoryChangesRequestOrBuilder.java @@ -0,0 +1,206 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CommitRepositoryChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The changes to commit to the repository.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the commitMetadata field is set. + */ + boolean hasCommitMetadata(); + /** + * + * + *
+   * Required. The changes to commit to the repository.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The commitMetadata. + */ + com.google.cloud.dataform.v1beta1.CommitMetadata getCommitMetadata(); + /** + * + * + *
+   * Required. The changes to commit to the repository.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder getCommitMetadataOrBuilder(); + + /** + * + * + *
+   * 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]; + * + * @return The requiredHeadCommitSha. + */ + java.lang.String getRequiredHeadCommitSha(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for requiredHeadCommitSha. + */ + com.google.protobuf.ByteString getRequiredHeadCommitShaBytes(); + + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + int getFileOperationsCount(); + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + boolean containsFileOperations(java.lang.String key); + /** Use {@link #getFileOperationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getFileOperations(); + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> + getFileOperationsMap(); + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + /* nullable */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getFileOperationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + defaultValue); + /** + * + * + *
+   * A map to the path of the file to the operation. The path is the full file
+   * path including filename, from repository root.
+   * 
+ * + * + * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; + * + */ + com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + getFileOperationsOrThrow(java.lang.String key); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java index ed2b4c1c72f0..7c5a0954358a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java @@ -235,8 +235,8 @@ public com.google.protobuf.ByteString getCommitMessageBytes() { * * *
-   * 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]; @@ -250,8 +250,8 @@ public com.google.protobuf.ProtocolStringList getPathsList() { * * *
-   * 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]; @@ -265,8 +265,8 @@ public int getPathsCount() { * * *
-   * 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]; @@ -281,8 +281,8 @@ public java.lang.String getPaths(int index) { * * *
-   * 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]; @@ -1171,8 +1171,8 @@ private void ensurePathsIsMutable() { * * *
-     * 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]; @@ -1187,8 +1187,8 @@ public com.google.protobuf.ProtocolStringList getPathsList() { * * *
-     * 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]; @@ -1202,8 +1202,8 @@ public int getPathsCount() { * * *
-     * 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]; @@ -1218,8 +1218,8 @@ public java.lang.String getPaths(int index) { * * *
-     * 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]; @@ -1234,8 +1234,8 @@ public com.google.protobuf.ByteString getPathsBytes(int index) { * * *
-     * 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]; @@ -1258,8 +1258,8 @@ public Builder setPaths(int index, java.lang.String value) { * * *
-     * 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]; @@ -1281,8 +1281,8 @@ public Builder addPaths(java.lang.String value) { * * *
-     * 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]; @@ -1301,8 +1301,8 @@ public Builder addAllPaths(java.lang.Iterable values) { * * *
-     * 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]; @@ -1320,8 +1320,8 @@ public Builder clearPaths() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java index 8849ab7b82cf..10d83f185e29 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java @@ -122,8 +122,8 @@ public interface CommitWorkspaceChangesRequestOrBuilder * * *
-   * 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]; @@ -135,8 +135,8 @@ public interface CommitWorkspaceChangesRequestOrBuilder * * *
-   * 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]; @@ -148,8 +148,8 @@ public interface CommitWorkspaceChangesRequestOrBuilder * * *
-   * 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]; @@ -162,8 +162,8 @@ public interface CommitWorkspaceChangesRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java index 7b89e51b6f5c..5fd7274ede25 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java @@ -39,6 +39,7 @@ private CompilationResult(com.google.protobuf.GeneratedMessageV3.Builder buil private CompilationResult() { name_ = ""; + resolvedGitCommitSha_ = ""; dataformCoreVersion_ = ""; compilationErrors_ = java.util.Collections.emptyList(); } @@ -64,2353 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1beta1.CompilationResult.Builder.class); } - public interface CodeCompilationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. The default database (Google Cloud project ID).
-     * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultDatabase. - */ - java.lang.String getDefaultDatabase(); - /** - * - * - *
-     * Optional. The default database (Google Cloud project ID).
-     * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultDatabase. - */ - com.google.protobuf.ByteString getDefaultDatabaseBytes(); - - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID).
-     * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultSchema. - */ - java.lang.String getDefaultSchema(); - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID).
-     * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultSchema. - */ - com.google.protobuf.ByteString getDefaultSchemaBytes(); - - /** - * - * - *
-     * 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]; - * - * @return The defaultLocation. - */ - java.lang.String getDefaultLocation(); - /** - * - * - *
-     * 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]; - * - * @return The bytes for defaultLocation. - */ - com.google.protobuf.ByteString getDefaultLocationBytes(); - - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID) for assertions.
-     * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The assertionSchema. - */ - java.lang.String getAssertionSchema(); - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID) for assertions.
-     * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for assertionSchema. - */ - com.google.protobuf.ByteString getAssertionSchemaBytes(); - - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getVarsCount(); - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsVars(java.lang.String key); - /** Use {@link #getVarsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getVars(); - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getVarsMap(); - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - /* nullable */ - java.lang.String getVarsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getVarsOrThrow(java.lang.String key); - - /** - * - * - *
-     * Optional. The suffix that should be appended to all database (Google Cloud project
-     * ID) names.
-     * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The databaseSuffix. - */ - java.lang.String getDatabaseSuffix(); - /** - * - * - *
-     * Optional. The suffix that should be appended to all database (Google Cloud project
-     * ID) names.
-     * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for databaseSuffix. - */ - com.google.protobuf.ByteString getDatabaseSuffixBytes(); - - /** - * - * - *
-     * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-     * names.
-     * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The schemaSuffix. - */ - java.lang.String getSchemaSuffix(); - /** - * - * - *
-     * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-     * names.
-     * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for schemaSuffix. - */ - com.google.protobuf.ByteString getSchemaSuffixBytes(); - - /** - * - * - *
-     * Optional. The prefix that should be prepended to all table names.
-     * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tablePrefix. - */ - java.lang.String getTablePrefix(); - /** - * - * - *
-     * Optional. The prefix that should be prepended to all table names.
-     * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tablePrefix. - */ - com.google.protobuf.ByteString getTablePrefixBytes(); - } - /** - * - * - *
-   * Configures various aspects of Dataform code compilation.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} - */ - public static final class CodeCompilationConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) - CodeCompilationConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use CodeCompilationConfig.newBuilder() to construct. - private CodeCompilationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CodeCompilationConfig() { - defaultDatabase_ = ""; - defaultSchema_ = ""; - defaultLocation_ = ""; - assertionSchema_ = ""; - databaseSuffix_ = ""; - schemaSuffix_ = ""; - tablePrefix_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CodeCompilationConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetVars(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.class, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder - .class); - } - - public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object defaultDatabase_ = ""; - /** - * - * - *
-     * Optional. The default database (Google Cloud project ID).
-     * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultDatabase. - */ - @java.lang.Override - public java.lang.String getDefaultDatabase() { - java.lang.Object ref = defaultDatabase_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultDatabase_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The default database (Google Cloud project ID).
-     * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultDatabase. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultDatabaseBytes() { - java.lang.Object ref = defaultDatabase_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultDatabase_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_SCHEMA_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object defaultSchema_ = ""; - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID).
-     * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultSchema. - */ - @java.lang.Override - public java.lang.String getDefaultSchema() { - java.lang.Object ref = defaultSchema_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSchema_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID).
-     * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultSchema. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultSchemaBytes() { - java.lang.Object ref = defaultSchema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultSchema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_LOCATION_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private volatile java.lang.Object defaultLocation_ = ""; - /** - * - * - *
-     * 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]; - * - * @return The defaultLocation. - */ - @java.lang.Override - public java.lang.String getDefaultLocation() { - java.lang.Object ref = defaultLocation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultLocation_ = s; - return s; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for defaultLocation. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultLocationBytes() { - java.lang.Object ref = defaultLocation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultLocation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ASSERTION_SCHEMA_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object assertionSchema_ = ""; - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID) for assertions.
-     * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The assertionSchema. - */ - @java.lang.Override - public java.lang.String getAssertionSchema() { - java.lang.Object ref = assertionSchema_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assertionSchema_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The default schema (BigQuery dataset ID) for assertions.
-     * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for assertionSchema. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAssertionSchemaBytes() { - java.lang.Object ref = assertionSchema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - assertionSchema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VARS_FIELD_NUMBER = 4; - - private static final class VarsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField vars_; - - private com.google.protobuf.MapField internalGetVars() { - if (vars_ == null) { - return com.google.protobuf.MapField.emptyMapField(VarsDefaultEntryHolder.defaultEntry); - } - return vars_; - } - - public int getVarsCount() { - return internalGetVars().getMap().size(); - } - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsVars(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetVars().getMap().containsKey(key); - } - /** Use {@link #getVarsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVars() { - return getVarsMap(); - } - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getVarsMap() { - return internalGetVars().getMap(); - } - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public /* nullable */ java.lang.String getVarsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVars().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. User-defined variables that are made available to project code during
-     * compilation.
-     * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getVarsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVars().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DATABASE_SUFFIX_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object databaseSuffix_ = ""; - /** - * - * - *
-     * Optional. The suffix that should be appended to all database (Google Cloud project
-     * ID) names.
-     * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The databaseSuffix. - */ - @java.lang.Override - public java.lang.String getDatabaseSuffix() { - java.lang.Object ref = databaseSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databaseSuffix_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The suffix that should be appended to all database (Google Cloud project
-     * ID) names.
-     * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for databaseSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatabaseSuffixBytes() { - java.lang.Object ref = databaseSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - databaseSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_SUFFIX_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object schemaSuffix_ = ""; - /** - * - * - *
-     * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-     * names.
-     * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The schemaSuffix. - */ - @java.lang.Override - public java.lang.String getSchemaSuffix() { - java.lang.Object ref = schemaSuffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaSuffix_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-     * names.
-     * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for schemaSuffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSchemaSuffixBytes() { - java.lang.Object ref = schemaSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schemaSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_PREFIX_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private volatile java.lang.Object tablePrefix_ = ""; - /** - * - * - *
-     * Optional. The prefix that should be prepended to all table names.
-     * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tablePrefix. - */ - @java.lang.Override - public java.lang.String getTablePrefix() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tablePrefix_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The prefix that should be prepended to all table names.
-     * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tablePrefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTablePrefixBytes() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tablePrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultDatabase_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultSchema_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assertionSchema_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assertionSchema_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetVars(), VarsDefaultEntryHolder.defaultEntry, 4); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseSuffix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseSuffix_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, schemaSuffix_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tablePrefix_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, defaultLocation_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultDatabase_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultSchema_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assertionSchema_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assertionSchema_); - } - for (java.util.Map.Entry entry : - internalGetVars().getMap().entrySet()) { - com.google.protobuf.MapEntry vars__ = - VarsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, vars__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseSuffix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseSuffix_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, schemaSuffix_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tablePrefix_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLocation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, defaultLocation_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig other = - (com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) obj; - - if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; - if (!getDefaultSchema().equals(other.getDefaultSchema())) return false; - if (!getDefaultLocation().equals(other.getDefaultLocation())) return false; - if (!getAssertionSchema().equals(other.getAssertionSchema())) return false; - if (!internalGetVars().equals(other.internalGetVars())) return false; - if (!getDatabaseSuffix().equals(other.getDatabaseSuffix())) return false; - if (!getSchemaSuffix().equals(other.getSchemaSuffix())) return false; - if (!getTablePrefix().equals(other.getTablePrefix())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEFAULT_DATABASE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultDatabase().hashCode(); - hash = (37 * hash) + DEFAULT_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getDefaultSchema().hashCode(); - hash = (37 * hash) + DEFAULT_LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getDefaultLocation().hashCode(); - hash = (37 * hash) + ASSERTION_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getAssertionSchema().hashCode(); - if (!internalGetVars().getMap().isEmpty()) { - hash = (37 * hash) + VARS_FIELD_NUMBER; - hash = (53 * hash) + internalGetVars().hashCode(); - } - hash = (37 * hash) + DATABASE_SUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getDatabaseSuffix().hashCode(); - hash = (37 * hash) + SCHEMA_SUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getSchemaSuffix().hashCode(); - hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getTablePrefix().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Configures various aspects of Dataform code compilation.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetVars(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableVars(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.class, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - defaultDatabase_ = ""; - defaultSchema_ = ""; - defaultLocation_ = ""; - assertionSchema_ = ""; - internalGetMutableVars().clear(); - databaseSuffix_ = ""; - schemaSuffix_ = ""; - tablePrefix_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig build() { - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - buildPartial() { - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig result = - new com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.defaultDatabase_ = defaultDatabase_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultSchema_ = defaultSchema_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.defaultLocation_ = defaultLocation_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.assertionSchema_ = assertionSchema_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.vars_ = internalGetVars(); - result.vars_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.databaseSuffix_ = databaseSuffix_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.schemaSuffix_ = schemaSuffix_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.tablePrefix_ = tablePrefix_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) { - return mergeFrom( - (com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig other) { - if (other - == com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance()) return this; - if (!other.getDefaultDatabase().isEmpty()) { - defaultDatabase_ = other.defaultDatabase_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDefaultSchema().isEmpty()) { - defaultSchema_ = other.defaultSchema_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDefaultLocation().isEmpty()) { - defaultLocation_ = other.defaultLocation_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getAssertionSchema().isEmpty()) { - assertionSchema_ = other.assertionSchema_; - bitField0_ |= 0x00000008; - onChanged(); - } - internalGetMutableVars().mergeFrom(other.internalGetVars()); - bitField0_ |= 0x00000010; - if (!other.getDatabaseSuffix().isEmpty()) { - databaseSuffix_ = other.databaseSuffix_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getSchemaSuffix().isEmpty()) { - schemaSuffix_ = other.schemaSuffix_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getTablePrefix().isEmpty()) { - tablePrefix_ = other.tablePrefix_; - bitField0_ |= 0x00000080; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - defaultDatabase_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - defaultSchema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - assertionSchema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry vars__ = - input.readMessage( - VarsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableVars().getMutableMap().put(vars__.getKey(), vars__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - databaseSuffix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - schemaSuffix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - tablePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - defaultLocation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object defaultDatabase_ = ""; - /** - * - * - *
-       * Optional. The default database (Google Cloud project ID).
-       * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultDatabase. - */ - public java.lang.String getDefaultDatabase() { - java.lang.Object ref = defaultDatabase_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultDatabase_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The default database (Google Cloud project ID).
-       * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultDatabase. - */ - public com.google.protobuf.ByteString getDefaultDatabaseBytes() { - java.lang.Object ref = defaultDatabase_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultDatabase_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The default database (Google Cloud project ID).
-       * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The defaultDatabase to set. - * @return This builder for chaining. - */ - public Builder setDefaultDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultDatabase_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The default database (Google Cloud project ID).
-       * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultDatabase() { - defaultDatabase_ = getDefaultInstance().getDefaultDatabase(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The default database (Google Cloud project ID).
-       * 
- * - * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for defaultDatabase to set. - * @return This builder for chaining. - */ - public Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultDatabase_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object defaultSchema_ = ""; - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID).
-       * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultSchema. - */ - public java.lang.String getDefaultSchema() { - java.lang.Object ref = defaultSchema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSchema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID).
-       * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultSchema. - */ - public com.google.protobuf.ByteString getDefaultSchemaBytes() { - java.lang.Object ref = defaultSchema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultSchema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID).
-       * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The defaultSchema to set. - * @return This builder for chaining. - */ - public Builder setDefaultSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultSchema_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID).
-       * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultSchema() { - defaultSchema_ = getDefaultInstance().getDefaultSchema(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID).
-       * 
- * - * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for defaultSchema to set. - * @return This builder for chaining. - */ - public Builder setDefaultSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultSchema_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object defaultLocation_ = ""; - /** - * - * - *
-       * 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]; - * - * @return The defaultLocation. - */ - public java.lang.String getDefaultLocation() { - java.lang.Object ref = defaultLocation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultLocation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * 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]; - * - * @return The bytes for defaultLocation. - */ - public com.google.protobuf.ByteString getDefaultLocationBytes() { - java.lang.Object ref = defaultLocation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultLocation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * 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]; - * - * @param value The defaultLocation to set. - * @return This builder for chaining. - */ - public Builder setDefaultLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultLocation_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * 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]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultLocation() { - defaultLocation_ = getDefaultInstance().getDefaultLocation(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * 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]; - * - * @param value The bytes for defaultLocation to set. - * @return This builder for chaining. - */ - public Builder setDefaultLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultLocation_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object assertionSchema_ = ""; - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID) for assertions.
-       * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The assertionSchema. - */ - public java.lang.String getAssertionSchema() { - java.lang.Object ref = assertionSchema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assertionSchema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID) for assertions.
-       * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for assertionSchema. - */ - public com.google.protobuf.ByteString getAssertionSchemaBytes() { - java.lang.Object ref = assertionSchema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - assertionSchema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID) for assertions.
-       * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The assertionSchema to set. - * @return This builder for chaining. - */ - public Builder setAssertionSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - assertionSchema_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID) for assertions.
-       * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearAssertionSchema() { - assertionSchema_ = getDefaultInstance().getAssertionSchema(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The default schema (BigQuery dataset ID) for assertions.
-       * 
- * - * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for assertionSchema to set. - * @return This builder for chaining. - */ - public Builder setAssertionSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - assertionSchema_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.MapField vars_; - - private com.google.protobuf.MapField internalGetVars() { - if (vars_ == null) { - return com.google.protobuf.MapField.emptyMapField(VarsDefaultEntryHolder.defaultEntry); - } - return vars_; - } - - private com.google.protobuf.MapField - internalGetMutableVars() { - if (vars_ == null) { - vars_ = com.google.protobuf.MapField.newMapField(VarsDefaultEntryHolder.defaultEntry); - } - if (!vars_.isMutable()) { - vars_ = vars_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - return vars_; - } - - public int getVarsCount() { - return internalGetVars().getMap().size(); - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsVars(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetVars().getMap().containsKey(key); - } - /** Use {@link #getVarsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVars() { - return getVarsMap(); - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getVarsMap() { - return internalGetVars().getMap(); - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public /* nullable */ java.lang.String getVarsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVars().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getVarsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVars().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearVars() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableVars().getMutableMap().clear(); - return this; - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeVars(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableVars().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableVars() { - bitField0_ |= 0x00000010; - return internalGetMutableVars().getMutableMap(); - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putVars(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableVars().getMutableMap().put(key, value); - bitField0_ |= 0x00000010; - return this; - } - /** - * - * - *
-       * Optional. User-defined variables that are made available to project code during
-       * compilation.
-       * 
- * - * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllVars(java.util.Map values) { - internalGetMutableVars().getMutableMap().putAll(values); - bitField0_ |= 0x00000010; - return this; - } - - private java.lang.Object databaseSuffix_ = ""; - /** - * - * - *
-       * Optional. The suffix that should be appended to all database (Google Cloud project
-       * ID) names.
-       * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The databaseSuffix. - */ - public java.lang.String getDatabaseSuffix() { - java.lang.Object ref = databaseSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databaseSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all database (Google Cloud project
-       * ID) names.
-       * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for databaseSuffix. - */ - public com.google.protobuf.ByteString getDatabaseSuffixBytes() { - java.lang.Object ref = databaseSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - databaseSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all database (Google Cloud project
-       * ID) names.
-       * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The databaseSuffix to set. - * @return This builder for chaining. - */ - public Builder setDatabaseSuffix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - databaseSuffix_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all database (Google Cloud project
-       * ID) names.
-       * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDatabaseSuffix() { - databaseSuffix_ = getDefaultInstance().getDatabaseSuffix(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all database (Google Cloud project
-       * ID) names.
-       * 
- * - * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for databaseSuffix to set. - * @return This builder for chaining. - */ - public Builder setDatabaseSuffixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - databaseSuffix_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object schemaSuffix_ = ""; - /** - * - * - *
-       * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-       * names.
-       * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The schemaSuffix. - */ - public java.lang.String getSchemaSuffix() { - java.lang.Object ref = schemaSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-       * names.
-       * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for schemaSuffix. - */ - public com.google.protobuf.ByteString getSchemaSuffixBytes() { - java.lang.Object ref = schemaSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schemaSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-       * names.
-       * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The schemaSuffix to set. - * @return This builder for chaining. - */ - public Builder setSchemaSuffix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - schemaSuffix_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-       * names.
-       * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSchemaSuffix() { - schemaSuffix_ = getDefaultInstance().getSchemaSuffix(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
-       * names.
-       * 
- * - * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for schemaSuffix to set. - * @return This builder for chaining. - */ - public Builder setSchemaSuffixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - schemaSuffix_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.lang.Object tablePrefix_ = ""; - /** - * - * - *
-       * Optional. The prefix that should be prepended to all table names.
-       * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tablePrefix. - */ - public java.lang.String getTablePrefix() { - java.lang.Object ref = tablePrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tablePrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The prefix that should be prepended to all table names.
-       * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tablePrefix. - */ - public com.google.protobuf.ByteString getTablePrefixBytes() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tablePrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The prefix that should be prepended to all table names.
-       * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tablePrefix to set. - * @return This builder for chaining. - */ - public Builder setTablePrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tablePrefix_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The prefix that should be prepended to all table names.
-       * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTablePrefix() { - tablePrefix_ = getDefaultInstance().getTablePrefix(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The prefix that should be prepended to all table names.
-       * 
- * - * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tablePrefix to set. - * @return This builder for chaining. - */ - public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tablePrefix_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) - private static final com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig(); - } - - public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CodeCompilationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - public interface CompilationErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResult.CompilationError) @@ -2470,8 +124,8 @@ public interface CompilationErrorOrBuilder * * *
-     * 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]; @@ -2483,8 +137,8 @@ public interface CompilationErrorOrBuilder * * *
-     * 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]; @@ -2497,7 +151,8 @@ public interface CompilationErrorOrBuilder * * *
-     * 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.
      * 
* * @@ -2511,7 +166,8 @@ public interface CompilationErrorOrBuilder * * *
-     * 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.
      * 
* * @@ -2525,7 +181,8 @@ public interface CompilationErrorOrBuilder * * *
-     * 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.
      * 
* * @@ -2690,8 +347,8 @@ public com.google.protobuf.ByteString getStackBytes() { * * *
-     * 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]; @@ -2714,8 +371,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -2741,7 +398,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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.
      * 
* * @@ -2758,7 +416,8 @@ public boolean hasActionTarget() { * * *
-     * 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.
      * 
* * @@ -2777,7 +436,8 @@ public com.google.cloud.dataform.v1beta1.Target getActionTarget() { * * *
-     * 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.
      * 
* * @@ -3444,8 +1104,8 @@ public Builder setStackBytes(com.google.protobuf.ByteString value) { * * *
-       * 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]; @@ -3467,8 +1127,8 @@ public java.lang.String getPath() { * * *
-       * 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]; @@ -3490,8 +1150,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-       * 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]; @@ -3512,8 +1172,8 @@ public Builder setPath(java.lang.String value) { * * *
-       * 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]; @@ -3530,8 +1190,8 @@ public Builder clearPath() { * * *
-       * 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]; @@ -3560,7 +1220,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { * * *
-       * 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.
        * 
* * @@ -3576,7 +1237,8 @@ public boolean hasActionTarget() { * * *
-       * 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.
        * 
* * @@ -3598,7 +1260,8 @@ public com.google.cloud.dataform.v1beta1.Target getActionTarget() { * * *
-       * 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.
        * 
* * @@ -3622,7 +1285,8 @@ public Builder setActionTarget(com.google.cloud.dataform.v1beta1.Target value) { * * *
-       * 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.
        * 
* * @@ -3644,7 +1308,8 @@ public Builder setActionTarget( * * *
-       * 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.
        * 
* * @@ -3671,7 +1336,8 @@ public Builder mergeActionTarget(com.google.cloud.dataform.v1beta1.Target value) * * *
-       * 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.
        * 
* * @@ -3692,7 +1358,8 @@ public Builder clearActionTarget() { * * *
-       * 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.
        * 
* * @@ -3708,7 +1375,8 @@ public com.google.cloud.dataform.v1beta1.Target.Builder getActionTargetBuilder() * * *
-       * 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.
        * 
* * @@ -3728,7 +1396,8 @@ public com.google.cloud.dataform.v1beta1.TargetOrBuilder getActionTargetOrBuilde * * *
-       * 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.
        * 
* * @@ -3830,6 +1499,7 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GIT_COMMITISH(2), WORKSPACE(3), + RELEASE_CONFIG(7), SOURCE_NOT_SET(0); private final int value; @@ -3852,6 +1522,8 @@ public static SourceCase forNumber(int value) { return GIT_COMMITISH; case 3: return WORKSPACE; + case 7: + return RELEASE_CONFIG; case 0: return SOURCE_NOT_SET; default: @@ -3924,9 +1596,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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`
@@ -3943,9 +1614,8 @@ public boolean hasGitCommitish() {
    *
    *
    * 
-   * 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`
@@ -3975,9 +1645,8 @@ public java.lang.String getGitCommitish() {
    *
    *
    * 
-   * 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`
@@ -4083,19 +1752,103 @@ public com.google.protobuf.ByteString getWorkspaceBytes() {
     }
   }
 
+  public static final int RELEASE_CONFIG_FIELD_NUMBER = 7;
+  /**
+   *
+   *
+   * 
+   * 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) = { ... } + * + * + * @return Whether the releaseConfig field is set. + */ + public boolean hasReleaseConfig() { + return sourceCase_ == 7; + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The releaseConfig. + */ + public java.lang.String getReleaseConfig() { + java.lang.Object ref = ""; + if (sourceCase_ == 7) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 7) { + source_ = s; + } + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for releaseConfig. + */ + public com.google.protobuf.ByteString getReleaseConfigBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 7) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 7) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CODE_COMPILATION_CONFIG_FIELD_NUMBER = 4; - private com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - codeCompilationConfig_; + private com.google.cloud.dataform.v1beta1.CodeCompilationConfig codeCompilationConfig_; /** * * *
-   * 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.
    * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the codeCompilationConfig field is set. @@ -4108,43 +1861,93 @@ public boolean hasCodeCompilationConfig() { * * *
-   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The codeCompilationConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig getCodeCompilationConfig() { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() + : codeCompilationConfig_; + } + /** + * + * + *
+   * Immutable. If set, fields of `code_compilation_config` override the default
    * compilation settings that are specified in dataform.json.
    * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder + getCodeCompilationConfigOrBuilder() { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() + : codeCompilationConfig_; + } + + public static final int RESOLVED_GIT_COMMIT_SHA_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedGitCommitSha_ = ""; + /** + * + * + *
+   * Output only. The fully resolved Git commit SHA of the code that was
+   * compiled. Not set for compilation results whose source is a workspace.
+   * 
* - * @return The codeCompilationConfig. + * string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolvedGitCommitSha. */ @java.lang.Override - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - getCodeCompilationConfig() { - return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance() - : codeCompilationConfig_; + public java.lang.String getResolvedGitCommitSha() { + java.lang.Object ref = resolvedGitCommitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedGitCommitSha_ = s; + return s; + } } /** * * *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
+   * Output only. The fully resolved Git commit SHA of the code that was
+   * compiled. Not set for compilation results whose source is a workspace.
    * 
* - * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolvedGitCommitSha. */ @java.lang.Override - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder - getCodeCompilationConfigOrBuilder() { - return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance() - : codeCompilationConfig_; + public com.google.protobuf.ByteString getResolvedGitCommitShaBytes() { + java.lang.Object ref = resolvedGitCommitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedGitCommitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER = 5; @@ -4316,6 +2119,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < compilationErrors_.size(); i++) { output.writeMessage(6, compilationErrors_.get(i)); } + if (sourceCase_ == 7) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedGitCommitSha_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resolvedGitCommitSha_); + } getUnknownFields().writeTo(output); } @@ -4345,6 +2154,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, compilationErrors_.get(i)); } + if (sourceCase_ == 7) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedGitCommitSha_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resolvedGitCommitSha_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4366,6 +2181,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCodeCompilationConfig()) { if (!getCodeCompilationConfig().equals(other.getCodeCompilationConfig())) return false; } + if (!getResolvedGitCommitSha().equals(other.getResolvedGitCommitSha())) return false; if (!getDataformCoreVersion().equals(other.getDataformCoreVersion())) return false; if (!getCompilationErrorsList().equals(other.getCompilationErrorsList())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; @@ -4376,6 +2192,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getWorkspace().equals(other.getWorkspace())) return false; break; + case 7: + if (!getReleaseConfig().equals(other.getReleaseConfig())) return false; + break; case 0: default: } @@ -4396,6 +2215,8 @@ public int hashCode() { hash = (37 * hash) + CODE_COMPILATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCodeCompilationConfig().hashCode(); } + hash = (37 * hash) + RESOLVED_GIT_COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getResolvedGitCommitSha().hashCode(); hash = (37 * hash) + DATAFORM_CORE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDataformCoreVersion().hashCode(); if (getCompilationErrorsCount() > 0) { @@ -4411,6 +2232,10 @@ public int hashCode() { hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; hash = (53 * hash) + getWorkspace().hashCode(); break; + case 7: + hash = (37 * hash) + RELEASE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReleaseConfig().hashCode(); + break; case 0: default: } @@ -4559,6 +2384,7 @@ public Builder clear() { codeCompilationConfigBuilder_.dispose(); codeCompilationConfigBuilder_ = null; } + resolvedGitCommitSha_ = ""; dataformCoreVersion_ = ""; if (compilationErrorsBuilder_ == null) { compilationErrors_ = java.util.Collections.emptyList(); @@ -4566,7 +2392,7 @@ public Builder clear() { compilationErrors_ = null; compilationErrorsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); sourceCase_ = 0; source_ = null; return this; @@ -4608,9 +2434,9 @@ public com.google.cloud.dataform.v1beta1.CompilationResult buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.dataform.v1beta1.CompilationResult result) { if (compilationErrorsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { compilationErrors_ = java.util.Collections.unmodifiableList(compilationErrors_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); } result.compilationErrors_ = compilationErrors_; } else { @@ -4623,13 +2449,16 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.CompilationResult r if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.codeCompilationConfig_ = codeCompilationConfigBuilder_ == null ? codeCompilationConfig_ : codeCompilationConfigBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resolvedGitCommitSha_ = resolvedGitCommitSha_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.dataformCoreVersion_ = dataformCoreVersion_; } } @@ -4693,16 +2522,21 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResult oth if (other.hasCodeCompilationConfig()) { mergeCodeCompilationConfig(other.getCodeCompilationConfig()); } + if (!other.getResolvedGitCommitSha().isEmpty()) { + resolvedGitCommitSha_ = other.resolvedGitCommitSha_; + bitField0_ |= 0x00000020; + onChanged(); + } if (!other.getDataformCoreVersion().isEmpty()) { dataformCoreVersion_ = other.dataformCoreVersion_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (compilationErrorsBuilder_ == null) { if (!other.compilationErrors_.isEmpty()) { if (compilationErrors_.isEmpty()) { compilationErrors_ = other.compilationErrors_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureCompilationErrorsIsMutable(); compilationErrors_.addAll(other.compilationErrors_); @@ -4715,7 +2549,7 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResult oth compilationErrorsBuilder_.dispose(); compilationErrorsBuilder_ = null; compilationErrors_ = other.compilationErrors_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); compilationErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompilationErrorsFieldBuilder() @@ -4740,6 +2574,13 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResult oth onChanged(); break; } + case RELEASE_CONFIG: + { + sourceCase_ = 7; + source_ = other.source_; + onChanged(); + break; + } case SOURCE_NOT_SET: { break; @@ -4795,13 +2636,13 @@ public Builder mergeFrom( { input.readMessage( getCodeCompilationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { dataformCoreVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -4819,6 +2660,19 @@ public Builder mergeFrom( } break; } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 7; + source_ = s; + break; + } // case 58 + case 66: + { + resolvedGitCommitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4962,9 +2816,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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`
@@ -4982,9 +2835,8 @@ public boolean hasGitCommitish() {
      *
      *
      * 
-     * 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`
@@ -5015,9 +2867,8 @@ public java.lang.String getGitCommitish() {
      *
      *
      * 
-     * 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`
@@ -5048,9 +2899,8 @@ public com.google.protobuf.ByteString getGitCommitishBytes() {
      *
      *
      * 
-     * 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`
@@ -5074,9 +2924,8 @@ public Builder setGitCommitish(java.lang.String value) {
      *
      *
      * 
-     * 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`
@@ -5098,9 +2947,8 @@ public Builder clearGitCommitish() {
      *
      *
      * 
-     * 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`
@@ -5274,50 +3122,211 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
-    private com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig
-        codeCompilationConfig_;
+    /**
+     *
+     *
+     * 
+     * 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) = { ... } + * + * + * @return Whether the releaseConfig field is set. + */ + @java.lang.Override + public boolean hasReleaseConfig() { + return sourceCase_ == 7; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The releaseConfig. + */ + @java.lang.Override + public java.lang.String getReleaseConfig() { + java.lang.Object ref = ""; + if (sourceCase_ == 7) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 7) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for releaseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseConfigBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 7) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 7) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The releaseConfig to set. + * @return This builder for chaining. + */ + public Builder setReleaseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 7; + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearReleaseConfig() { + if (sourceCase_ == 7) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for releaseConfig to set. + * @return This builder for chaining. + */ + public Builder setReleaseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 7; + source_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CodeCompilationConfig codeCompilationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder> + com.google.cloud.dataform.v1beta1.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder> codeCompilationConfigBuilder_; /** * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the codeCompilationConfig field is set. */ public boolean hasCodeCompilationConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return The codeCompilationConfig. */ - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - getCodeCompilationConfig() { + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig getCodeCompilationConfig() { if (codeCompilationConfigBuilder_ == null) { return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance() + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() : codeCompilationConfig_; } else { return codeCompilationConfigBuilder_.getMessage(); @@ -5327,16 +3336,16 @@ public boolean hasCodeCompilationConfig() { * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setCodeCompilationConfig( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig value) { + com.google.cloud.dataform.v1beta1.CodeCompilationConfig value) { if (codeCompilationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5345,7 +3354,7 @@ public Builder setCodeCompilationConfig( } else { codeCompilationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5353,23 +3362,22 @@ public Builder setCodeCompilationConfig( * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setCodeCompilationConfig( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder - builderForValue) { + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder builderForValue) { if (codeCompilationConfigBuilder_ == null) { codeCompilationConfig_ = builderForValue.build(); } else { codeCompilationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5377,22 +3385,21 @@ public Builder setCodeCompilationConfig( * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder mergeCodeCompilationConfig( - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig value) { + com.google.cloud.dataform.v1beta1.CodeCompilationConfig value) { if (codeCompilationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && codeCompilationConfig_ != null && codeCompilationConfig_ - != com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance()) { + != com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance()) { getCodeCompilationConfigBuilder().mergeFrom(value); } else { codeCompilationConfig_ = value; @@ -5400,7 +3407,7 @@ public Builder mergeCodeCompilationConfig( } else { codeCompilationConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5408,16 +3415,16 @@ public Builder mergeCodeCompilationConfig( * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder clearCodeCompilationConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); codeCompilationConfig_ = null; if (codeCompilationConfigBuilder_ != null) { codeCompilationConfigBuilder_.dispose(); @@ -5430,17 +3437,17 @@ public Builder clearCodeCompilationConfig() { * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder getCodeCompilationConfigBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getCodeCompilationConfigFieldBuilder().getBuilder(); } @@ -5448,22 +3455,21 @@ public Builder clearCodeCompilationConfig() { * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ - public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder + public com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder getCodeCompilationConfigOrBuilder() { if (codeCompilationConfigBuilder_ != null) { return codeCompilationConfigBuilder_.getMessageOrBuilder(); } else { return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - .getDefaultInstance() + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() : codeCompilationConfig_; } } @@ -5471,31 +3477,142 @@ public Builder clearCodeCompilationConfig() { * * *
-     * 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.
      * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder> + com.google.cloud.dataform.v1beta1.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder> getCodeCompilationConfigFieldBuilder() { if (codeCompilationConfigBuilder_ == null) { codeCompilationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder, - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder>( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder>( getCodeCompilationConfig(), getParentForChildren(), isClean()); codeCompilationConfig_ = null; } return codeCompilationConfigBuilder_; } + private java.lang.Object resolvedGitCommitSha_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The resolvedGitCommitSha. + */ + public java.lang.String getResolvedGitCommitSha() { + java.lang.Object ref = resolvedGitCommitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedGitCommitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for resolvedGitCommitSha. + */ + public com.google.protobuf.ByteString getResolvedGitCommitShaBytes() { + java.lang.Object ref = resolvedGitCommitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedGitCommitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The resolvedGitCommitSha to set. + * @return This builder for chaining. + */ + public Builder setResolvedGitCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedGitCommitSha_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearResolvedGitCommitSha() { + resolvedGitCommitSha_ = getDefaultInstance().getResolvedGitCommitSha(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for resolvedGitCommitSha to set. + * @return This builder for chaining. + */ + public Builder setResolvedGitCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedGitCommitSha_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + private java.lang.Object dataformCoreVersion_ = ""; /** * @@ -5558,7 +3675,7 @@ public Builder setDataformCoreVersion(java.lang.String value) { throw new NullPointerException(); } dataformCoreVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5575,7 +3692,7 @@ public Builder setDataformCoreVersion(java.lang.String value) { */ public Builder clearDataformCoreVersion() { dataformCoreVersion_ = getDefaultInstance().getDataformCoreVersion(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -5597,7 +3714,7 @@ public Builder setDataformCoreVersionBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); dataformCoreVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5606,12 +3723,12 @@ public Builder setDataformCoreVersionBytes(com.google.protobuf.ByteString value) compilationErrors_ = java.util.Collections.emptyList(); private void ensureCompilationErrorsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { compilationErrors_ = new java.util.ArrayList< com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError>( compilationErrors_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; } } @@ -5861,7 +3978,7 @@ public Builder addAllCompilationErrors( public Builder clearCompilationErrors() { if (compilationErrorsBuilder_ == null) { compilationErrors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { compilationErrorsBuilder_.clear(); @@ -6009,7 +4126,7 @@ public Builder removeCompilationErrors(int index) { com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder, com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder>( compilationErrors_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); compilationErrors_ = null; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java index 2c3b12cea234..0a93a9a97ecb 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java @@ -52,9 +52,8 @@ public interface CompilationResultOrBuilder * * *
-   * 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`
@@ -69,9 +68,8 @@ public interface CompilationResultOrBuilder
    *
    *
    * 
-   * 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`
@@ -86,9 +84,8 @@ public interface CompilationResultOrBuilder
    *
    *
    * 
-   * 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`
@@ -150,12 +147,64 @@ public interface CompilationResultOrBuilder
    *
    *
    * 
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
+   * 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) = { ... } + * + * + * @return Whether the releaseConfig field is set. + */ + boolean hasReleaseConfig(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The releaseConfig. + */ + java.lang.String getReleaseConfig(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for releaseConfig. + */ + com.google.protobuf.ByteString getReleaseConfigBytes(); + + /** + * + * + *
+   * Immutable. If set, fields of `code_compilation_config` override the default
    * compilation settings that are specified in dataform.json.
    * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the codeCompilationConfig field is set. @@ -165,33 +214,59 @@ public interface CompilationResultOrBuilder * * *
-   * 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.
    * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return The codeCompilationConfig. */ - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig - getCodeCompilationConfig(); + com.google.cloud.dataform.v1beta1.CodeCompilationConfig getCodeCompilationConfig(); /** * * *
-   * 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.
    * 
* * - * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; * */ - com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder getCodeCompilationConfigOrBuilder(); + /** + * + * + *
+   * 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]; + * + * @return The resolvedGitCommitSha. + */ + java.lang.String getResolvedGitCommitSha(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for resolvedGitCommitSha. + */ + com.google.protobuf.ByteString getResolvedGitCommitShaBytes(); + /** * * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusRequest.java new file mode 100644 index 000000000000..0dab24fa673e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusRequest.java @@ -0,0 +1,666 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ComputeRepositoryAccessTokenStatus` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} + */ +public final class ComputeRepositoryAccessTokenStatusRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) + ComputeRepositoryAccessTokenStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComputeRepositoryAccessTokenStatusRequest.newBuilder() to construct. + private ComputeRepositoryAccessTokenStatusRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeRepositoryAccessTokenStatusRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeRepositoryAccessTokenStatusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.class, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest other = + (com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ComputeRepositoryAccessTokenStatus` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.class, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest build() { + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + buildPartial() { + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest result = + new com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) + private static final com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest(); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeRepositoryAccessTokenStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusRequestOrBuilder.java new file mode 100644 index 000000000000..fc44aae6f655 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ComputeRepositoryAccessTokenStatusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java new file mode 100644 index 000000000000..8631dbea9ca4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java @@ -0,0 +1,837 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ComputeRepositoryAccessTokenStatus` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} + */ +public final class ComputeRepositoryAccessTokenStatusResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) + ComputeRepositoryAccessTokenStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComputeRepositoryAccessTokenStatusResponse.newBuilder() to construct. + private ComputeRepositoryAccessTokenStatusResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeRepositoryAccessTokenStatusResponse() { + tokenStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeRepositoryAccessTokenStatusResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.class, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.Builder + .class); + } + + /** + * + * + *
+   * Indicates the status of a Git authentication token.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus} + */ + public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TOKEN_STATUS_UNSPECIFIED = 0; + */ + 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; + */ + NOT_FOUND(1), + /** + * + * + *
+     * The token could not be used to authenticate against the Git remote.
+     * 
+ * + * INVALID = 2; + */ + INVALID(2), + /** + * + * + *
+     * The token was used successfully to authenticate against the Git remote.
+     * 
+ * + * VALID = 3; + */ + VALID(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TOKEN_STATUS_UNSPECIFIED = 0; + */ + public static final int TOKEN_STATUS_UNSPECIFIED_VALUE = 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; + */ + public static final int NOT_FOUND_VALUE = 1; + /** + * + * + *
+     * The token could not be used to authenticate against the Git remote.
+     * 
+ * + * INVALID = 2; + */ + public static final int INVALID_VALUE = 2; + /** + * + * + *
+     * The token was used successfully to authenticate against the Git remote.
+     * 
+ * + * VALID = 3; + */ + public static final int VALID_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TokenStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TokenStatus forNumber(int value) { + switch (value) { + case 0: + return TOKEN_STATUS_UNSPECIFIED; + case 1: + return NOT_FOUND; + case 2: + return INVALID; + case 3: + return VALID; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TokenStatus findValueByNumber(int number) { + return TokenStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TokenStatus[] VALUES = values(); + + public static TokenStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TokenStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus) + } + + public static final int TOKEN_STATUS_FIELD_NUMBER = 1; + private int tokenStatus_ = 0; + /** + * + * + *
+   * Indicates the status of the Git access token.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return The enum numeric value on the wire for tokenStatus. + */ + @java.lang.Override + public int getTokenStatusValue() { + return tokenStatus_; + } + /** + * + * + *
+   * Indicates the status of the Git access token.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return The tokenStatus. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + getTokenStatus() { + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + result = + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + .forNumber(tokenStatus_); + return result == null + ? com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tokenStatus_ + != com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + .TOKEN_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, tokenStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tokenStatus_ + != com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + .TOKEN_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, tokenStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse other = + (com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) obj; + + if (tokenStatus_ != other.tokenStatus_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_STATUS_FIELD_NUMBER; + hash = (53 * hash) + tokenStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ComputeRepositoryAccessTokenStatus` response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.class, + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tokenStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse build() { + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + buildPartial() { + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse result = + new com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tokenStatus_ = tokenStatus_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + .getDefaultInstance()) return this; + if (other.tokenStatus_ != 0) { + setTokenStatusValue(other.getTokenStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + tokenStatus_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int tokenStatus_ = 0; + /** + * + * + *
+     * Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return The enum numeric value on the wire for tokenStatus. + */ + @java.lang.Override + public int getTokenStatusValue() { + return tokenStatus_; + } + /** + * + * + *
+     * Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @param value The enum numeric value on the wire for tokenStatus to set. + * @return This builder for chaining. + */ + public Builder setTokenStatusValue(int value) { + tokenStatus_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return The tokenStatus. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + getTokenStatus() { + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + result = + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + .TokenStatus.forNumber(tokenStatus_); + return result == null + ? com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @param value The tokenStatus to set. + * @return This builder for chaining. + */ + public Builder setTokenStatus( + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + tokenStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearTokenStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + tokenStatus_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) + private static final com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse(); + } + + public static com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeRepositoryAccessTokenStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponseOrBuilder.java new file mode 100644 index 000000000000..eda1514f549e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponseOrBuilder.java @@ -0,0 +1,55 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ComputeRepositoryAccessTokenStatusResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Indicates the status of the Git access token.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return The enum numeric value on the wire for tokenStatus. + */ + int getTokenStatusValue(); + /** + * + * + *
+   * Indicates the status of the Git access token.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * + * + * @return The tokenStatus. + */ + com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + getTokenStatus(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java index 907062c7f037..e063a775008e 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java @@ -71,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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/*`.
    * 
* * @@ -97,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * 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/*`.
    * 
* * @@ -564,8 +564,8 @@ public Builder mergeFrom( * * *
-     * 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/*`.
      * 
* * @@ -589,8 +589,8 @@ public java.lang.String getParent() { * * *
-     * 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/*`.
      * 
* * @@ -614,8 +614,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * 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/*`.
      * 
* * @@ -638,8 +638,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * 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/*`.
      * 
* * @@ -658,8 +658,8 @@ public Builder clearParent() { * * *
-     * 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/*`.
      * 
* * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java index afa4ef6a3c07..3e1736416118 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CreateCompilationResultRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface CreateCompilationResultRequestOrBuilder * * *
-   * 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/*`.
    * 
* * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateReleaseConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateReleaseConfigRequest.java new file mode 100644 index 000000000000..c3289664cfcf --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateReleaseConfigRequest.java @@ -0,0 +1,1130 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CreateReleaseConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} + */ +public final class CreateReleaseConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) + CreateReleaseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateReleaseConfigRequest.newBuilder() to construct. + private CreateReleaseConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateReleaseConfigRequest() { + parent_ = ""; + releaseConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateReleaseConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.ReleaseConfig releaseConfig_; + /** + * + * + *
+   * Required. The release config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the releaseConfig field is set. + */ + @java.lang.Override + public boolean hasReleaseConfig() { + return releaseConfig_ != null; + } + /** + * + * + *
+   * Required. The release config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The releaseConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig() { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } + /** + * + * + *
+   * Required. The release config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigOrBuilder() { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } + + public static final int RELEASE_CONFIG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseConfigId_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The releaseConfigId. + */ + @java.lang.Override + public java.lang.String getReleaseConfigId() { + java.lang.Object ref = releaseConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseConfigId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for releaseConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseConfigIdBytes() { + java.lang.Object ref = releaseConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (releaseConfig_ != null) { + output.writeMessage(2, getReleaseConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, releaseConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (releaseConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReleaseConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseConfigId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, releaseConfigId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest other = + (com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasReleaseConfig() != other.hasReleaseConfig()) return false; + if (hasReleaseConfig()) { + if (!getReleaseConfig().equals(other.getReleaseConfig())) return false; + } + if (!getReleaseConfigId().equals(other.getReleaseConfigId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasReleaseConfig()) { + hash = (37 * hash) + RELEASE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReleaseConfig().hashCode(); + } + hash = (37 * hash) + RELEASE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getReleaseConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `CreateReleaseConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateReleaseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + releaseConfig_ = null; + if (releaseConfigBuilder_ != null) { + releaseConfigBuilder_.dispose(); + releaseConfigBuilder_ = null; + } + releaseConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest build() { + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest result = + new com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.releaseConfig_ = + releaseConfigBuilder_ == null ? releaseConfig_ : releaseConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.releaseConfigId_ = releaseConfigId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReleaseConfig()) { + mergeReleaseConfig(other.getReleaseConfig()); + } + if (!other.getReleaseConfigId().isEmpty()) { + releaseConfigId_ = other.releaseConfigId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReleaseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + releaseConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.ReleaseConfig releaseConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder> + releaseConfigBuilder_; + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the releaseConfig field is set. + */ + public boolean hasReleaseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The releaseConfig. + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig() { + if (releaseConfigBuilder_ == null) { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } else { + return releaseConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReleaseConfig(com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseConfig_ = value; + } else { + releaseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReleaseConfig( + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder builderForValue) { + if (releaseConfigBuilder_ == null) { + releaseConfig_ = builderForValue.build(); + } else { + releaseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReleaseConfig(com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && releaseConfig_ != null + && releaseConfig_ + != com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance()) { + getReleaseConfigBuilder().mergeFrom(value); + } else { + releaseConfig_ = value; + } + } else { + releaseConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReleaseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + releaseConfig_ = null; + if (releaseConfigBuilder_ != null) { + releaseConfigBuilder_.dispose(); + releaseConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder getReleaseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReleaseConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigOrBuilder() { + if (releaseConfigBuilder_ != null) { + return releaseConfigBuilder_.getMessageOrBuilder(); + } else { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } + } + /** + * + * + *
+     * Required. The release config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder> + getReleaseConfigFieldBuilder() { + if (releaseConfigBuilder_ == null) { + releaseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder>( + getReleaseConfig(), getParentForChildren(), isClean()); + releaseConfig_ = null; + } + return releaseConfigBuilder_; + } + + private java.lang.Object releaseConfigId_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The releaseConfigId. + */ + public java.lang.String getReleaseConfigId() { + java.lang.Object ref = releaseConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for releaseConfigId. + */ + public com.google.protobuf.ByteString getReleaseConfigIdBytes() { + java.lang.Object ref = releaseConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The releaseConfigId to set. + * @return This builder for chaining. + */ + public Builder setReleaseConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearReleaseConfigId() { + releaseConfigId_ = getDefaultInstance().getReleaseConfigId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for releaseConfigId to set. + * @return This builder for chaining. + */ + public Builder setReleaseConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) + private static final com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReleaseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateReleaseConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateReleaseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..21346869bf15 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateReleaseConfigRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CreateReleaseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateReleaseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The release config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the releaseConfig field is set. + */ + boolean hasReleaseConfig(); + /** + * + * + *
+   * Required. The release config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The releaseConfig. + */ + com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig(); + /** + * + * + *
+   * Required. The release config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigOrBuilder(); + + /** + * + * + *
+   * 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]; + * + * @return The releaseConfigId. + */ + java.lang.String getReleaseConfigId(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for releaseConfigId. + */ + com.google.protobuf.ByteString getReleaseConfigIdBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java index ea13fb01dee7..0f8044715e4c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java @@ -71,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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/*`.
    * 
* * @@ -97,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * 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/*`.
    * 
* * @@ -184,8 +184,8 @@ public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuil * * *
-   * 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]; @@ -208,8 +208,8 @@ public java.lang.String getRepositoryId() { * * *
-   * 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]; @@ -632,8 +632,8 @@ public Builder mergeFrom( * * *
-     * 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/*`.
      * 
* * @@ -657,8 +657,8 @@ public java.lang.String getParent() { * * *
-     * 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/*`.
      * 
* * @@ -682,8 +682,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * 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/*`.
      * 
* * @@ -706,8 +706,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * 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/*`.
      * 
* * @@ -726,8 +726,8 @@ public Builder clearParent() { * * *
-     * 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/*`.
      * 
* * @@ -955,8 +955,8 @@ public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuil * * *
-     * 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]; @@ -978,8 +978,8 @@ public java.lang.String getRepositoryId() { * * *
-     * 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]; @@ -1001,8 +1001,8 @@ public com.google.protobuf.ByteString getRepositoryIdBytes() { * * *
-     * 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]; @@ -1023,8 +1023,8 @@ public Builder setRepositoryId(java.lang.String value) { * * *
-     * 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]; @@ -1041,8 +1041,8 @@ public Builder clearRepositoryId() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java index 5168faced7ac..90954f902a66 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CreateRepositoryRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface CreateRepositoryRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -99,8 +99,8 @@ public interface CreateRepositoryRequestOrBuilder * * *
-   * 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]; @@ -112,8 +112,8 @@ public interface CreateRepositoryRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowConfigRequest.java new file mode 100644 index 000000000000..0659534a5a98 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowConfigRequest.java @@ -0,0 +1,1130 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CreateWorkflowConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} + */ +public final class CreateWorkflowConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) + CreateWorkflowConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateWorkflowConfigRequest.newBuilder() to construct. + private CreateWorkflowConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateWorkflowConfigRequest() { + parent_ = ""; + workflowConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateWorkflowConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.WorkflowConfig workflowConfig_; + /** + * + * + *
+   * Required. The workflow config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowConfig field is set. + */ + @java.lang.Override + public boolean hasWorkflowConfig() { + return workflowConfig_ != null; + } + /** + * + * + *
+   * Required. The workflow config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig() { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } + /** + * + * + *
+   * Required. The workflow config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigOrBuilder() { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } + + public static final int WORKFLOW_CONFIG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object workflowConfigId_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The workflowConfigId. + */ + @java.lang.Override + public java.lang.String getWorkflowConfigId() { + java.lang.Object ref = workflowConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowConfigId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for workflowConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkflowConfigIdBytes() { + java.lang.Object ref = workflowConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workflowConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (workflowConfig_ != null) { + output.writeMessage(2, getWorkflowConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (workflowConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflowConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowConfigId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowConfigId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest other = + (com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasWorkflowConfig() != other.hasWorkflowConfig()) return false; + if (hasWorkflowConfig()) { + if (!getWorkflowConfig().equals(other.getWorkflowConfig())) return false; + } + if (!getWorkflowConfigId().equals(other.getWorkflowConfigId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasWorkflowConfig()) { + hash = (37 * hash) + WORKFLOW_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowConfig().hashCode(); + } + hash = (37 * hash) + WORKFLOW_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `CreateWorkflowConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + workflowConfig_ = null; + if (workflowConfigBuilder_ != null) { + workflowConfigBuilder_.dispose(); + workflowConfigBuilder_ = null; + } + workflowConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest build() { + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest result = + new com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workflowConfig_ = + workflowConfigBuilder_ == null ? workflowConfig_ : workflowConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workflowConfigId_ = workflowConfigId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasWorkflowConfig()) { + mergeWorkflowConfig(other.getWorkflowConfig()); + } + if (!other.getWorkflowConfigId().isEmpty()) { + workflowConfigId_ = other.workflowConfigId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getWorkflowConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + workflowConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.WorkflowConfig workflowConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder> + workflowConfigBuilder_; + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowConfig field is set. + */ + public boolean hasWorkflowConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowConfig. + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig() { + if (workflowConfigBuilder_ == null) { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } else { + return workflowConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkflowConfig(com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowConfig_ = value; + } else { + workflowConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkflowConfig( + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder builderForValue) { + if (workflowConfigBuilder_ == null) { + workflowConfig_ = builderForValue.build(); + } else { + workflowConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWorkflowConfig(com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && workflowConfig_ != null + && workflowConfig_ + != com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance()) { + getWorkflowConfigBuilder().mergeFrom(value); + } else { + workflowConfig_ = value; + } + } else { + workflowConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWorkflowConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + workflowConfig_ = null; + if (workflowConfigBuilder_ != null) { + workflowConfigBuilder_.dispose(); + workflowConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder getWorkflowConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkflowConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigOrBuilder() { + if (workflowConfigBuilder_ != null) { + return workflowConfigBuilder_.getMessageOrBuilder(); + } else { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } + } + /** + * + * + *
+     * Required. The workflow config to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder> + getWorkflowConfigFieldBuilder() { + if (workflowConfigBuilder_ == null) { + workflowConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder>( + getWorkflowConfig(), getParentForChildren(), isClean()); + workflowConfig_ = null; + } + return workflowConfigBuilder_; + } + + private java.lang.Object workflowConfigId_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The workflowConfigId. + */ + public java.lang.String getWorkflowConfigId() { + java.lang.Object ref = workflowConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for workflowConfigId. + */ + public com.google.protobuf.ByteString getWorkflowConfigIdBytes() { + java.lang.Object ref = workflowConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workflowConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The workflowConfigId to set. + * @return This builder for chaining. + */ + public Builder setWorkflowConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workflowConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearWorkflowConfigId() { + workflowConfigId_ = getDefaultInstance().getWorkflowConfigId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for workflowConfigId to set. + * @return This builder for chaining. + */ + public Builder setWorkflowConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workflowConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) + private static final com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowConfigRequestOrBuilder.java new file mode 100644 index 000000000000..56e83485c5f8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowConfigRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CreateWorkflowConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The workflow config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowConfig field is set. + */ + boolean hasWorkflowConfig(); + /** + * + * + *
+   * Required. The workflow config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowConfig. + */ + com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig(); + /** + * + * + *
+   * Required. The workflow config to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigOrBuilder(); + + /** + * + * + *
+   * 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]; + * + * @return The workflowConfigId. + */ + java.lang.String getWorkflowConfigId(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for workflowConfigId. + */ + com.google.protobuf.ByteString getWorkflowConfigIdBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java index a1a6c3f5013a..2b6bf461f662 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java @@ -71,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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/*`.
    * 
* * @@ -97,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * 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/*`.
    * 
* * @@ -566,8 +566,8 @@ public Builder mergeFrom( * * *
-     * 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/*`.
      * 
* * @@ -591,8 +591,8 @@ public java.lang.String getParent() { * * *
-     * 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/*`.
      * 
* * @@ -616,8 +616,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * 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/*`.
      * 
* * @@ -640,8 +640,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * 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/*`.
      * 
* * @@ -660,8 +660,8 @@ public Builder clearParent() { * * *
-     * 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/*`.
      * 
* * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java index 358e464a3447..129c3816aa16 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CreateWorkflowInvocationRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface CreateWorkflowInvocationRequestOrBuilder * * *
-   * 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/*`.
    * 
* * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java index fd4af89ab7ef..b674868e6658 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java @@ -71,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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/*`.
    * 
* * @@ -97,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * 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/*`.
    * 
* * @@ -184,8 +184,8 @@ public com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder getWorkspaceOrBuilde * * *
-   * 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]; @@ -208,8 +208,8 @@ public java.lang.String getWorkspaceId() { * * *
-   * 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]; @@ -632,8 +632,8 @@ public Builder mergeFrom( * * *
-     * 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/*`.
      * 
* * @@ -657,8 +657,8 @@ public java.lang.String getParent() { * * *
-     * 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/*`.
      * 
* * @@ -682,8 +682,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * 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/*`.
      * 
* * @@ -706,8 +706,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * 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/*`.
      * 
* * @@ -726,8 +726,8 @@ public Builder clearParent() { * * *
-     * 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/*`.
      * 
* * @@ -955,8 +955,8 @@ public com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder getWorkspaceOrBuilde * * *
-     * 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]; @@ -978,8 +978,8 @@ public java.lang.String getWorkspaceId() { * * *
-     * 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]; @@ -1001,8 +1001,8 @@ public com.google.protobuf.ByteString getWorkspaceIdBytes() { * * *
-     * 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]; @@ -1023,8 +1023,8 @@ public Builder setWorkspaceId(java.lang.String value) { * * *
-     * 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]; @@ -1041,8 +1041,8 @@ public Builder clearWorkspaceId() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java index d8e1154a6323..9a70fba7e6a2 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CreateWorkspaceRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface CreateWorkspaceRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -99,8 +99,8 @@ public interface CreateWorkspaceRequestOrBuilder * * *
-   * 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]; @@ -112,8 +112,8 @@ public interface CreateWorkspaceRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java index 5b9bdcc2b2f8..6054fd52ffbc 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java @@ -35,6 +35,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -59,6 +71,66 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -148,9 +220,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; + internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable; + internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -208,21 +280,53 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor; + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable; + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; + internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable; + internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor; + internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_fieldAccessorTable; + internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_VarsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_VarsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -292,13 +396,45 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor; + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable; + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable; + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -354,533 +490,784 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "client.proto\032\037google/api/field_behavior." + "proto\032\031google/api/resource.proto\032\033google" + "/protobuf/empty.proto\032 google/protobuf/f" - + "ield_mask.proto\032\032google/type/interval.pr" - + "oto\"\316\004\n\nRepository\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022^" - + "\n\023git_remote_settings\030\002 \001(\0132;.google.clo" - + "ud.dataform.v1beta1.Repository.GitRemote" - + "SettingsB\004\342A\001\001\032\337\002\n\021GitRemoteSettings\022\021\n\003" - + "url\030\001 \001(\tB\004\342A\001\002\022\034\n\016default_branch\030\002 \001(\tB" - + "\004\342A\001\002\022`\n#authentication_token_secret_ver" - + "sion\030\003 \001(\tB3\342A\001\002\372A,\n*secretmanager.googl" - + "eapis.com/SecretVersion\022c\n\014token_status\030" - + "\004 \001(\0162G.google.cloud.dataform.v1beta1.Re" - + "pository.GitRemoteSettings.TokenStatusB\004" - + "\342A\001\003\"R\n\013TokenStatus\022\034\n\030TOKEN_STATUS_UNSP" - + "ECIFIED\020\000\022\r\n\tNOT_FOUND\020\001\022\013\n\007INVALID\020\002\022\t\n" - + "\005VALID\020\003:j\352Ag\n\"dataform.googleapis.com/R" - + "epository\022Aprojects/{project}/locations/" - + "{location}/repositories/{repository}\"\266\001\n" - + "\027ListRepositoriesRequest\022:\n\006parent\030\001 \001(\t" - + "B*\342A\001\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_to" - + "ken\030\003 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\004 \001(\tB\004\342A\001\001\022" - + "\024\n\006filter\030\005 \001(\tB\004\342A\001\001\"\211\001\n\030ListRepositori" - + "esResponse\022?\n\014repositories\030\001 \003(\0132).googl" - + "e.cloud.dataform.v1beta1.Repository\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"Q\n\024GetRepositoryRequest\0229\n\004name\030\001 \001(\tB" - + "+\342A\001\002\372A$\n\"dataform.googleapis.com/Reposi" - + "tory\"\267\001\n\027CreateRepositoryRequest\022:\n\006pare" - + "nt\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis." - + "com/Location\022C\n\nrepository\030\002 \001(\0132).googl" - + "e.cloud.dataform.v1beta1.RepositoryB\004\342A\001" - + "\002\022\033\n\rrepository_id\030\003 \001(\tB\004\342A\001\002\"\225\001\n\027Updat" - + "eRepositoryRequest\0225\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\004\342A\001\001\022C\n\nrep" - + "ository\030\002 \001(\0132).google.cloud.dataform.v1" - + "beta1.RepositoryB\004\342A\001\002\"c\n\027DeleteReposito" - + "ryRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"datafo" - + "rm.googleapis.com/Repository\022\r\n\005force\030\002 " - + "\001(\010\"W\n\032FetchRemoteBranchesRequest\0229\n\004nam" + + "ield_mask.proto\032\037google/protobuf/timesta" + + "mp.proto\032\027google/rpc/status.proto\032\032googl" + + "e/type/interval.proto\"\246\013\n\nRepository\022\022\n\004" + + "name\030\001 \001(\tB\004\342A\001\003\022\032\n\014display_name\030\010 \001(\tB\004" + + "\342A\001\001\022^\n\023git_remote_settings\030\002 \001(\0132;.goog" + + "le.cloud.dataform.v1beta1.Repository.Git" + + "RemoteSettingsB\004\342A\001\001\022g\n*npmrc_environmen" + + "t_variables_secret_version\030\003 \001(\tB3\342A\001\001\372A" + + ",\n*secretmanager.googleapis.com/SecretVe" + + "rsion\022v\n\037workspace_compilation_overrides" + + "\030\004 \001(\0132G.google.cloud.dataform.v1beta1.R" + + "epository.WorkspaceCompilationOverridesB" + + "\004\342A\001\001\022K\n\006labels\030\005 \003(\01325.google.cloud.dat" + + "aform.v1beta1.Repository.LabelsEntryB\004\342A" + + "\001\001\022+\n\034set_authenticated_user_admin\030\t \001(\010" + + "B\005\342A\002\001\004\022\035\n\017service_account\030\n \001(\tB\004\342A\001\001\032\370" + + "\004\n\021GitRemoteSettings\022\021\n\003url\030\001 \001(\tB\004\342A\001\002\022" + + "\034\n\016default_branch\030\002 \001(\tB\004\342A\001\002\022`\n#authent" + + "ication_token_secret_version\030\003 \001(\tB3\342A\001\001" + + "\372A,\n*secretmanager.googleapis.com/Secret" + + "Version\022|\n\031ssh_authentication_config\030\005 \001" + + "(\0132S.google.cloud.dataform.v1beta1.Repos" + + "itory.GitRemoteSettings.SshAuthenticatio" + + "nConfigB\004\342A\001\001\022e\n\014token_status\030\004 \001(\0162G.go" + + "ogle.cloud.dataform.v1beta1.Repository.G" + + "itRemoteSettings.TokenStatusB\006\030\001\342A\001\003\032\226\001\n" + + "\027SshAuthenticationConfig\022\\\n\037user_private" + + "_key_secret_version\030\001 \001(\tB3\342A\001\002\372A,\n*secr" + + "etmanager.googleapis.com/SecretVersion\022\035" + + "\n\017host_public_key\030\002 \001(\tB\004\342A\001\002\"R\n\013TokenSt" + + "atus\022\034\n\030TOKEN_STATUS_UNSPECIFIED\020\000\022\r\n\tNO" + + "T_FOUND\020\001\022\013\n\007INVALID\020\002\022\t\n\005VALID\020\003\032x\n\035Wor" + + "kspaceCompilationOverrides\022\036\n\020default_da" + + "tabase\030\001 \001(\tB\004\342A\001\001\022\033\n\rschema_suffix\030\002 \001(" + + "\tB\004\342A\001\001\022\032\n\014table_prefix\030\003 \001(\tB\004\342A\001\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:j\352Ag\n\"dataform.googleapis.com/Reposit" + + "ory\022Aprojects/{project}/locations/{locat" + + "ion}/repositories/{repository}\"\266\001\n\027ListR" + + "epositoriesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!locations.googleapis.com/Location\022\027" + + "\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 " + + "\001(\tB\004\342A\001\001\022\026\n\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n\006fil" + + "ter\030\005 \001(\tB\004\342A\001\001\"\211\001\n\030ListRepositoriesResp" + + "onse\022?\n\014repositories\030\001 \003(\0132).google.clou" + + "d.dataform.v1beta1.Repository\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\024G" + + "etRepositoryRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372" + + "A$\n\"dataform.googleapis.com/Repository\"\267" + + "\001\n\027CreateRepositoryRequest\022:\n\006parent\030\001 \001" + + "(\tB*\342A\001\002\372A#\n!locations.googleapis.com/Lo" + + "cation\022C\n\nrepository\030\002 \001(\0132).google.clou" + + "d.dataform.v1beta1.RepositoryB\004\342A\001\002\022\033\n\rr" + + "epository_id\030\003 \001(\tB\004\342A\001\002\"\225\001\n\027UpdateRepos" + + "itoryRequest\0225\n\013update_mask\030\001 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\004\342A\001\001\022C\n\nrepositor" + + "y\030\002 \001(\0132).google.cloud.dataform.v1beta1." + + "RepositoryB\004\342A\001\002\"c\n\027DeleteRepositoryRequ" + + "est\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.goo" + + "gleapis.com/Repository\022\r\n\005force\030\002 \001(\010\"\352\005" + + "\n\036CommitRepositoryChangesRequest\0229\n\004name" + + "\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.googleapis.com" + + "/Repository\022L\n\017commit_metadata\030\002 \001(\0132-.g" + + "oogle.cloud.dataform.v1beta1.CommitMetad" + + "ataB\004\342A\001\002\022&\n\030required_head_commit_sha\030\004 " + + "\001(\tB\004\342A\001\001\022j\n\017file_operations\030\003 \003(\0132Q.goo" + + "gle.cloud.dataform.v1beta1.CommitReposit" + + "oryChangesRequest.FileOperationsEntry\032\245\002" + + "\n\rFileOperation\022k\n\nwrite_file\030\001 \001(\0132U.go" + + "ogle.cloud.dataform.v1beta1.CommitReposi" + + "toryChangesRequest.FileOperation.WriteFi" + + "leH\000\022m\n\013delete_file\030\002 \001(\0132V.google.cloud" + + ".dataform.v1beta1.CommitRepositoryChange" + + "sRequest.FileOperation.DeleteFileH\000\032\035\n\tW" + + "riteFile\022\020\n\010contents\030\001 \001(\014\032\014\n\nDeleteFile" + + "B\013\n\toperation\032\202\001\n\023FileOperationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022Z\n\005value\030\002 \001(\0132K.google.cloud" + + ".dataform.v1beta1.CommitRepositoryChange" + + "sRequest.FileOperation:\0028\001\"\204\001\n\031ReadRepos" + + "itoryFileRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"dataform.googleapis.com/Repository\022\030\n\nc" + + "ommit_sha\030\002 \001(\tB\004\342A\001\001\022\022\n\004path\030\003 \001(\tB\004\342A\001" + + "\002\".\n\032ReadRepositoryFileResponse\022\020\n\010conte" + + "nts\030\001 \001(\014\"\305\001\n\'QueryRepositoryDirectoryCo" + + "ntentsRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"da" + + "taform.googleapis.com/Repository\022\030\n\ncomm" + + "it_sha\030\002 \001(\tB\004\342A\001\001\022\022\n\004path\030\003 \001(\tB\004\342A\001\001\022\027" + + "\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\005 " + + "\001(\tB\004\342A\001\001\"\215\001\n(QueryRepositoryDirectoryCo" + + "ntentsResponse\022H\n\021directory_entries\030\001 \003(" + + "\0132-.google.cloud.dataform.v1beta1.Direct" + + "oryEntry\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n\035Fe" + + "tchRepositoryHistoryRequest\0229\n\004name\030\001 \001(" + + "\tB+\342A\001\002\372A$\n\"dataform.googleapis.com/Repo" + + "sitory\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" + + "token\030\005 \001(\tB\004\342A\001\001\"y\n\036FetchRepositoryHist" + + "oryResponse\022>\n\007commits\030\001 \003(\0132-.google.cl" + + "oud.dataform.v1beta1.CommitLogEntry\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\252\001\n\016CommitLogEntry\022" + + "/\n\013commit_time\030\001 \001(\0132\032.google.protobuf.T" + + "imestamp\022\022\n\ncommit_sha\030\002 \001(\t\022;\n\006author\030\003" + + " \001(\0132+.google.cloud.dataform.v1beta1.Com" + + "mitAuthor\022\026\n\016commit_message\030\004 \001(\t\"q\n\016Com" + + "mitMetadata\022A\n\006author\030\001 \001(\0132+.google.clo" + + "ud.dataform.v1beta1.CommitAuthorB\004\342A\001\002\022\034" + + "\n\016commit_message\030\002 \001(\tB\004\342A\001\001\"f\n)ComputeR" + + "epositoryAccessTokenStatusRequest\0229\n\004nam" + "e\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.googleapis.co" - + "m/Repository\"/\n\033FetchRemoteBranchesRespo" - + "nse\022\020\n\010branches\030\001 \003(\t\"\242\001\n\tWorkspace\022\022\n\004n" - + "ame\030\001 \001(\tB\004\342A\001\003:\200\001\352A}\n!dataform.googleap" - + "is.com/Workspace\022Xprojects/{project}/loc" - + "ations/{location}/repositories/{reposito" - + "ry}/workspaces/{workspace}\"\265\001\n\025ListWorks" - + "pacesRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"d" - + "ataform.googleapis.com/Repository\022\027\n\tpag" - + "e_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004" - + "\342A\001\001\022\026\n\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n\006filter\030\005" - + " \001(\tB\004\342A\001\001\"\204\001\n\026ListWorkspacesResponse\022<\n" - + "\nworkspaces\030\001 \003(\0132(.google.cloud.datafor" - + "m.v1beta1.Workspace\022\027\n\017next_page_token\030\002" - + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"O\n\023GetWorkspac" - + "eRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!datafor" - + "m.googleapis.com/Workspace\"\264\001\n\026CreateWor" - + "kspaceRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"" - + "dataform.googleapis.com/Repository\022A\n\two" - + "rkspace\030\002 \001(\0132(.google.cloud.dataform.v1" - + "beta1.WorkspaceB\004\342A\001\002\022\032\n\014workspace_id\030\003 " - + "\001(\tB\004\342A\001\002\"R\n\026DeleteWorkspaceRequest\0228\n\004n" - + "ame\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis." - + "com/Workspace\"?\n\014CommitAuthor\022\022\n\004name\030\001 " - + "\001(\tB\004\342A\001\002\022\033\n\remail_address\030\002 \001(\tB\004\342A\001\002\"\261" - + "\001\n\025PullGitCommitsRequest\0228\n\004name\030\001 \001(\tB*" - + "\342A\001\002\372A#\n!dataform.googleapis.com/Workspa" - + "ce\022\033\n\rremote_branch\030\002 \001(\tB\004\342A\001\001\022A\n\006autho" - + "r\030\003 \001(\0132+.google.cloud.dataform.v1beta1." - + "CommitAuthorB\004\342A\001\002\"n\n\025PushGitCommitsRequ" - + "est\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.goo" - + "gleapis.com/Workspace\022\033\n\rremote_branch\030\002" - + " \001(\tB\004\342A\001\001\"W\n\033FetchFileGitStatusesReques" + + "m/Repository\"\355\001\n*ComputeRepositoryAccess" + + "TokenStatusResponse\022k\n\014token_status\030\001 \001(" + + "\0162U.google.cloud.dataform.v1beta1.Comput" + + "eRepositoryAccessTokenStatusResponse.Tok" + + "enStatus\"R\n\013TokenStatus\022\034\n\030TOKEN_STATUS_" + + "UNSPECIFIED\020\000\022\r\n\tNOT_FOUND\020\001\022\013\n\007INVALID\020" + + "\002\022\t\n\005VALID\020\003\"W\n\032FetchRemoteBranchesReque" + + "st\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.goog" + + "leapis.com/Repository\"/\n\033FetchRemoteBran" + + "chesResponse\022\020\n\010branches\030\001 \003(\t\"\242\001\n\tWorks" + + "pace\022\022\n\004name\030\001 \001(\tB\004\342A\001\003:\200\001\352A}\n!dataform" + + ".googleapis.com/Workspace\022Xprojects/{pro" + + "ject}/locations/{location}/repositories/" + + "{repository}/workspaces/{workspace}\"\265\001\n\025" + + "ListWorkspacesRequest\022;\n\006parent\030\001 \001(\tB+\342" + + "A\001\002\372A$\n\"dataform.googleapis.com/Reposito" + + "ry\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_toke" + + "n\030\003 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\005 \001(\tB\004\342A\001\001\"\204\001\n\026ListWorkspacesRe" + + "sponse\022<\n\nworkspaces\030\001 \003(\0132(.google.clou" + + "d.dataform.v1beta1.Workspace\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"O\n\023Ge" + + "tWorkspaceRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#" + + "\n!dataform.googleapis.com/Workspace\"\264\001\n\026" + + "CreateWorkspaceRequest\022;\n\006parent\030\001 \001(\tB+" + + "\342A\001\002\372A$\n\"dataform.googleapis.com/Reposit" + + "ory\022A\n\tworkspace\030\002 \001(\0132(.google.cloud.da" + + "taform.v1beta1.WorkspaceB\004\342A\001\002\022\032\n\014worksp" + + "ace_id\030\003 \001(\tB\004\342A\001\002\"R\n\026DeleteWorkspaceReq" + + "uest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.go" + + "ogleapis.com/Workspace\"?\n\014CommitAuthor\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\002\022\033\n\remail_address\030\002 \001(" + + "\tB\004\342A\001\002\"\261\001\n\025PullGitCommitsRequest\0228\n\004nam" + + "e\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis.co" + + "m/Workspace\022\033\n\rremote_branch\030\002 \001(\tB\004\342A\001\001" + + "\022A\n\006author\030\003 \001(\0132+.google.cloud.dataform" + + ".v1beta1.CommitAuthorB\004\342A\001\002\"n\n\025PushGitCo" + + "mmitsRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!dat" + + "aform.googleapis.com/Workspace\022\033\n\rremote" + + "_branch\030\002 \001(\tB\004\342A\001\001\"W\n\033FetchFileGitStatu" + + "sesRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!dataf" + + "orm.googleapis.com/Workspace\"\374\002\n\034FetchFi" + + "leGitStatusesResponse\022s\n\030uncommitted_fil" + + "e_changes\030\001 \003(\0132Q.google.cloud.dataform." + + "v1beta1.FetchFileGitStatusesResponse.Unc" + + "ommittedFileChange\032\346\001\n\025UncommittedFileCh" + + "ange\022\014\n\004path\030\001 \001(\t\022f\n\005state\030\002 \001(\0162W.goog" + + "le.cloud.dataform.v1beta1.FetchFileGitSt" + + "atusesResponse.UncommittedFileChange.Sta" + + "te\"W\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005AD" + + "DED\020\001\022\013\n\007DELETED\020\002\022\014\n\010MODIFIED\020\003\022\021\n\rHAS_" + + "CONFLICTS\020\004\"s\n\032FetchGitAheadBehindReques" + "t\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.googl" - + "eapis.com/Workspace\"\374\002\n\034FetchFileGitStat" - + "usesResponse\022s\n\030uncommitted_file_changes" - + "\030\001 \003(\0132Q.google.cloud.dataform.v1beta1.F" - + "etchFileGitStatusesResponse.UncommittedF" - + "ileChange\032\346\001\n\025UncommittedFileChange\022\014\n\004p" - + "ath\030\001 \001(\t\022f\n\005state\030\002 \001(\0162W.google.cloud." - + "dataform.v1beta1.FetchFileGitStatusesRes" - + "ponse.UncommittedFileChange.State\"W\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005ADDED\020\001\022\013\n\007" - + "DELETED\020\002\022\014\n\010MODIFIED\020\003\022\021\n\rHAS_CONFLICTS" - + "\020\004\"s\n\032FetchGitAheadBehindRequest\0228\n\004name" - + "\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis.com" - + "/Workspace\022\033\n\rremote_branch\030\002 \001(\tB\004\342A\001\001\"" - + "L\n\033FetchGitAheadBehindResponse\022\025\n\rcommit" - + "s_ahead\030\001 \001(\005\022\026\n\016commits_behind\030\002 \001(\005\"\317\001" - + "\n\035CommitWorkspaceChangesRequest\0228\n\004name\030" - + "\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis.com/" - + "Workspace\022A\n\006author\030\004 \001(\0132+.google.cloud" - + ".dataform.v1beta1.CommitAuthorB\004\342A\001\002\022\034\n\016" - + "commit_message\030\002 \001(\tB\004\342A\001\001\022\023\n\005paths\030\003 \003(" - + "\tB\004\342A\001\001\"\202\001\n\034ResetWorkspaceChangesRequest" + + "eapis.com/Workspace\022\033\n\rremote_branch\030\002 \001" + + "(\tB\004\342A\001\001\"L\n\033FetchGitAheadBehindResponse\022" + + "\025\n\rcommits_ahead\030\001 \001(\005\022\026\n\016commits_behind" + + "\030\002 \001(\005\"\317\001\n\035CommitWorkspaceChangesRequest" + "\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.google" - + "apis.com/Workspace\022\023\n\005paths\030\002 \003(\tB\004\342A\001\001\022" - + "\023\n\005clean\030\003 \001(\010B\004\342A\001\001\"i\n\024FetchFileDiffReq" + + "apis.com/Workspace\022A\n\006author\030\004 \001(\0132+.goo" + + "gle.cloud.dataform.v1beta1.CommitAuthorB" + + "\004\342A\001\002\022\034\n\016commit_message\030\002 \001(\tB\004\342A\001\001\022\023\n\005p" + + "aths\030\003 \003(\tB\004\342A\001\001\"\202\001\n\034ResetWorkspaceChang" + + "esRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!datafo" + + "rm.googleapis.com/Workspace\022\023\n\005paths\030\002 \003" + + "(\tB\004\342A\001\001\022\023\n\005clean\030\003 \001(\010B\004\342A\001\001\"i\n\024FetchFi" + + "leDiffRequest\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A" + + "#\n!dataform.googleapis.com/Workspace\022\022\n\004" + + "path\030\002 \001(\tB\004\342A\001\002\"/\n\025FetchFileDiffRespons" + + "e\022\026\n\016formatted_diff\030\001 \001(\t\"\245\001\n\035QueryDirec" + + "toryContentsRequest\022=\n\tworkspace\030\001 \001(\tB*" + + "\342A\001\002\372A#\n!dataform.googleapis.com/Workspa" + + "ce\022\022\n\004path\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(" + + "\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"\203\001\n\036Qu" + + "eryDirectoryContentsResponse\022H\n\021director" + + "y_entries\030\001 \003(\0132-.google.cloud.dataform." + + "v1beta1.DirectoryEntry\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\">\n\016DirectoryEntry\022\016\n\004file\030\001 \001(\tH" + + "\000\022\023\n\tdirectory\030\002 \001(\tH\000B\007\n\005entry\"i\n\024MakeD" + + "irectoryRequest\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!dataform.googleapis.com/Workspace\022\022" + + "\n\004path\030\002 \001(\tB\004\342A\001\002\"\027\n\025MakeDirectoryRespo" + + "nse\"k\n\026RemoveDirectoryRequest\022=\n\tworkspa" + + "ce\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis.c" + + "om/Workspace\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\"\201\001\n\024Mov" + + "eDirectoryRequest\022=\n\tworkspace\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!dataform.googleapis.com/Workspace" + + "\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\022\026\n\010new_path\030\003 \001(\tB\004" + + "\342A\001\002\"\027\n\025MoveDirectoryResponse\"d\n\017ReadFil" + + "eRequest\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!da" + + "taform.googleapis.com/Workspace\022\022\n\004path\030" + + "\002 \001(\tB\004\342A\001\002\")\n\020ReadFileResponse\022\025\n\rfile_" + + "contents\030\001 \001(\014\"f\n\021RemoveFileRequest\022=\n\tw" + + "orkspace\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.google" + + "apis.com/Workspace\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\"|" + + "\n\017MoveFileRequest\022=\n\tworkspace\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!dataform.googleapis.com/Workspace" + + "\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\022\026\n\010new_path\030\003 \001(\tB\004" + + "\342A\001\002\"\022\n\020MoveFileResponse\"}\n\020WriteFileReq" + "uest\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!datafo" + "rm.googleapis.com/Workspace\022\022\n\004path\030\002 \001(" - + "\tB\004\342A\001\002\"/\n\025FetchFileDiffResponse\022\026\n\016form" - + "atted_diff\030\001 \001(\t\"\245\001\n\035QueryDirectoryConte" - + "ntsRequest\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!" - + "dataform.googleapis.com/Workspace\022\022\n\004pat" - + "h\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030" - + "\n\npage_token\030\004 \001(\tB\004\342A\001\001\"\342\001\n\036QueryDirect" - + "oryContentsResponse\022g\n\021directory_entries" - + "\030\001 \003(\0132L.google.cloud.dataform.v1beta1.Q" - + "ueryDirectoryContentsResponse.DirectoryE" - + "ntry\022\027\n\017next_page_token\030\002 \001(\t\032>\n\016Directo" - + "ryEntry\022\016\n\004file\030\001 \001(\tH\000\022\023\n\tdirectory\030\002 \001" - + "(\tH\000B\007\n\005entry\"i\n\024MakeDirectoryRequest\022=\n" - + "\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.goog" - + "leapis.com/Workspace\022\022\n\004path\030\002 \001(\tB\004\342A\001\002" - + "\"\027\n\025MakeDirectoryResponse\"k\n\026RemoveDirec" - + "toryRequest\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n" - + "!dataform.googleapis.com/Workspace\022\022\n\004pa" - + "th\030\002 \001(\tB\004\342A\001\002\"\201\001\n\024MoveDirectoryRequest\022" - + "=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.go" - + "ogleapis.com/Workspace\022\022\n\004path\030\002 \001(\tB\004\342A" - + "\001\002\022\026\n\010new_path\030\003 \001(\tB\004\342A\001\002\"\027\n\025MoveDirect" - + "oryResponse\"d\n\017ReadFileRequest\022=\n\tworksp" - + "ace\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis." - + "com/Workspace\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\")\n\020Rea" - + "dFileResponse\022\025\n\rfile_contents\030\001 \001(\014\"f\n\021" - + "RemoveFileRequest\022=\n\tworkspace\030\001 \001(\tB*\342A" - + "\001\002\372A#\n!dataform.googleapis.com/Workspace" - + "\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\"|\n\017MoveFileRequest\022" - + "=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!dataform.go" - + "ogleapis.com/Workspace\022\022\n\004path\030\002 \001(\tB\004\342A" - + "\001\002\022\026\n\010new_path\030\003 \001(\tB\004\342A\001\002\"\022\n\020MoveFileRe" - + "sponse\"}\n\020WriteFileRequest\022=\n\tworkspace\030" - + "\001 \001(\tB*\342A\001\002\372A#\n!dataform.googleapis.com/" - + "Workspace\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\022\026\n\010content" - + "s\030\003 \001(\014B\004\342A\001\002\"\023\n\021WriteFileResponse\"Z\n\031In" - + "stallNpmPackagesRequest\022=\n\tworkspace\030\001 \001" - + "(\tB*\342A\001\002\372A#\n!dataform.googleapis.com/Wor" - + "kspace\"\034\n\032InstallNpmPackagesResponse\"\303\010\n" - + "\021CompilationResult\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035" - + "\n\rgit_commitish\030\002 \001(\tB\004\342A\001\005H\000\022?\n\tworkspa" - + "ce\030\003 \001(\tB*\342A\001\005\372A#\n!dataform.googleapis.c" - + "om/WorkspaceH\000\022m\n\027code_compilation_confi" - + "g\030\004 \001(\0132F.google.cloud.dataform.v1beta1." - + "CompilationResult.CodeCompilationConfigB" - + "\004\342A\001\005\022#\n\025dataform_core_version\030\005 \001(\tB\004\342A" + + "\tB\004\342A\001\002\022\026\n\010contents\030\003 \001(\014B\004\342A\001\002\"\023\n\021Write" + + "FileResponse\"Z\n\031InstallNpmPackagesReques" + + "t\022=\n\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n!dataform." + + "googleapis.com/Workspace\"\034\n\032InstallNpmPa" + + "ckagesResponse\"\202\006\n\rReleaseConfig\022\022\n\004name" + + "\030\001 \001(\tB\004\342A\001\003\022\033\n\rgit_commitish\030\002 \001(\tB\004\342A\001" + + "\002\022[\n\027code_compilation_config\030\003 \001(\01324.goo" + + "gle.cloud.dataform.v1beta1.CodeCompilati" + + "onConfigB\004\342A\001\001\022\033\n\rcron_schedule\030\004 \001(\tB\004\342" + + "A\001\001\022\027\n\ttime_zone\030\007 \001(\tB\004\342A\001\001\022s\n recent_s" + + "cheduled_release_records\030\005 \003(\0132C.google." + + "cloud.dataform.v1beta1.ReleaseConfig.Sch" + + "eduledReleaseRecordB\004\342A\001\003\022V\n\032release_com" + + "pilation_result\030\006 \001(\tB2\342A\001\001\372A+\n)dataform" + + ".googleapis.com/CompilationResult\032\316\001\n\026Sc" + + "heduledReleaseRecord\0220\n\014release_time\030\001 \001" + + "(\0132\032.google.protobuf.Timestamp\022L\n\022compil" + + "ation_result\030\002 \001(\tB.\372A+\n)dataform.google" + + "apis.com/CompilationResultH\000\022*\n\014error_st" + + "atus\030\003 \001(\0132\022.google.rpc.StatusH\000B\010\n\006resu" + + "lt:\216\001\352A\212\001\n%dataform.googleapis.com/Relea" + + "seConfig\022aprojects/{project}/locations/{" + + "location}/repositories/{repository}/rele" + + "aseConfigs/{release_config}\"\213\001\n\031ListRele" + + "aseConfigsRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372" + + "A$\n\"dataform.googleapis.com/Repository\022\027" + + "\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 " + + "\001(\tB\004\342A\001\001\"\221\001\n\032ListReleaseConfigsResponse" + + "\022E\n\017release_configs\030\001 \003(\0132,.google.cloud" + + ".dataform.v1beta1.ReleaseConfig\022\027\n\017next_" + + "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"W\n" + + "\027GetReleaseConfigRequest\022<\n\004name\030\001 \001(\tB." + + "\342A\001\002\372A\'\n%dataform.googleapis.com/Release" + + "Config\"\306\001\n\032CreateReleaseConfigRequest\022;\n" + + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.googlea" + + "pis.com/Repository\022J\n\016release_config\030\002 \001" + + "(\0132,.google.cloud.dataform.v1beta1.Relea" + + "seConfigB\004\342A\001\002\022\037\n\021release_config_id\030\003 \001(" + + "\tB\004\342A\001\002\"\237\001\n\032UpdateReleaseConfigRequest\0225" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\001\022J\n\016release_config\030\002 \001(\0132,." + + "google.cloud.dataform.v1beta1.ReleaseCon" + + "figB\004\342A\001\002\"Z\n\032DeleteReleaseConfigRequest\022" + + "<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%dataform.googlea" + + "pis.com/ReleaseConfig\"\237\006\n\021CompilationRes" + + "ult\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\rgit_commitish" + + "\030\002 \001(\tB\004\342A\001\005H\000\022?\n\tworkspace\030\003 \001(\tB*\342A\001\005\372" + + "A#\n!dataform.googleapis.com/WorkspaceH\000\022" + + "H\n\016release_config\030\007 \001(\tB.\342A\001\005\372A\'\n%datafo" + + "rm.googleapis.com/ReleaseConfigH\000\022[\n\027cod" + + "e_compilation_config\030\004 \001(\01324.google.clou" + + "d.dataform.v1beta1.CodeCompilationConfig" + + "B\004\342A\001\005\022%\n\027resolved_git_commit_sha\030\010 \001(\tB" + + "\004\342A\001\003\022#\n\025dataform_core_version\030\005 \001(\tB\004\342A" + "\001\003\022c\n\022compilation_errors\030\006 \003(\0132A.google." + "cloud.dataform.v1beta1.CompilationResult" - + ".CompilationErrorB\004\342A\001\003\032\200\003\n\025CodeCompilat" + + ".CompilationErrorB\004\342A\001\003\032\226\001\n\020CompilationE" + + "rror\022\025\n\007message\030\001 \001(\tB\004\342A\001\003\022\023\n\005stack\030\002 \001" + + "(\tB\004\342A\001\003\022\022\n\004path\030\003 \001(\tB\004\342A\001\003\022B\n\raction_t" + + "arget\030\004 \001(\0132%.google.cloud.dataform.v1be" + + "ta1.TargetB\004\342A\001\003:\232\001\352A\226\001\n)dataform.google" + + "apis.com/CompilationResult\022iprojects/{pr" + + "oject}/locations/{location}/repositories" + + "/{repository}/compilationResults/{compil" + + "ation_result}B\010\n\006source\"\356\002\n\025CodeCompilat" + "ionConfig\022\036\n\020default_database\030\001 \001(\tB\004\342A\001" + "\001\022\034\n\016default_schema\030\002 \001(\tB\004\342A\001\001\022\036\n\020defau" + "lt_location\030\010 \001(\tB\004\342A\001\001\022\036\n\020assertion_sch" - + "ema\030\003 \001(\tB\004\342A\001\001\022d\n\004vars\030\004 \003(\0132P.google.c" - + "loud.dataform.v1beta1.CompilationResult." - + "CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" - + "\017database_suffix\030\005 \001(\tB\004\342A\001\001\022\033\n\rschema_s" - + "uffix\030\006 \001(\tB\004\342A\001\001\022\032\n\014table_prefix\030\007 \001(\tB" - + "\004\342A\001\001\032+\n\tVarsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\032\226\001\n\020CompilationError\022\025\n\007messa" - + "ge\030\001 \001(\tB\004\342A\001\003\022\023\n\005stack\030\002 \001(\tB\004\342A\001\003\022\022\n\004p" - + "ath\030\003 \001(\tB\004\342A\001\003\022B\n\raction_target\030\004 \001(\0132%" - + ".google.cloud.dataform.v1beta1.TargetB\004\342" - + "A\001\003:\232\001\352A\226\001\n)dataform.googleapis.com/Comp" - + "ilationResult\022iprojects/{project}/locati" - + "ons/{location}/repositories/{repository}" - + "/compilationResults/{compilation_result}" - + "B\010\n\006source\"\217\001\n\035ListCompilationResultsReq" - + "uest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform." - + "googleapis.com/Repository\022\027\n\tpage_size\030\002" - + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\235\001\n" - + "\036ListCompilationResultsResponse\022M\n\023compi" - + "lation_results\030\001 \003(\01320.google.cloud.data" - + "form.v1beta1.CompilationResult\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"_\n\033" - + "GetCompilationResultRequest\022@\n\004name\030\001 \001(" - + "\tB2\342A\001\002\372A+\n)dataform.googleapis.com/Comp" - + "ilationResult\"\261\001\n\036CreateCompilationResul" - + "tRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"dataf" - + "orm.googleapis.com/Repository\022R\n\022compila" - + "tion_result\030\002 \001(\01320.google.cloud.datafor" - + "m.v1beta1.CompilationResultB\004\342A\001\002\"8\n\006Tar" - + "get\022\020\n\010database\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t\022\014\n" - + "\004name\030\003 \001(\t\"\352\002\n\022RelationDescriptor\022\023\n\013de" - + "scription\030\001 \001(\t\022S\n\007columns\030\002 \003(\0132B.googl" - + "e.cloud.dataform.v1beta1.RelationDescrip" - + "tor.ColumnDescriptor\022^\n\017bigquery_labels\030" - + "\003 \003(\0132E.google.cloud.dataform.v1beta1.Re" - + "lationDescriptor.BigqueryLabelsEntry\032S\n\020" - + "ColumnDescriptor\022\014\n\004path\030\001 \003(\t\022\023\n\013descri" - + "ption\030\002 \001(\t\022\034\n\024bigquery_policy_tags\030\003 \003(" - + "\t\0325\n\023BigqueryLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\323\021\n\027CompilationResultAc" - + "tion\0225\n\006target\030\001 \001(\0132%.google.cloud.data" - + "form.v1beta1.Target\022?\n\020canonical_target\030" - + "\002 \001(\0132%.google.cloud.dataform.v1beta1.Ta" - + "rget\022\021\n\tfile_path\030\003 \001(\t\022S\n\010relation\030\004 \001(" - + "\0132?.google.cloud.dataform.v1beta1.Compil" - + "ationResultAction.RelationH\000\022W\n\noperatio" - + "ns\030\005 \001(\0132A.google.cloud.dataform.v1beta1" - + ".CompilationResultAction.OperationsH\000\022U\n" - + "\tassertion\030\006 \001(\0132@.google.cloud.dataform" - + ".v1beta1.CompilationResultAction.Asserti" - + "onH\000\022Y\n\013declaration\030\007 \001(\0132B.google.cloud" - + ".dataform.v1beta1.CompilationResultActio" - + "n.DeclarationH\000\032\336\010\n\010Relation\022A\n\022dependen" - + "cy_targets\030\001 \003(\0132%.google.cloud.dataform" - + ".v1beta1.Target\022\020\n\010disabled\030\002 \001(\010\022\014\n\004tag" - + "s\030\003 \003(\t\022N\n\023relation_descriptor\030\004 \001(\01321.g" - + "oogle.cloud.dataform.v1beta1.RelationDes" - + "criptor\022c\n\rrelation_type\030\005 \001(\0162L.google." + + "ema\030\003 \001(\tB\004\342A\001\001\022R\n\004vars\030\004 \003(\0132>.google.c" + + "loud.dataform.v1beta1.CodeCompilationCon" + + "fig.VarsEntryB\004\342A\001\001\022\035\n\017database_suffix\030\005" + + " \001(\tB\004\342A\001\001\022\033\n\rschema_suffix\030\006 \001(\tB\004\342A\001\001\022" + + "\032\n\014table_prefix\030\007 \001(\tB\004\342A\001\001\032+\n\tVarsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\217\001\n\035Lis" + + "tCompilationResultsRequest\022;\n\006parent\030\001 \001" + + "(\tB+\342A\001\002\372A$\n\"dataform.googleapis.com/Rep" + + "ository\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\"\235\001\n\036ListCompilationRe" + + "sultsResponse\022M\n\023compilation_results\030\001 \003" + + "(\01320.google.cloud.dataform.v1beta1.Compi" + + "lationResult\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"_\n\033GetCompilationResu" + + "ltRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)datafo" + + "rm.googleapis.com/CompilationResult\"\261\001\n\036" + + "CreateCompilationResultRequest\022;\n\006parent" + + "\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.googleapis.com" + + "/Repository\022R\n\022compilation_result\030\002 \001(\0132" + + "0.google.cloud.dataform.v1beta1.Compilat" + + "ionResultB\004\342A\001\002\"8\n\006Target\022\020\n\010database\030\001 " + + "\001(\t\022\016\n\006schema\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"\352\002\n\022Re" + + "lationDescriptor\022\023\n\013description\030\001 \001(\t\022S\n" + + "\007columns\030\002 \003(\0132B.google.cloud.dataform.v" + + "1beta1.RelationDescriptor.ColumnDescript" + + "or\022^\n\017bigquery_labels\030\003 \003(\0132E.google.clo" + + "ud.dataform.v1beta1.RelationDescriptor.B" + + "igqueryLabelsEntry\032S\n\020ColumnDescriptor\022\014" + + "\n\004path\030\001 \003(\t\022\023\n\013description\030\002 \001(\t\022\034\n\024big" + + "query_policy_tags\030\003 \003(\t\0325\n\023BigqueryLabel" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\323" + + "\021\n\027CompilationResultAction\0225\n\006target\030\001 \001" + + "(\0132%.google.cloud.dataform.v1beta1.Targe" + + "t\022?\n\020canonical_target\030\002 \001(\0132%.google.clo" + + "ud.dataform.v1beta1.Target\022\021\n\tfile_path\030" + + "\003 \001(\t\022S\n\010relation\030\004 \001(\0132?.google.cloud.d" + + "ataform.v1beta1.CompilationResultAction." + + "RelationH\000\022W\n\noperations\030\005 \001(\0132A.google." + "cloud.dataform.v1beta1.CompilationResult" - + "Action.Relation.RelationType\022\024\n\014select_q" - + "uery\030\006 \001(\t\022\026\n\016pre_operations\030\007 \003(\t\022\027\n\017po" - + "st_operations\030\010 \003(\t\022x\n\030incremental_table" - + "_config\030\t \001(\0132V.google.cloud.dataform.v1" - + "beta1.CompilationResultAction.Relation.I" - + "ncrementalTableConfig\022\034\n\024partition_expre" - + "ssion\030\n \001(\t\022\033\n\023cluster_expressions\030\013 \003(\t" - + "\022!\n\031partition_expiration_days\030\014 \001(\005\022 \n\030r" - + "equire_partition_filter\030\r \001(\010\022r\n\022additio" - + "nal_options\030\016 \003(\0132V.google.cloud.datafor" - + "m.v1beta1.CompilationResultAction.Relati" - + "on.AdditionalOptionsEntry\032\330\001\n\026Incrementa" - + "lTableConfig\022 \n\030incremental_select_query" - + "\030\001 \001(\t\022\030\n\020refresh_disabled\030\002 \001(\010\022\030\n\020uniq" - + "ue_key_parts\030\003 \003(\t\022\037\n\027update_partition_f" - + "ilter\030\004 \001(\t\022\"\n\032incremental_pre_operation" - + "s\030\005 \003(\t\022#\n\033incremental_post_operations\030\006" - + " \003(\t\0328\n\026AdditionalOptionsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"p\n\014RelationType\022\035" - + "\n\031RELATION_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\001" - + "\022\010\n\004VIEW\020\002\022\025\n\021INCREMENTAL_TABLE\020\003\022\025\n\021MAT" - + "ERIALIZED_VIEW\020\004\032\344\001\n\nOperations\022A\n\022depen" - + "dency_targets\030\001 \003(\0132%.google.cloud.dataf" - + "orm.v1beta1.Target\022\020\n\010disabled\030\002 \001(\010\022\014\n\004" - + "tags\030\003 \003(\t\022N\n\023relation_descriptor\030\006 \001(\0132" - + "1.google.cloud.dataform.v1beta1.Relation" - + "Descriptor\022\017\n\007queries\030\004 \003(\t\022\022\n\nhas_outpu" - + "t\030\005 \001(\010\032\222\002\n\tAssertion\022A\n\022dependency_targ" - + "ets\030\001 \003(\0132%.google.cloud.dataform.v1beta" - + "1.Target\022<\n\rparent_action\030\005 \001(\0132%.google" - + ".cloud.dataform.v1beta1.Target\022\020\n\010disabl" - + "ed\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022\024\n\014select_query\030\004" - + " \001(\t\022N\n\023relation_descriptor\030\006 \001(\01321.goog" - + "le.cloud.dataform.v1beta1.RelationDescri" - + "ptor\032]\n\013Declaration\022N\n\023relation_descript" - + "or\030\001 \001(\01321.google.cloud.dataform.v1beta1" - + ".RelationDescriptorB\021\n\017compiled_object\"\261" - + "\001\n$QueryCompilationResultActionsRequest\022" - + "@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)dataform.googlea" - + "pis.com/CompilationResult\022\027\n\tpage_size\030\002" - + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006" - + "filter\030\004 \001(\tB\004\342A\001\001\"\234\001\n%QueryCompilationR" - + "esultActionsResponse\022Z\n\032compilation_resu" - + "lt_actions\030\001 \003(\01326.google.cloud.dataform" - + ".v1beta1.CompilationResultAction\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\370\006\n\022WorkflowInvocation" - + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022N\n\022compilation_resu" - + "lt\030\002 \001(\tB2\342A\001\005\372A+\n)dataform.googleapis.c" - + "om/CompilationResult\022c\n\021invocation_confi" - + "g\030\003 \001(\0132B.google.cloud.dataform.v1beta1." - + "WorkflowInvocation.InvocationConfigB\004\342A\001" - + "\005\022L\n\005state\030\004 \001(\01627.google.cloud.dataform" - + ".v1beta1.WorkflowInvocation.StateB\004\342A\001\003\022" - + "6\n\021invocation_timing\030\005 \001(\0132\025.google.type" - + ".IntervalB\004\342A\001\003\032\214\002\n\020InvocationConfig\022E\n\020" - + "included_targets\030\001 \003(\0132%.google.cloud.da" - + "taform.v1beta1.TargetB\004\342A\001\005\022\033\n\rincluded_" - + "tags\030\002 \003(\tB\004\342A\001\005\022.\n transitive_dependenc" - + "ies_included\030\003 \001(\010B\004\342A\001\005\022,\n\036transitive_d" - + "ependents_included\030\004 \001(\010B\004\342A\001\005\0226\n(fully_" - + "refresh_incremental_tables_enabled\030\005 \001(\010" - + "B\004\342A\001\005\"d\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013" - + "\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\r\n\tCANCELLED\020" - + "\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELING\020\005:\235\001\352A\231\001\n*dat" - + "aform.googleapis.com/WorkflowInvocation\022" - + "kprojects/{project}/locations/{location}" - + "/repositories/{repository}/workflowInvoc" - + "ations/{workflow_invocation}\"\220\001\n\036ListWor" - + "kflowInvocationsRequest\022;\n\006parent\030\001 \001(\tB" - + "+\342A\001\002\372A$\n\"dataform.googleapis.com/Reposi" - + "tory\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_to" - + "ken\030\003 \001(\tB\004\342A\001\001\"\240\001\n\037ListWorkflowInvocati" - + "onsResponse\022O\n\024workflow_invocations\030\001 \003(" - + "\01321.google.cloud.dataform.v1beta1.Workfl" - + "owInvocation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"a\n\034GetWorkflowInvocat" - + "ionRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*dataf" - + "orm.googleapis.com/WorkflowInvocation\"\264\001" - + "\n\037CreateWorkflowInvocationRequest\022;\n\006par" - + "ent\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.googleapis." - + "com/Repository\022T\n\023workflow_invocation\030\002 " - + "\001(\01321.google.cloud.dataform.v1beta1.Work" - + "flowInvocationB\004\342A\001\002\"d\n\037DeleteWorkflowIn" - + "vocationRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*" - + "dataform.googleapis.com/WorkflowInvocati" - + "on\"d\n\037CancelWorkflowInvocationRequest\022A\n" - + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n*dataform.googleapi" - + "s.com/WorkflowInvocation\"\303\004\n\030WorkflowInv" - + "ocationAction\022;\n\006target\030\001 \001(\0132%.google.c" - + "loud.dataform.v1beta1.TargetB\004\342A\001\003\022E\n\020ca" - + "nonical_target\030\002 \001(\0132%.google.cloud.data" - + "form.v1beta1.TargetB\004\342A\001\003\022R\n\005state\030\004 \001(\016" - + "2=.google.cloud.dataform.v1beta1.Workflo" - + "wInvocationAction.StateB\004\342A\001\003\022\034\n\016failure" - + "_reason\030\007 \001(\tB\004\342A\001\003\0226\n\021invocation_timing" - + "\030\005 \001(\0132\025.google.type.IntervalB\004\342A\001\003\022e\n\017b" - + "igquery_action\030\006 \001(\0132F.google.cloud.data" - + "form.v1beta1.WorkflowInvocationAction.Bi" - + "gQueryActionB\004\342A\001\003\032*\n\016BigQueryAction\022\030\n\n" - + "sql_script\030\001 \001(\tB\004\342A\001\003\"f\n\005State\022\013\n\007PENDI" - + "NG\020\000\022\013\n\007RUNNING\020\001\022\013\n\007SKIPPED\020\002\022\014\n\010DISABL" - + "ED\020\003\022\r\n\tSUCCEEDED\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006FA" - + "ILED\020\006\"\235\001\n%QueryWorkflowInvocationAction" - + "sRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*datafor" - + "m.googleapis.com/WorkflowInvocation\022\027\n\tp" - + "age_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\t" - + "B\004\342A\001\001\"\237\001\n&QueryWorkflowInvocationAction" - + "sResponse\022\\\n\033workflow_invocation_actions" - + "\030\001 \003(\01327.google.cloud.dataform.v1beta1.W" - + "orkflowInvocationAction\022\027\n\017next_page_tok" - + "en\030\002 \001(\t2\313>\n\010Dataform\022\313\001\n\020ListRepositori" - + "es\0226.google.cloud.dataform.v1beta1.ListR" - + "epositoriesRequest\0327.google.cloud.datafo" - + "rm.v1beta1.ListRepositoriesResponse\"F\332A\006" - + "parent\202\323\344\223\0027\0225/v1beta1/{parent=projects/" - + "*/locations/*}/repositories\022\265\001\n\rGetRepos" - + "itory\0223.google.cloud.dataform.v1beta1.Ge" - + "tRepositoryRequest\032).google.cloud.datafo" - + "rm.v1beta1.Repository\"D\332A\004name\202\323\344\223\0027\0225/v" - + "1beta1/{name=projects/*/locations/*/repo" - + "sitories/*}\022\342\001\n\020CreateRepository\0226.googl" - + "e.cloud.dataform.v1beta1.CreateRepositor" - + "yRequest\032).google.cloud.dataform.v1beta1" - + ".Repository\"k\332A\037parent,repository,reposi" - + "tory_id\202\323\344\223\002C\"5/v1beta1/{parent=projects" - + "/*/locations/*}/repositories:\nrepository" - + "\022\344\001\n\020UpdateRepository\0226.google.cloud.dat" - + "aform.v1beta1.UpdateRepositoryRequest\032)." - + "google.cloud.dataform.v1beta1.Repository" - + "\"m\332A\026repository,update_mask\202\323\344\223\002N2@/v1be" - + "ta1/{repository.name=projects/*/location" - + "s/*/repositories/*}:\nrepository\022\250\001\n\020Dele" - + "teRepository\0226.google.cloud.dataform.v1b" - + "eta1.DeleteRepositoryRequest\032\026.google.pr" - + "otobuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta1/{n" - + "ame=projects/*/locations/*/repositories/" - + "*}\022\337\001\n\023FetchRemoteBranches\0229.google.clou" - + "d.dataform.v1beta1.FetchRemoteBranchesRe" - + "quest\032:.google.cloud.dataform.v1beta1.Fe" - + "tchRemoteBranchesResponse\"Q\202\323\344\223\002K\022I/v1be" + + "Action.OperationsH\000\022U\n\tassertion\030\006 \001(\0132@" + + ".google.cloud.dataform.v1beta1.Compilati" + + "onResultAction.AssertionH\000\022Y\n\013declaratio" + + "n\030\007 \001(\0132B.google.cloud.dataform.v1beta1." + + "CompilationResultAction.DeclarationH\000\032\336\010" + + "\n\010Relation\022A\n\022dependency_targets\030\001 \003(\0132%" + + ".google.cloud.dataform.v1beta1.Target\022\020\n" + + "\010disabled\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022N\n\023relatio" + + "n_descriptor\030\004 \001(\01321.google.cloud.datafo" + + "rm.v1beta1.RelationDescriptor\022c\n\rrelatio" + + "n_type\030\005 \001(\0162L.google.cloud.dataform.v1b" + + "eta1.CompilationResultAction.Relation.Re" + + "lationType\022\024\n\014select_query\030\006 \001(\t\022\026\n\016pre_" + + "operations\030\007 \003(\t\022\027\n\017post_operations\030\010 \003(" + + "\t\022x\n\030incremental_table_config\030\t \001(\0132V.go" + + "ogle.cloud.dataform.v1beta1.CompilationR" + + "esultAction.Relation.IncrementalTableCon" + + "fig\022\034\n\024partition_expression\030\n \001(\t\022\033\n\023clu" + + "ster_expressions\030\013 \003(\t\022!\n\031partition_expi" + + "ration_days\030\014 \001(\005\022 \n\030require_partition_f" + + "ilter\030\r \001(\010\022r\n\022additional_options\030\016 \003(\0132" + + "V.google.cloud.dataform.v1beta1.Compilat" + + "ionResultAction.Relation.AdditionalOptio" + + "nsEntry\032\330\001\n\026IncrementalTableConfig\022 \n\030in" + + "cremental_select_query\030\001 \001(\t\022\030\n\020refresh_" + + "disabled\030\002 \001(\010\022\030\n\020unique_key_parts\030\003 \003(\t" + + "\022\037\n\027update_partition_filter\030\004 \001(\t\022\"\n\032inc" + + "remental_pre_operations\030\005 \003(\t\022#\n\033increme" + + "ntal_post_operations\030\006 \003(\t\0328\n\026Additional" + + "OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"p\n\014RelationType\022\035\n\031RELATION_TYPE_UN" + + "SPECIFIED\020\000\022\t\n\005TABLE\020\001\022\010\n\004VIEW\020\002\022\025\n\021INCR" + + "EMENTAL_TABLE\020\003\022\025\n\021MATERIALIZED_VIEW\020\004\032\344" + + "\001\n\nOperations\022A\n\022dependency_targets\030\001 \003(" + + "\0132%.google.cloud.dataform.v1beta1.Target" + + "\022\020\n\010disabled\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022N\n\023rela" + + "tion_descriptor\030\006 \001(\01321.google.cloud.dat" + + "aform.v1beta1.RelationDescriptor\022\017\n\007quer" + + "ies\030\004 \003(\t\022\022\n\nhas_output\030\005 \001(\010\032\222\002\n\tAssert" + + "ion\022A\n\022dependency_targets\030\001 \003(\0132%.google" + + ".cloud.dataform.v1beta1.Target\022<\n\rparent" + + "_action\030\005 \001(\0132%.google.cloud.dataform.v1" + + "beta1.Target\022\020\n\010disabled\030\002 \001(\010\022\014\n\004tags\030\003" + + " \003(\t\022\024\n\014select_query\030\004 \001(\t\022N\n\023relation_d" + + "escriptor\030\006 \001(\01321.google.cloud.dataform." + + "v1beta1.RelationDescriptor\032]\n\013Declaratio" + + "n\022N\n\023relation_descriptor\030\001 \001(\01321.google." + + "cloud.dataform.v1beta1.RelationDescripto" + + "rB\021\n\017compiled_object\"\261\001\n$QueryCompilatio" + + "nResultActionsRequest\022@\n\004name\030\001 \001(\tB2\342A\001" + + "\002\372A+\n)dataform.googleapis.com/Compilatio" + + "nResult\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\"\234\001\n%QueryCompilationResultActionsRespon" + + "se\022Z\n\032compilation_result_actions\030\001 \003(\01326" + + ".google.cloud.dataform.v1beta1.Compilati" + + "onResultAction\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\331\005\n\016WorkflowConfig\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022F" + + "\n\016release_config\030\002 \001(\tB.\342A\001\002\372A\'\n%datafor" + + "m.googleapis.com/ReleaseConfig\022P\n\021invoca" + + "tion_config\030\003 \001(\0132/.google.cloud.datafor" + + "m.v1beta1.InvocationConfigB\004\342A\001\001\022\033\n\rcron" + + "_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n\ttime_zone\030\007 \001(\t" + + "B\004\342A\001\001\022x\n\"recent_scheduled_execution_rec" + + "ords\030\005 \003(\0132F.google.cloud.dataform.v1bet" + + "a1.WorkflowConfig.ScheduledExecutionReco" + + "rdB\004\342A\001\003\032\324\001\n\030ScheduledExecutionRecord\0222\n" + + "\016execution_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\022N\n\023workflow_invocation\030\002 \001(\tB/" + + "\372A,\n*dataform.googleapis.com/WorkflowInv" + + "ocationH\000\022*\n\014error_status\030\003 \001(\0132\022.google" + + ".rpc.StatusH\000B\010\n\006result:\221\001\352A\215\001\n&dataform" + + ".googleapis.com/WorkflowConfig\022cprojects" + + "/{project}/locations/{location}/reposito" + + "ries/{repository}/workflowConfigs/{workf" + + "low_config}\"\253\002\n\020InvocationConfig\022E\n\020incl" + + "uded_targets\030\001 \003(\0132%.google.cloud.datafo" + + "rm.v1beta1.TargetB\004\342A\001\001\022\033\n\rincluded_tags" + + "\030\002 \003(\tB\004\342A\001\001\022.\n transitive_dependencies_", + "included\030\003 \001(\010B\004\342A\001\001\022,\n\036transitive_depen" + + "dents_included\030\004 \001(\010B\004\342A\001\001\0226\n(fully_refr" + + "esh_incremental_tables_enabled\030\005 \001(\010B\004\342A" + + "\001\001\022\035\n\017service_account\030\006 \001(\tB\004\342A\001\001\"\214\001\n\032Li" + + "stWorkflowConfigsRequest\022;\n\006parent\030\001 \001(\t" + + "B+\342A\001\002\372A$\n\"dataform.googleapis.com/Repos" + + "itory\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_t" + + "oken\030\003 \001(\tB\004\342A\001\001\"\224\001\n\033ListWorkflowConfigs" + + "Response\022G\n\020workflow_configs\030\001 \003(\0132-.goo" + + "gle.cloud.dataform.v1beta1.WorkflowConfi" + + "g\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"Y\n\030GetWorkflowConfigRequest\022=\n\004n" + + "ame\030\001 \001(\tB/\342A\001\002\372A(\n&dataform.googleapis." + + "com/WorkflowConfig\"\312\001\n\033CreateWorkflowCon" + + "figRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"dat" + + "aform.googleapis.com/Repository\022L\n\017workf" + + "low_config\030\002 \001(\0132-.google.cloud.dataform" + + ".v1beta1.WorkflowConfigB\004\342A\001\002\022 \n\022workflo" + + "w_config_id\030\003 \001(\tB\004\342A\001\002\"\242\001\n\033UpdateWorkfl" + + "owConfigRequest\0225\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\001\022L\n\017workfl" + + "ow_config\030\002 \001(\0132-.google.cloud.dataform." + + "v1beta1.WorkflowConfigB\004\342A\001\002\"\\\n\033DeleteWo" + + "rkflowConfigRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372" + + "A(\n&dataform.googleapis.com/WorkflowConf" + + "ig\"\272\005\n\022WorkflowInvocation\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\022P\n\022compilation_result\030\002 \001(\tB2\342A\001\005\372" + + "A+\n)dataform.googleapis.com/CompilationR" + + "esultH\000\022J\n\017workflow_config\030\006 \001(\tB/\342A\001\005\372A" + + "(\n&dataform.googleapis.com/WorkflowConfi" + + "gH\000\022P\n\021invocation_config\030\003 \001(\0132/.google." + + "cloud.dataform.v1beta1.InvocationConfigB" + + "\004\342A\001\005\022L\n\005state\030\004 \001(\01627.google.cloud.data" + + "form.v1beta1.WorkflowInvocation.StateB\004\342" + + "A\001\003\0226\n\021invocation_timing\030\005 \001(\0132\025.google." + + "type.IntervalB\004\342A\001\003\"d\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022" + + "\r\n\tCANCELLED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELING\020" + + "\005:\235\001\352A\231\001\n*dataform.googleapis.com/Workfl" + + "owInvocation\022kprojects/{project}/locatio" + + "ns/{location}/repositories/{repository}/" + + "workflowInvocations/{workflow_invocation" + + "}B\024\n\022compilation_source\"\276\001\n\036ListWorkflow" + + "InvocationsRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002" + + "\372A$\n\"dataform.googleapis.com/Repository\022" + + "\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003" + + " \001(\tB\004\342A\001\001\022\026\n\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n\006fi" + + "lter\030\005 \001(\tB\004\342A\001\001\"\240\001\n\037ListWorkflowInvocat" + + "ionsResponse\022O\n\024workflow_invocations\030\001 \003" + + "(\01321.google.cloud.dataform.v1beta1.Workf" + + "lowInvocation\022\027\n\017next_page_token\030\002 \001(\t\022\023" + + "\n\013unreachable\030\003 \003(\t\"a\n\034GetWorkflowInvoca" + + "tionRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*data" + + "form.googleapis.com/WorkflowInvocation\"\264" + + "\001\n\037CreateWorkflowInvocationRequest\022;\n\006pa" + + "rent\030\001 \001(\tB+\342A\001\002\372A$\n\"dataform.googleapis" + + ".com/Repository\022T\n\023workflow_invocation\030\002" + + " \001(\01321.google.cloud.dataform.v1beta1.Wor" + + "kflowInvocationB\004\342A\001\002\"d\n\037DeleteWorkflowI" + + "nvocationRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*dataform.googleapis.com/WorkflowInvocat" + + "ion\"d\n\037CancelWorkflowInvocationRequest\022A" + + "\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*dataform.googleap" + + "is.com/WorkflowInvocation\"\303\004\n\030WorkflowIn" + + "vocationAction\022;\n\006target\030\001 \001(\0132%.google." + + "cloud.dataform.v1beta1.TargetB\004\342A\001\003\022E\n\020c" + + "anonical_target\030\002 \001(\0132%.google.cloud.dat" + + "aform.v1beta1.TargetB\004\342A\001\003\022R\n\005state\030\004 \001(" + + "\0162=.google.cloud.dataform.v1beta1.Workfl" + + "owInvocationAction.StateB\004\342A\001\003\022\034\n\016failur" + + "e_reason\030\007 \001(\tB\004\342A\001\003\0226\n\021invocation_timin" + + "g\030\005 \001(\0132\025.google.type.IntervalB\004\342A\001\003\022e\n\017" + + "bigquery_action\030\006 \001(\0132F.google.cloud.dat" + + "aform.v1beta1.WorkflowInvocationAction.B" + + "igQueryActionB\004\342A\001\003\032*\n\016BigQueryAction\022\030\n" + + "\nsql_script\030\001 \001(\tB\004\342A\001\003\"f\n\005State\022\013\n\007PEND" + + "ING\020\000\022\013\n\007RUNNING\020\001\022\013\n\007SKIPPED\020\002\022\014\n\010DISAB" + + "LED\020\003\022\r\n\tSUCCEEDED\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006F" + + "AILED\020\006\"\235\001\n%QueryWorkflowInvocationActio" + + "nsRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*datafo" + + "rm.googleapis.com/WorkflowInvocation\022\027\n\t" + + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + + "\tB\004\342A\001\001\"\237\001\n&QueryWorkflowInvocationActio" + + "nsResponse\022\\\n\033workflow_invocation_action" + + "s\030\001 \003(\01327.google.cloud.dataform.v1beta1." + + "WorkflowInvocationAction\022\027\n\017next_page_to" + + "ken\030\002 \001(\t2\236Z\n\010Dataform\022\313\001\n\020ListRepositor" + + "ies\0226.google.cloud.dataform.v1beta1.List" + + "RepositoriesRequest\0327.google.cloud.dataf" + + "orm.v1beta1.ListRepositoriesResponse\"F\332A" + + "\006parent\202\323\344\223\0027\0225/v1beta1/{parent=projects" + + "/*/locations/*}/repositories\022\265\001\n\rGetRepo" + + "sitory\0223.google.cloud.dataform.v1beta1.G" + + "etRepositoryRequest\032).google.cloud.dataf" + + "orm.v1beta1.Repository\"D\332A\004name\202\323\344\223\0027\0225/" + + "v1beta1/{name=projects/*/locations/*/rep" + + "ositories/*}\022\342\001\n\020CreateRepository\0226.goog" + + "le.cloud.dataform.v1beta1.CreateReposito" + + "ryRequest\032).google.cloud.dataform.v1beta" + + "1.Repository\"k\332A\037parent,repository,repos" + + "itory_id\202\323\344\223\002C\"5/v1beta1/{parent=project" + + "s/*/locations/*}/repositories:\nrepositor" + + "y\022\344\001\n\020UpdateRepository\0226.google.cloud.da" + + "taform.v1beta1.UpdateRepositoryRequest\032)" + + ".google.cloud.dataform.v1beta1.Repositor" + + "y\"m\332A\026repository,update_mask\202\323\344\223\002N2@/v1b" + + "eta1/{repository.name=projects/*/locatio" + + "ns/*/repositories/*}:\nrepository\022\250\001\n\020Del" + + "eteRepository\0226.google.cloud.dataform.v1" + + "beta1.DeleteRepositoryRequest\032\026.google.p" + + "rotobuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta1/{" + + "name=projects/*/locations/*/repositories" + + "/*}\022\271\001\n\027CommitRepositoryChanges\022=.google" + + ".cloud.dataform.v1beta1.CommitRepository" + + "ChangesRequest\032\026.google.protobuf.Empty\"G" + + "\202\323\344\223\002A\"/v1beta1/{name=proj" + + "ects/*/locations/*/repositories/*}:readF" + + "ile\022\211\002\n QueryRepositoryDirectoryContents" + + "\022F.google.cloud.dataform.v1beta1.QueryRe" + + "positoryDirectoryContentsRequest\032G.googl" + + "e.cloud.dataform.v1beta1.QueryRepository" + + "DirectoryContentsResponse\"T\202\323\344\223\002N\022L/v1be" + "ta1/{name=projects/*/locations/*/reposit" - + "ories/*}:fetchRemoteBranches\022\322\001\n\016ListWor" - + "kspaces\0224.google.cloud.dataform.v1beta1." - + "ListWorkspacesRequest\0325.google.cloud.dat" - + "aform.v1beta1.ListWorkspacesResponse\"S\332A" - + "\006parent\202\323\344\223\002D\022B/v1beta1/{parent=projects" - + "/*/locations/*/repositories/*}/workspace" - + "s\022\277\001\n\014GetWorkspace\0222.google.cloud.datafo" - + "rm.v1beta1.GetWorkspaceRequest\032(.google." - + "cloud.dataform.v1beta1.Workspace\"Q\332A\004nam" - + "e\202\323\344\223\002D\022B/v1beta1/{name=projects/*/locat" - + "ions/*/repositories/*/workspaces/*}\022\351\001\n\017" - + "CreateWorkspace\0225.google.cloud.dataform." - + "v1beta1.CreateWorkspaceRequest\032(.google." - + "cloud.dataform.v1beta1.Workspace\"u\332A\035par" - + "ent,workspace,workspace_id\202\323\344\223\002O\"B/v1bet" - + "a1/{parent=projects/*/locations/*/reposi" - + "tories/*}/workspaces:\tworkspace\022\263\001\n\017Dele" - + "teWorkspace\0225.google.cloud.dataform.v1be" - + "ta1.DeleteWorkspaceRequest\032\026.google.prot" - + "obuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1beta1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "workspaces/*}\022\360\001\n\022InstallNpmPackages\0228.g" - + "oogle.cloud.dataform.v1beta1.InstallNpmP" - + "ackagesRequest\0329.google.cloud.dataform.v" - + "1beta1.InstallNpmPackagesResponse\"e\202\323\344\223\002" - + "_\"Z/v1beta1/{workspace=projects/*/locati" - + "ons/*/repositories/*/workspaces/*}:insta" - + "llNpmPackages:\001*\022\262\001\n\016PullGitCommits\0224.go" - + "ogle.cloud.dataform.v1beta1.PullGitCommi" - + "tsRequest\032\026.google.protobuf.Empty\"R\202\323\344\223\002" - + "L\"G/v1beta1/{name=projects/*/locations/*" - + "/repositories/*/workspaces/*}:pull:\001*\022\262\001" - + "\n\016PushGitCommits\0224.google.cloud.dataform" - + ".v1beta1.PushGitCommitsRequest\032\026.google." - + "protobuf.Empty\"R\202\323\344\223\002L\"G/v1beta1/{name=p" - + "rojects/*/locations/*/repositories/*/wor" - + "kspaces/*}:push:\001*\022\360\001\n\024FetchFileGitStatu" - + "ses\022:.google.cloud.dataform.v1beta1.Fetc" - + "hFileGitStatusesRequest\032;.google.cloud.d" - + "ataform.v1beta1.FetchFileGitStatusesResp" - + "onse\"_\202\323\344\223\002Y\022W/v1beta1/{name=projects/*/" - + "locations/*/repositories/*/workspaces/*}" - + ":fetchFileGitStatuses\022\354\001\n\023FetchGitAheadB" - + "ehind\0229.google.cloud.dataform.v1beta1.Fe" - + "tchGitAheadBehindRequest\032:.google.cloud.", - "dataform.v1beta1.FetchGitAheadBehindResp" - + "onse\"^\202\323\344\223\002X\022V/v1beta1/{name=projects/*/" - + "locations/*/repositories/*/workspaces/*}" - + ":fetchGitAheadBehind\022\304\001\n\026CommitWorkspace" - + "Changes\022<.google.cloud.dataform.v1beta1." - + "CommitWorkspaceChangesRequest\032\026.google.p" - + "rotobuf.Empty\"T\202\323\344\223\002N\"I/v1beta1/{name=pr" - + "ojects/*/locations/*/repositories/*/work" - + "spaces/*}:commit:\001*\022\301\001\n\025ResetWorkspaceCh" - + "anges\022;.google.cloud.dataform.v1beta1.Re" - + "setWorkspaceChangesRequest\032\026.google.prot" - + "obuf.Empty\"S\202\323\344\223\002M\"H/v1beta1/{name=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}:reset:\001*\022\331\001\n\rFetchFileDiff\0223.goog" - + "le.cloud.dataform.v1beta1.FetchFileDiffR" - + "equest\0324.google.cloud.dataform.v1beta1.F" - + "etchFileDiffResponse\"]\202\323\344\223\002W\022U/v1beta1/{" - + "workspace=projects/*/locations/*/reposit" - + "ories/*/workspaces/*}:fetchFileDiff\022\375\001\n\026" - + "QueryDirectoryContents\022<.google.cloud.da" - + "taform.v1beta1.QueryDirectoryContentsReq" - + "uest\032=.google.cloud.dataform.v1beta1.Que" - + "ryDirectoryContentsResponse\"f\202\323\344\223\002`\022^/v1" - + "beta1/{workspace=projects/*/locations/*/" - + "repositories/*/workspaces/*}:queryDirect" - + "oryContents\022\334\001\n\rMakeDirectory\0223.google.c" - + "loud.dataform.v1beta1.MakeDirectoryReque" - + "st\0324.google.cloud.dataform.v1beta1.MakeD" - + "irectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{work" - + "space=projects/*/locations/*/repositorie" - + "s/*/workspaces/*}:makeDirectory:\001*\022\304\001\n\017R" - + "emoveDirectory\0225.google.cloud.dataform.v" - + "1beta1.RemoveDirectoryRequest\032\026.google.p" - + "rotobuf.Empty\"b\202\323\344\223\002\\\"W/v1beta1/{workspa" - + "ce=projects/*/locations/*/repositories/*" - + "/workspaces/*}:removeDirectory:\001*\022\334\001\n\rMo" - + "veDirectory\0223.google.cloud.dataform.v1be" - + "ta1.MoveDirectoryRequest\0324.google.cloud." - + "dataform.v1beta1.MoveDirectoryResponse\"`" - + "\202\323\344\223\002Z\"U/v1beta1/{workspace=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:" - + "moveDirectory:\001*\022\305\001\n\010ReadFile\022..google.c" - + "loud.dataform.v1beta1.ReadFileRequest\032/." - + "google.cloud.dataform.v1beta1.ReadFileRe" - + "sponse\"X\202\323\344\223\002R\022P/v1beta1/{workspace=proj" + + "ories/*}:queryDirectoryContents\022\341\001\n\026Fetc" + + "hRepositoryHistory\022<.google.cloud.datafo" + + "rm.v1beta1.FetchRepositoryHistoryRequest" + + "\032=.google.cloud.dataform.v1beta1.FetchRe" + + "positoryHistoryResponse\"J\202\323\344\223\002D\022B/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*}:fetchHistory\022\221\002\n\"ComputeRepositor" + + "yAccessTokenStatus\022H.google.cloud.datafo" + + "rm.v1beta1.ComputeRepositoryAccessTokenS" + + "tatusRequest\032I.google.cloud.dataform.v1b" + + "eta1.ComputeRepositoryAccessTokenStatusR" + + "esponse\"V\202\323\344\223\002P\022N/v1beta1/{name=projects" + + "/*/locations/*/repositories/*}:computeAc" + + "cessTokenStatus\022\337\001\n\023FetchRemoteBranches\022" + + "9.google.cloud.dataform.v1beta1.FetchRem" + + "oteBranchesRequest\032:.google.cloud.datafo" + + "rm.v1beta1.FetchRemoteBranchesResponse\"Q" + + "\202\323\344\223\002K\022I/v1beta1/{name=projects/*/locati" + + "ons/*/repositories/*}:fetchRemoteBranche" + + "s\022\322\001\n\016ListWorkspaces\0224.google.cloud.data" + + "form.v1beta1.ListWorkspacesRequest\0325.goo" + + "gle.cloud.dataform.v1beta1.ListWorkspace" + + "sResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1beta1/{pa" + + "rent=projects/*/locations/*/repositories" + + "/*}/workspaces\022\277\001\n\014GetWorkspace\0222.google" + + ".cloud.dataform.v1beta1.GetWorkspaceRequ" + + "est\032(.google.cloud.dataform.v1beta1.Work" + + "space\"Q\332A\004name\202\323\344\223\002D\022B/v1beta1/{name=pro" + + "jects/*/locations/*/repositories/*/works" + + "paces/*}\022\351\001\n\017CreateWorkspace\0225.google.cl" + + "oud.dataform.v1beta1.CreateWorkspaceRequ" + + "est\032(.google.cloud.dataform.v1beta1.Work" + + "space\"u\332A\035parent,workspace,workspace_id\202" + + "\323\344\223\002O\"B/v1beta1/{parent=projects/*/locat" + + "ions/*/repositories/*}/workspaces:\tworks" + + "pace\022\263\001\n\017DeleteWorkspace\0225.google.cloud." + + "dataform.v1beta1.DeleteWorkspaceRequest\032" + + "\026.google.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B" + + "/v1beta1/{name=projects/*/locations/*/re" + + "positories/*/workspaces/*}\022\360\001\n\022InstallNp" + + "mPackages\0228.google.cloud.dataform.v1beta" + + "1.InstallNpmPackagesRequest\0329.google.clo" + + "ud.dataform.v1beta1.InstallNpmPackagesRe" + + "sponse\"e\202\323\344\223\002_\"Z/v1beta1/{workspace=proj" + "ects/*/locations/*/repositories/*/worksp" - + "aces/*}:readFile\022\265\001\n\nRemoveFile\0220.google" - + ".cloud.dataform.v1beta1.RemoveFileReques" - + "t\032\026.google.protobuf.Empty\"]\202\323\344\223\002W\"R/v1be" - + "ta1/{workspace=projects/*/locations/*/re" - + "positories/*/workspaces/*}:removeFile:\001*" - + "\022\310\001\n\010MoveFile\022..google.cloud.dataform.v1" - + "beta1.MoveFileRequest\032/.google.cloud.dat" - + "aform.v1beta1.MoveFileResponse\"[\202\323\344\223\002U\"P" - + "/v1beta1/{workspace=projects/*/locations" - + "/*/repositories/*/workspaces/*}:moveFile" - + ":\001*\022\314\001\n\tWriteFile\022/.google.cloud.datafor" - + "m.v1beta1.WriteFileRequest\0320.google.clou" - + "d.dataform.v1beta1.WriteFileResponse\"\\\202\323" - + "\344\223\002V\"Q/v1beta1/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:wr" - + "iteFile:\001*\022\362\001\n\026ListCompilationResults\022<." - + "google.cloud.dataform.v1beta1.ListCompil" - + "ationResultsRequest\032=.google.cloud.dataf" - + "orm.v1beta1.ListCompilationResultsRespon" - + "se\"[\332A\006parent\202\323\344\223\002L\022J/v1beta1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/com" - + "pilationResults\022\337\001\n\024GetCompilationResult" - + "\022:.google.cloud.dataform.v1beta1.GetComp" - + "ilationResultRequest\0320.google.cloud.data" - + "form.v1beta1.CompilationResult\"Y\332A\004name\202" - + "\323\344\223\002L\022J/v1beta1/{name=projects/*/locatio" - + "ns/*/repositories/*/compilationResults/*" - + "}\022\217\002\n\027CreateCompilationResult\022=.google.c" - + "loud.dataform.v1beta1.CreateCompilationR" - + "esultRequest\0320.google.cloud.dataform.v1b" - + "eta1.CompilationResult\"\202\001\332A\031parent,compi" - + "lation_result\202\323\344\223\002`\"J/v1beta1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/com" - + "pilationResults:\022compilation_result\022\204\002\n\035" - + "QueryCompilationResultActions\022C.google.c" - + "loud.dataform.v1beta1.QueryCompilationRe" - + "sultActionsRequest\032D.google.cloud.datafo" - + "rm.v1beta1.QueryCompilationResultActions" - + "Response\"X\202\323\344\223\002R\022P/v1beta1/{name=project" - + "s/*/locations/*/repositories/*/compilati" - + "onResults/*}:query\022\366\001\n\027ListWorkflowInvoc" - + "ations\022=.google.cloud.dataform.v1beta1.L" - + "istWorkflowInvocationsRequest\032>.google.c" - + "loud.dataform.v1beta1.ListWorkflowInvoca" - + "tionsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1beta1" - + "/{parent=projects/*/locations/*/reposito" - + "ries/*}/workflowInvocations\022\343\001\n\025GetWorkf" - + "lowInvocation\022;.google.cloud.dataform.v1" - + "beta1.GetWorkflowInvocationRequest\0321.goo" - + "gle.cloud.dataform.v1beta1.WorkflowInvoc" - + "ation\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1/{name=pro" - + "jects/*/locations/*/repositories/*/workf" - + "lowInvocations/*}\022\225\002\n\030CreateWorkflowInvo" - + "cation\022>.google.cloud.dataform.v1beta1.C" - + "reateWorkflowInvocationRequest\0321.google." - + "cloud.dataform.v1beta1.WorkflowInvocatio" - + "n\"\205\001\332A\032parent,workflow_invocation\202\323\344\223\002b\"" - + "K/v1beta1/{parent=projects/*/locations/*" - + "/repositories/*}/workflowInvocations:\023wo" - + "rkflow_invocation\022\316\001\n\030DeleteWorkflowInvo" - + "cation\022>.google.cloud.dataform.v1beta1.D" - + "eleteWorkflowInvocationRequest\032\026.google." - + "protobuf.Empty\"Z\332A\004name\202\323\344\223\002M*K/v1beta1/" - + "{name=projects/*/locations/*/repositorie" - + "s/*/workflowInvocations/*}\022\321\001\n\030CancelWor" - + "kflowInvocation\022>.google.cloud.dataform." - + "v1beta1.CancelWorkflowInvocationRequest\032" - + "\026.google.protobuf.Empty\"]\202\323\344\223\002W\"R/v1beta" + + "aces/*}:installNpmPackages:\001*\022\262\001\n\016PullGi" + + "tCommits\0224.google.cloud.dataform.v1beta1" + + ".PullGitCommitsRequest\032\026.google.protobuf" + + ".Empty\"R\202\323\344\223\002L\"G/v1beta1/{name=projects/" + + "*/locations/*/repositories/*/workspaces/" + + "*}:pull:\001*\022\262\001\n\016PushGitCommits\0224.google.c" + + "loud.dataform.v1beta1.PushGitCommitsRequ" + + "est\032\026.google.protobuf.Empty\"R\202\323\344\223\002L\"G/v1" + + "beta1/{name=projects/*/locations/*/repos" + + "itories/*/workspaces/*}:push:\001*\022\360\001\n\024Fetc" + + "hFileGitStatuses\022:.google.cloud.dataform" + + ".v1beta1.FetchFileGitStatusesRequest\032;.g" + + "oogle.cloud.dataform.v1beta1.FetchFileGi" + + "tStatusesResponse\"_\202\323\344\223\002Y\022W/v1beta1/{nam" + + "e=projects/*/locations/*/repositories/*/" + + "workspaces/*}:fetchFileGitStatuses\022\354\001\n\023F" + + "etchGitAheadBehind\0229.google.cloud.datafo" + + "rm.v1beta1.FetchGitAheadBehindRequest\032:." + + "google.cloud.dataform.v1beta1.FetchGitAh" + + "eadBehindResponse\"^\202\323\344\223\002X\022V/v1beta1/{nam" + + "e=projects/*/locations/*/repositories/*/" + + "workspaces/*}:fetchGitAheadBehind\022\304\001\n\026Co" + + "mmitWorkspaceChanges\022<.google.cloud.data" + + "form.v1beta1.CommitWorkspaceChangesReque" + + "st\032\026.google.protobuf.Empty\"T\202\323\344\223\002N\"I/v1b" + + "eta1/{name=projects/*/locations/*/reposi" + + "tories/*/workspaces/*}:commit:\001*\022\301\001\n\025Res" + + "etWorkspaceChanges\022;.google.cloud.datafo" + + "rm.v1beta1.ResetWorkspaceChangesRequest\032" + + "\026.google.protobuf.Empty\"S\202\323\344\223\002M\"H/v1beta" + "1/{name=projects/*/locations/*/repositor" - + "ies/*/workflowInvocations/*}:cancel:\001*\022\210" - + "\002\n\036QueryWorkflowInvocationActions\022D.goog" - + "le.cloud.dataform.v1beta1.QueryWorkflowI" - + "nvocationActionsRequest\032E.google.cloud.d" - + "ataform.v1beta1.QueryWorkflowInvocationA" - + "ctionsResponse\"Y\202\323\344\223\002S\022Q/v1beta1/{name=p" + + "ies/*/workspaces/*}:reset:\001*\022\331\001\n\rFetchFi" + + "leDiff\0223.google.cloud.dataform.v1beta1.F" + + "etchFileDiffRequest\0324.google.cloud.dataf" + + "orm.v1beta1.FetchFileDiffResponse\"]\202\323\344\223\002" + + "W\022U/v1beta1/{workspace=projects/*/locati" + + "ons/*/repositories/*/workspaces/*}:fetch" + + "FileDiff\022\375\001\n\026QueryDirectoryContents\022<.go" + + "ogle.cloud.dataform.v1beta1.QueryDirecto" + + "ryContentsRequest\032=.google.cloud.datafor" + + "m.v1beta1.QueryDirectoryContentsResponse" + + "\"f\202\323\344\223\002`\022^/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:queryDirectoryContents\022\334\001\n\rMakeDirecto" + + "ry\0223.google.cloud.dataform.v1beta1.MakeD" + + "irectoryRequest\0324.google.cloud.dataform." + + "v1beta1.MakeDirectoryResponse\"`\202\323\344\223\002Z\"U/" + + "v1beta1/{workspace=projects/*/locations/" + + "*/repositories/*/workspaces/*}:makeDirec" + + "tory:\001*\022\304\001\n\017RemoveDirectory\0225.google.clo" + + "ud.dataform.v1beta1.RemoveDirectoryReque" + + "st\032\026.google.protobuf.Empty\"b\202\323\344\223\002\\\"W/v1b" + + "eta1/{workspace=projects/*/locations/*/r" + + "epositories/*/workspaces/*}:removeDirect" + + "ory:\001*\022\334\001\n\rMoveDirectory\0223.google.cloud." + + "dataform.v1beta1.MoveDirectoryRequest\0324." + + "google.cloud.dataform.v1beta1.MoveDirect" + + "oryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{workspace" + + "=projects/*/locations/*/repositories/*/w" + + "orkspaces/*}:moveDirectory:\001*\022\305\001\n\010ReadFi" + + "le\022..google.cloud.dataform.v1beta1.ReadF" + + "ileRequest\032/.google.cloud.dataform.v1bet" + + "a1.ReadFileResponse\"X\202\323\344\223\002R\022P/v1beta1/{w" + + "orkspace=projects/*/locations/*/reposito" + + "ries/*/workspaces/*}:readFile\022\265\001\n\nRemove" + + "File\0220.google.cloud.dataform.v1beta1.Rem" + + "oveFileRequest\032\026.google.protobuf.Empty\"]" + + "\202\323\344\223\002W\"R/v1beta1/{workspace=projects/*/l" + + "ocations/*/repositories/*/workspaces/*}:" + + "removeFile:\001*\022\310\001\n\010MoveFile\022..google.clou" + + "d.dataform.v1beta1.MoveFileRequest\032/.goo" + + "gle.cloud.dataform.v1beta1.MoveFileRespo" + + "nse\"[\202\323\344\223\002U\"P/v1beta1/{workspace=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:moveFile:\001*\022\314\001\n\tWriteFile\022/.google." + + "cloud.dataform.v1beta1.WriteFileRequest\032" + + "0.google.cloud.dataform.v1beta1.WriteFil" + + "eResponse\"\\\202\323\344\223\002V\"Q/v1beta1/{workspace=p" + "rojects/*/locations/*/repositories/*/wor" - + "kflowInvocations/*}:query\032K\312A\027dataform.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\275\002\n!com.google.cl" - + "oud.dataform.v1beta1B\rDataformProtoP\001Z=c" - + "loud.google.com/go/dataform/apiv1beta1/d" - + "ataformpb;dataformpb\252\002\035Google.Cloud.Data" - + "form.V1Beta1\312\002\035Google\\Cloud\\Dataform\\V1b" - + "eta1\352\002 Google::Cloud::Dataform::V1beta1\352" - + "Ad\n*secretmanager.googleapis.com/SecretV" - + "ersion\0226projects/{project}/secrets/{secr" - + "et}/versions/{version}b\006proto3" + + "kspaces/*}:writeFile:\001*\022\342\001\n\022ListReleaseC" + + "onfigs\0228.google.cloud.dataform.v1beta1.L" + + "istReleaseConfigsRequest\0329.google.cloud." + + "dataform.v1beta1.ListReleaseConfigsRespo" + + "nse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{parent=p" + + "rojects/*/locations/*/repositories/*}/re" + + "leaseConfigs\022\317\001\n\020GetReleaseConfig\0226.goog" + + "le.cloud.dataform.v1beta1.GetReleaseConf" + + "igRequest\032,.google.cloud.dataform.v1beta" + + "1.ReleaseConfig\"U\332A\004name\202\323\344\223\002H\022F/v1beta1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/releaseConfigs/*}\022\211\002\n\023CreateRelease" + + "Config\0229.google.cloud.dataform.v1beta1.C" + + "reateReleaseConfigRequest\032,.google.cloud" + + ".dataform.v1beta1.ReleaseConfig\"\210\001\332A\'par" + + "ent,release_config,release_config_id\202\323\344\223" + + "\002X\"F/v1beta1/{parent=projects/*/location" + + "s/*/repositories/*}/releaseConfigs:\016rele" + + "ase_config\022\213\002\n\023UpdateReleaseConfig\0229.goo" + + "gle.cloud.dataform.v1beta1.UpdateRelease" + + "ConfigRequest\032,.google.cloud.dataform.v1" + + "beta1.ReleaseConfig\"\212\001\332A\032release_config," + + "update_mask\202\323\344\223\002g2U/v1beta1/{release_con" + + "fig.name=projects/*/locations/*/reposito" + + "ries/*/releaseConfigs/*}:\016release_config" + + "\022\277\001\n\023DeleteReleaseConfig\0229.google.cloud." + + "dataform.v1beta1.DeleteReleaseConfigRequ" + + "est\032\026.google.protobuf.Empty\"U\332A\004name\202\323\344\223" + + "\002H*F/v1beta1/{name=projects/*/locations/" + + "*/repositories/*/releaseConfigs/*}\022\362\001\n\026L" + + "istCompilationResults\022<.google.cloud.dat" + + "aform.v1beta1.ListCompilationResultsRequ" + + "est\032=.google.cloud.dataform.v1beta1.List" + + "CompilationResultsResponse\"[\332A\006parent\202\323\344" + + "\223\002L\022J/v1beta1/{parent=projects/*/locatio" + + "ns/*/repositories/*}/compilationResults\022" + + "\337\001\n\024GetCompilationResult\022:.google.cloud." + + "dataform.v1beta1.GetCompilationResultReq" + + "uest\0320.google.cloud.dataform.v1beta1.Com" + + "pilationResult\"Y\332A\004name\202\323\344\223\002L\022J/v1beta1/" + + "{name=projects/*/locations/*/repositorie" + + "s/*/compilationResults/*}\022\217\002\n\027CreateComp" + + "ilationResult\022=.google.cloud.dataform.v1" + + "beta1.CreateCompilationResultRequest\0320.g" + + "oogle.cloud.dataform.v1beta1.Compilation" + + "Result\"\202\001\332A\031parent,compilation_result\202\323\344" + + "\223\002`\"J/v1beta1/{parent=projects/*/locatio" + + "ns/*/repositories/*}/compilationResults:" + + "\022compilation_result\022\204\002\n\035QueryCompilation" + + "ResultActions\022C.google.cloud.dataform.v1" + + "beta1.QueryCompilationResultActionsReque" + + "st\032D.google.cloud.dataform.v1beta1.Query" + + "CompilationResultActionsResponse\"X\202\323\344\223\002R" + + "\022P/v1beta1/{name=projects/*/locations/*/" + + "repositories/*/compilationResults/*}:que" + + "ry\022\346\001\n\023ListWorkflowConfigs\0229.google.clou" + + "d.dataform.v1beta1.ListWorkflowConfigsRe" + + "quest\032:.google.cloud.dataform.v1beta1.Li" + + "stWorkflowConfigsResponse\"X\332A\006parent\202\323\344\223" + + "\002I\022G/v1beta1/{parent=projects/*/location" + + "s/*/repositories/*}/workflowConfigs\022\323\001\n\021" + + "GetWorkflowConfig\0227.google.cloud.datafor" + + "m.v1beta1.GetWorkflowConfigRequest\032-.goo" + + "gle.cloud.dataform.v1beta1.WorkflowConfi" + + "g\"V\332A\004name\202\323\344\223\002I\022G/v1beta1/{name=project" + + "s/*/locations/*/repositories/*/workflowC" + + "onfigs/*}\022\220\002\n\024CreateWorkflowConfig\022:.goo" + + "gle.cloud.dataform.v1beta1.CreateWorkflo" + + "wConfigRequest\032-.google.cloud.dataform.v" + + "1beta1.WorkflowConfig\"\214\001\332A)parent,workfl" + + "ow_config,workflow_config_id\202\323\344\223\002Z\"G/v1b" + + "eta1/{parent=projects/*/locations/*/repo" + + "sitories/*}/workflowConfigs:\017workflow_co" + + "nfig\022\222\002\n\024UpdateWorkflowConfig\022:.google.c" + + "loud.dataform.v1beta1.UpdateWorkflowConf" + + "igRequest\032-.google.cloud.dataform.v1beta" + + "1.WorkflowConfig\"\216\001\332A\033workflow_config,up" + + "date_mask\202\323\344\223\002j2W/v1beta1/{workflow_conf" + + "ig.name=projects/*/locations/*/repositor" + + "ies/*/workflowConfigs/*}:\017workflow_confi" + + "g\022\302\001\n\024DeleteWorkflowConfig\022:.google.clou" + + "d.dataform.v1beta1.DeleteWorkflowConfigR" + + "equest\032\026.google.protobuf.Empty\"V\332A\004name\202" + + "\323\344\223\002I*G/v1beta1/{name=projects/*/locatio" + + "ns/*/repositories/*/workflowConfigs/*}\022\366" + + "\001\n\027ListWorkflowInvocations\022=.google.clou" + + "d.dataform.v1beta1.ListWorkflowInvocatio" + + "nsRequest\032>.google.cloud.dataform.v1beta" + + "1.ListWorkflowInvocationsResponse\"\\\332A\006pa" + + "rent\202\323\344\223\002M\022K/v1beta1/{parent=projects/*/" + + "locations/*/repositories/*}/workflowInvo" + + "cations\022\343\001\n\025GetWorkflowInvocation\022;.goog" + + "le.cloud.dataform.v1beta1.GetWorkflowInv" + + "ocationRequest\0321.google.cloud.dataform.v" + + "1beta1.WorkflowInvocation\"Z\332A\004name\202\323\344\223\002M" + + "\022K/v1beta1/{name=projects/*/locations/*/" + + "repositories/*/workflowInvocations/*}\022\225\002" + + "\n\030CreateWorkflowInvocation\022>.google.clou" + + "d.dataform.v1beta1.CreateWorkflowInvocat" + + "ionRequest\0321.google.cloud.dataform.v1bet" + + "a1.WorkflowInvocation\"\205\001\332A\032parent,workfl" + + "ow_invocation\202\323\344\223\002b\"K/v1beta1/{parent=pr" + + "ojects/*/locations/*/repositories/*}/wor" + + "kflowInvocations:\023workflow_invocation\022\316\001" + + "\n\030DeleteWorkflowInvocation\022>.google.clou" + + "d.dataform.v1beta1.DeleteWorkflowInvocat" + + "ionRequest\032\026.google.protobuf.Empty\"Z\332A\004n" + + "ame\202\323\344\223\002M*K/v1beta1/{name=projects/*/loc" + + "ations/*/repositories/*/workflowInvocati" + + "ons/*}\022\321\001\n\030CancelWorkflowInvocation\022>.go" + + "ogle.cloud.dataform.v1beta1.CancelWorkfl" + + "owInvocationRequest\032\026.google.protobuf.Em" + + "pty\"]\202\323\344\223\002W\"R/v1beta1/{name=projects/*/l" + + "ocations/*/repositories/*/workflowInvoca" + + "tions/*}:cancel:\001*\022\210\002\n\036QueryWorkflowInvo" + + "cationActions\022D.google.cloud.dataform.v1" + + "beta1.QueryWorkflowInvocationActionsRequ" + + "est\032E.google.cloud.dataform.v1beta1.Quer" + + "yWorkflowInvocationActionsResponse\"Y\202\323\344\223" + + "\002S\022Q/v1beta1/{name=projects/*/locations/" + + "*/repositories/*/workflowInvocations/*}:" + + "query\032K\312A\027dataform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\275\002\n!com.google.cloud.dataform.v1beta1" + + "B\rDataformProtoP\001Z=cloud.google.com/go/d" + + "ataform/apiv1beta1/dataformpb;dataformpb" + + "\252\002\035Google.Cloud.Dataform.V1Beta1\312\002\035Googl" + + "e\\Cloud\\Dataform\\V1beta1\352\002 Google::Cloud" + + "::Dataform::V1beta1\352Ad\n*secretmanager.go" + + "ogleapis.com/SecretVersion\0226projects/{pr" + + "oject}/secrets/{secret}/versions/{versio" + + "n}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -892,6 +1279,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), com.google.type.IntervalProto.getDescriptor(), }); internal_static_google_cloud_dataform_v1beta1_Repository_descriptor = @@ -900,7 +1289,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Repository_descriptor, new java.lang.String[] { - "Name", "GitRemoteSettings", + "Name", + "DisplayName", + "GitRemoteSettings", + "NpmrcEnvironmentVariablesSecretVersion", + "WorkspaceCompilationOverrides", + "Labels", + "SetAuthenticatedUserAdmin", + "ServiceAccount", }); internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor = internal_static_google_cloud_dataform_v1beta1_Repository_descriptor.getNestedTypes().get(0); @@ -908,7 +1304,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor, new java.lang.String[] { - "Url", "DefaultBranch", "AuthenticationTokenSecretVersion", "TokenStatus", + "Url", + "DefaultBranch", + "AuthenticationTokenSecretVersion", + "SshAuthenticationConfig", + "TokenStatus", + }); + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor = + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor, + new java.lang.String[] { + "UserPrivateKeySecretVersion", "HostPublicKey", + }); + internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_descriptor = + internal_static_google_cloud_dataform_v1beta1_Repository_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_descriptor, + new java.lang.String[] { + "DefaultDatabase", "SchemaSuffix", "TablePrefix", + }); + internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_Repository_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor = getDescriptor().getMessageTypes().get(1); @@ -958,8 +1384,134 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor = + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor, + new java.lang.String[] { + "Name", "CommitMetadata", "RequiredHeadCommitSha", "FileOperations", + }); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor = + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor, + new java.lang.String[] { + "WriteFile", "DeleteFile", "Operation", + }); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor = + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor, + new java.lang.String[] { + "Contents", + }); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor = + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor, + new java.lang.String[] { + "Name", "CommitSha", "Path", + }); + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor, + new java.lang.String[] { + "Contents", + }); + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor, + new java.lang.String[] { + "Name", "CommitSha", "Path", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor, + new java.lang.String[] { + "DirectoryEntries", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor, + new java.lang.String[] { + "Commits", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor, + new java.lang.String[] { + "CommitTime", "CommitSha", "Author", "CommitMessage", + }); + internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dataform_v1beta1_CommitMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor, + new java.lang.String[] { + "Author", "CommitMessage", + }); + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor, + new java.lang.String[] { + "TokenStatus", + }); + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor, @@ -967,7 +1519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor, @@ -975,7 +1527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branches", }); internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor, @@ -983,7 +1535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor, @@ -991,7 +1543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor, @@ -999,7 +1551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspaces", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor, @@ -1007,7 +1559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor, @@ -1015,7 +1567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Workspace", "WorkspaceId", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor, @@ -1023,7 +1575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor, @@ -1031,7 +1583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor, @@ -1039,7 +1591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", "Author", }); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor, @@ -1047,7 +1599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor, @@ -1055,7 +1607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor, @@ -1073,7 +1625,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "State", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor, @@ -1081,7 +1633,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor, @@ -1089,7 +1641,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitsAhead", "CommitsBehind", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor, @@ -1097,7 +1649,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Author", "CommitMessage", "Paths", }); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor, @@ -1105,7 +1657,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Paths", "Clean", }); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor, @@ -1113,7 +1665,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor, @@ -1121,7 +1673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FormattedDiff", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor, @@ -1129,25 +1681,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor, new java.lang.String[] { "DirectoryEntries", "NextPageToken", }); - internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor = - internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable = + internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor, + internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor, new java.lang.String[] { "File", "Directory", "Entry", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor, @@ -1155,13 +1705,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor, @@ -1169,7 +1719,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor, @@ -1177,13 +1727,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor, @@ -1191,7 +1741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor, @@ -1199,7 +1749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileContents", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor, @@ -1207,7 +1757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor, @@ -1215,13 +1765,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor, @@ -1229,13 +1779,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Contents", }); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor, @@ -1243,13 +1793,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", }); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor, + new java.lang.String[] { + "Name", + "GitCommitish", + "CodeCompilationConfig", + "CronSchedule", + "TimeZone", + "RecentScheduledReleaseRecords", + "ReleaseCompilationResult", + }); + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_descriptor = + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_descriptor, + new java.lang.String[] { + "ReleaseTime", "CompilationResult", "ErrorStatus", "Result", + }); + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor, + new java.lang.String[] { + "ReleaseConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ReleaseConfig", "ReleaseConfigId", + }); + internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ReleaseConfig", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(61); internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor, @@ -1257,18 +1879,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "GitCommitish", "Workspace", + "ReleaseConfig", "CodeCompilationConfig", + "ResolvedGitCommitSha", "DataformCoreVersion", "CompilationErrors", "Source", }); - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor = internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor .getNestedTypes() .get(0); - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable = + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor, + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor, + new java.lang.String[] { + "Message", "Stack", "Path", "ActionTarget", + }); + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor, new java.lang.String[] { "DefaultDatabase", "DefaultSchema", @@ -1279,28 +1911,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaSuffix", "TablePrefix", }); - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor = - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_VarsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor .getNestedTypes() .get(0); - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_fieldAccessorTable = + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_VarsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor, + internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_VarsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor = - internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor, - new java.lang.String[] { - "Message", "Stack", "Path", "ActionTarget", - }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(63); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor, @@ -1308,7 +1930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(64); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor, @@ -1316,7 +1938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResults", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(65); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor, @@ -1324,7 +1946,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(66); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor, @@ -1332,7 +1954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CompilationResult", }); internal_static_google_cloud_dataform_v1beta1_Target_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(67); internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Target_descriptor, @@ -1340,7 +1962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Name", }); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(68); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor, @@ -1368,7 +1990,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(69); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor, @@ -1466,7 +2088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelationDescriptor", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(70); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor, @@ -1474,45 +2096,121 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(71); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor, new java.lang.String[] { "CompilationResultActions", "NextPageToken", }); - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor, new java.lang.String[] { - "Name", "CompilationResult", "InvocationConfig", "State", "InvocationTiming", - }); - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor = - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor + "Name", + "ReleaseConfig", + "InvocationConfig", + "CronSchedule", + "TimeZone", + "RecentScheduledExecutionRecords", + }); + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_descriptor = + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor .getNestedTypes() .get(0); - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable = + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_descriptor, + new java.lang.String[] { + "ExecutionTime", "WorkflowInvocation", "ErrorStatus", "Result", + }); + internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor, + internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor, new java.lang.String[] { "IncludedTargets", "IncludedTags", "TransitiveDependenciesIncluded", "TransitiveDependentsIncluded", "FullyRefreshIncrementalTablesEnabled", + "ServiceAccount", + }); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor, + new java.lang.String[] { + "WorkflowConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkflowConfig", "WorkflowConfigId", + }); + internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "WorkflowConfig", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, + new java.lang.String[] { + "Name", + "CompilationResult", + "WorkflowConfig", + "InvocationConfig", + "State", + "InvocationTiming", + "CompilationSource", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(81); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(82); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor, @@ -1520,7 +2218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(83); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor, @@ -1528,7 +2226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(84); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor, @@ -1536,7 +2234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowInvocation", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(85); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor, @@ -1544,7 +2242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(86); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor, @@ -1552,7 +2250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(87); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor, @@ -1575,7 +2273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlScript", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(88); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor, @@ -1583,7 +2281,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(89); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor, @@ -1608,6 +2306,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); com.google.type.IntervalProto.getDescriptor(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteReleaseConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteReleaseConfigRequest.java new file mode 100644 index 000000000000..a6a212acc8d5 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteReleaseConfigRequest.java @@ -0,0 +1,643 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `DeleteReleaseConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} + */ +public final class DeleteReleaseConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) + DeleteReleaseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteReleaseConfigRequest.newBuilder() to construct. + private DeleteReleaseConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteReleaseConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteReleaseConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest other = + (com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `DeleteReleaseConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest build() { + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest result = + new com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReleaseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteReleaseConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteReleaseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..0c1f2a0839d5 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteReleaseConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface DeleteReleaseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowConfigRequest.java new file mode 100644 index 000000000000..a4890c74d552 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowConfigRequest.java @@ -0,0 +1,643 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `DeleteWorkflowConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} + */ +public final class DeleteWorkflowConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) + DeleteWorkflowConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteWorkflowConfigRequest.newBuilder() to construct. + private DeleteWorkflowConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteWorkflowConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteWorkflowConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest other = + (com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `DeleteWorkflowConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest build() { + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest result = + new com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowConfigRequestOrBuilder.java new file mode 100644 index 000000000000..1e7ddada69e7 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface DeleteWorkflowConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java new file mode 100644 index 000000000000..0da3e42e41b6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java @@ -0,0 +1,989 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a single entry in a directory.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DirectoryEntry} + */ +public final class DirectoryEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DirectoryEntry) + DirectoryEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use DirectoryEntry.newBuilder() to construct. + private DirectoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DirectoryEntry() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DirectoryEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DirectoryEntry.class, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FILE(1), + DIRECTORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FILE; + case 2: + return DIRECTORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FILE_FIELD_NUMBER = 1; + /** + * + * + *
+   * A file in the directory.
+   * 
+ * + * string file = 1; + * + * @return Whether the file field is set. + */ + public boolean hasFile() { + return entryCase_ == 1; + } + /** + * + * + *
+   * A file in the directory.
+   * 
+ * + * string file = 1; + * + * @return The file. + */ + public java.lang.String getFile() { + java.lang.Object ref = ""; + if (entryCase_ == 1) { + ref = entry_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entryCase_ == 1) { + entry_ = s; + } + return s; + } + } + /** + * + * + *
+   * A file in the directory.
+   * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = ""; + if (entryCase_ == 1) { + ref = entry_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entryCase_ == 1) { + entry_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTORY_FIELD_NUMBER = 2; + /** + * + * + *
+   * A child directory in the directory.
+   * 
+ * + * string directory = 2; + * + * @return Whether the directory field is set. + */ + public boolean hasDirectory() { + return entryCase_ == 2; + } + /** + * + * + *
+   * A child directory in the directory.
+   * 
+ * + * string directory = 2; + * + * @return The directory. + */ + public java.lang.String getDirectory() { + java.lang.Object ref = ""; + if (entryCase_ == 2) { + ref = entry_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entryCase_ == 2) { + entry_ = s; + } + return s; + } + } + /** + * + * + *
+   * A child directory in the directory.
+   * 
+ * + * string directory = 2; + * + * @return The bytes for directory. + */ + public com.google.protobuf.ByteString getDirectoryBytes() { + java.lang.Object ref = ""; + if (entryCase_ == 2) { + ref = entry_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entryCase_ == 2) { + entry_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entry_); + } + if (entryCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entry_); + } + if (entryCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DirectoryEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DirectoryEntry other = + (com.google.cloud.dataform.v1beta1.DirectoryEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFile().equals(other.getFile())) return false; + break; + case 2: + if (!getDirectory().equals(other.getDirectory())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + break; + case 2: + hash = (37 * hash) + DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getDirectory().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.DirectoryEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a single entry in a directory.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DirectoryEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DirectoryEntry) + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DirectoryEntry.class, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DirectoryEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryEntry getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryEntry build() { + com.google.cloud.dataform.v1beta1.DirectoryEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryEntry buildPartial() { + com.google.cloud.dataform.v1beta1.DirectoryEntry result = + new com.google.cloud.dataform.v1beta1.DirectoryEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.DirectoryEntry result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dataform.v1beta1.DirectoryEntry result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DirectoryEntry) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DirectoryEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DirectoryEntry other) { + if (other == com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance()) + return this; + switch (other.getEntryCase()) { + case FILE: + { + entryCase_ = 1; + entry_ = other.entry_; + onChanged(); + break; + } + case DIRECTORY: + { + entryCase_ = 2; + entry_ = other.entry_; + onChanged(); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + entryCase_ = 1; + entry_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + entryCase_ = 2; + entry_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return entryCase_ == 1; + } + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return The file. + */ + @java.lang.Override + public java.lang.String getFile() { + java.lang.Object ref = ""; + if (entryCase_ == 1) { + ref = entry_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entryCase_ == 1) { + entry_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = ""; + if (entryCase_ == 1) { + ref = entry_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entryCase_ == 1) { + entry_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @param value The file to set. + * @return This builder for chaining. + */ + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryCase_ = 1; + entry_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return This builder for chaining. + */ + public Builder clearFile() { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @param value The bytes for file to set. + * @return This builder for chaining. + */ + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryCase_ = 1; + entry_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return Whether the directory field is set. + */ + @java.lang.Override + public boolean hasDirectory() { + return entryCase_ == 2; + } + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return The directory. + */ + @java.lang.Override + public java.lang.String getDirectory() { + java.lang.Object ref = ""; + if (entryCase_ == 2) { + ref = entry_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entryCase_ == 2) { + entry_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return The bytes for directory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirectoryBytes() { + java.lang.Object ref = ""; + if (entryCase_ == 2) { + ref = entry_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entryCase_ == 2) { + entry_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @param value The directory to set. + * @return This builder for chaining. + */ + public Builder setDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryCase_ = 2; + entry_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return This builder for chaining. + */ + public Builder clearDirectory() { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @param value The bytes for directory to set. + * @return This builder for chaining. + */ + public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryCase_ = 2; + entry_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DirectoryEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DirectoryEntry) + private static final com.google.cloud.dataform.v1beta1.DirectoryEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DirectoryEntry(); + } + + public static com.google.cloud.dataform.v1beta1.DirectoryEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirectoryEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java new file mode 100644 index 000000000000..2567c047e872 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java @@ -0,0 +1,101 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface DirectoryEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DirectoryEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A file in the directory.
+   * 
+ * + * string file = 1; + * + * @return Whether the file field is set. + */ + boolean hasFile(); + /** + * + * + *
+   * A file in the directory.
+   * 
+ * + * string file = 1; + * + * @return The file. + */ + java.lang.String getFile(); + /** + * + * + *
+   * A file in the directory.
+   * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + com.google.protobuf.ByteString getFileBytes(); + + /** + * + * + *
+   * A child directory in the directory.
+   * 
+ * + * string directory = 2; + * + * @return Whether the directory field is set. + */ + boolean hasDirectory(); + /** + * + * + *
+   * A child directory in the directory.
+   * 
+ * + * string directory = 2; + * + * @return The directory. + */ + java.lang.String getDirectory(); + /** + * + * + *
+   * A child directory in the directory.
+   * 
+ * + * string directory = 2; + * + * @return The bytes for directory. + */ + com.google.protobuf.ByteString getDirectoryBytes(); + + com.google.cloud.dataform.v1beta1.DirectoryEntry.EntryCase getEntryCase(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java index 77a301df39cb..91841c7754af 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java @@ -126,7 +126,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -149,7 +150,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -657,7 +659,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -679,7 +682,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -701,7 +705,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -722,7 +727,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -739,7 +745,8 @@ public Builder clearPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java index 5a8a629abafd..680308cc4b0e 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java @@ -56,7 +56,8 @@ public interface FetchFileDiffRequestOrBuilder * * *
-   * 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]; @@ -68,7 +69,8 @@ public interface FetchFileDiffRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java index daaf5272eba1..f4ec13a326e4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java @@ -126,9 +126,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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]; @@ -151,9 +151,9 @@ public java.lang.String getRemoteBranch() { * * *
-   * 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]; @@ -664,9 +664,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -688,9 +688,9 @@ public java.lang.String getRemoteBranch() { * * *
-     * 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]; @@ -712,9 +712,9 @@ public com.google.protobuf.ByteString getRemoteBranchBytes() { * * *
-     * 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]; @@ -735,9 +735,9 @@ public Builder setRemoteBranch(java.lang.String value) { * * *
-     * 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]; @@ -754,9 +754,9 @@ public Builder clearRemoteBranch() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java index d8479b18b802..2a7c86fef3ad 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java @@ -56,9 +56,9 @@ public interface FetchGitAheadBehindRequestOrBuilder * * *
-   * 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]; @@ -70,9 +70,9 @@ public interface FetchGitAheadBehindRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryRequest.java new file mode 100644 index 000000000000..f4c3c5cded88 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryRequest.java @@ -0,0 +1,957 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchRepositoryHistory` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} + */ +public final class FetchRepositoryHistoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) + FetchRepositoryHistoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchRepositoryHistoryRequest.newBuilder() to construct. + private FetchRepositoryHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchRepositoryHistoryRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchRepositoryHistoryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.class, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object 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.
+   * 
+ * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest other = + (com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `FetchRepositoryHistory` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.class, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest build() { + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest result = + new com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int 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.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return 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.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object 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.
+     * 
+ * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) + private static final com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchRepositoryHistoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryRequestOrBuilder.java new file mode 100644 index 000000000000..6a89e42dded5 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchRepositoryHistoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * 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]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryResponse.java new file mode 100644 index 000000000000..0dc9360fecc0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryResponse.java @@ -0,0 +1,1137 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchRepositoryHistory` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} + */ +public final class FetchRepositoryHistoryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) + FetchRepositoryHistoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchRepositoryHistoryResponse.newBuilder() to construct. + private FetchRepositoryHistoryResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchRepositoryHistoryResponse() { + commits_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchRepositoryHistoryResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.class, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.Builder.class); + } + + public static final int COMMITS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List commits_; + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + @java.lang.Override + public java.util.List getCommitsList() { + return commits_; + } + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + @java.lang.Override + public java.util.List + getCommitsOrBuilderList() { + return commits_; + } + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + @java.lang.Override + public int getCommitsCount() { + return commits_.size(); + } + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitLogEntry getCommits(int index) { + return commits_.get(index); + } + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder getCommitsOrBuilder(int index) { + return commits_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < commits_.size(); i++) { + output.writeMessage(1, commits_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < commits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, commits_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse other = + (com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) obj; + + if (!getCommitsList().equals(other.getCommitsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCommitsCount() > 0) { + hash = (37 * hash) + COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getCommitsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `FetchRepositoryHistory` response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.class, + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (commitsBuilder_ == null) { + commits_ = java.util.Collections.emptyList(); + } else { + commits_ = null; + commitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse build() { + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse buildPartial() { + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse result = + new com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse result) { + if (commitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + commits_ = java.util.Collections.unmodifiableList(commits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.commits_ = commits_; + } else { + result.commits_ = commitsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse.getDefaultInstance()) + return this; + if (commitsBuilder_ == null) { + if (!other.commits_.isEmpty()) { + if (commits_.isEmpty()) { + commits_ = other.commits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCommitsIsMutable(); + commits_.addAll(other.commits_); + } + onChanged(); + } + } else { + if (!other.commits_.isEmpty()) { + if (commitsBuilder_.isEmpty()) { + commitsBuilder_.dispose(); + commitsBuilder_ = null; + commits_ = other.commits_; + bitField0_ = (bitField0_ & ~0x00000001); + commitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCommitsFieldBuilder() + : null; + } else { + commitsBuilder_.addAllMessages(other.commits_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.CommitLogEntry m = + input.readMessage( + com.google.cloud.dataform.v1beta1.CommitLogEntry.parser(), + extensionRegistry); + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.add(m); + } else { + commitsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List commits_ = + java.util.Collections.emptyList(); + + private void ensureCommitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + commits_ = + new java.util.ArrayList(commits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitLogEntry, + com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder, + com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder> + commitsBuilder_; + + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public java.util.List getCommitsList() { + if (commitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(commits_); + } else { + return commitsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public int getCommitsCount() { + if (commitsBuilder_ == null) { + return commits_.size(); + } else { + return commitsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public com.google.cloud.dataform.v1beta1.CommitLogEntry getCommits(int index) { + if (commitsBuilder_ == null) { + return commits_.get(index); + } else { + return commitsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder setCommits(int index, com.google.cloud.dataform.v1beta1.CommitLogEntry value) { + if (commitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommitsIsMutable(); + commits_.set(index, value); + onChanged(); + } else { + commitsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder setCommits( + int index, com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder builderForValue) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.set(index, builderForValue.build()); + onChanged(); + } else { + commitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder addCommits(com.google.cloud.dataform.v1beta1.CommitLogEntry value) { + if (commitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommitsIsMutable(); + commits_.add(value); + onChanged(); + } else { + commitsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder addCommits(int index, com.google.cloud.dataform.v1beta1.CommitLogEntry value) { + if (commitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommitsIsMutable(); + commits_.add(index, value); + onChanged(); + } else { + commitsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder addCommits( + com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder builderForValue) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.add(builderForValue.build()); + onChanged(); + } else { + commitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder addCommits( + int index, com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder builderForValue) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.add(index, builderForValue.build()); + onChanged(); + } else { + commitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder addAllCommits( + java.lang.Iterable values) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commits_); + onChanged(); + } else { + commitsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder clearCommits() { + if (commitsBuilder_ == null) { + commits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + commitsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public Builder removeCommits(int index) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.remove(index); + onChanged(); + } else { + commitsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder getCommitsBuilder(int index) { + return getCommitsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder getCommitsOrBuilder( + int index) { + if (commitsBuilder_ == null) { + return commits_.get(index); + } else { + return commitsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public java.util.List + getCommitsOrBuilderList() { + if (commitsBuilder_ != null) { + return commitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(commits_); + } + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder addCommitsBuilder() { + return getCommitsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.CommitLogEntry.getDefaultInstance()); + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder addCommitsBuilder(int index) { + return getCommitsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.CommitLogEntry.getDefaultInstance()); + } + /** + * + * + *
+     * A list of commit logs, ordered by 'git log' default order.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + public java.util.List + getCommitsBuilderList() { + return getCommitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitLogEntry, + com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder, + com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder> + getCommitsFieldBuilder() { + if (commitsBuilder_ == null) { + commitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitLogEntry, + com.google.cloud.dataform.v1beta1.CommitLogEntry.Builder, + com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder>( + commits_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + commits_ = null; + } + return commitsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * 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; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) + private static final com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse(); + } + + public static com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchRepositoryHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryResponseOrBuilder.java new file mode 100644 index 000000000000..21d73ec9c874 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRepositoryHistoryResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchRepositoryHistoryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + java.util.List getCommitsList(); + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + com.google.cloud.dataform.v1beta1.CommitLogEntry getCommits(int index); + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + int getCommitsCount(); + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + java.util.List + getCommitsOrBuilderList(); + /** + * + * + *
+   * A list of commit logs, ordered by 'git log' default order.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + com.google.cloud.dataform.v1beta1.CommitLogEntryOrBuilder getCommitsOrBuilder(int index); + + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetReleaseConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetReleaseConfigRequest.java new file mode 100644 index 000000000000..1dde794a9bf5 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetReleaseConfigRequest.java @@ -0,0 +1,639 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `GetReleaseConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetReleaseConfigRequest} + */ +public final class GetReleaseConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.GetReleaseConfigRequest) + GetReleaseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetReleaseConfigRequest.newBuilder() to construct. + private GetReleaseConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetReleaseConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetReleaseConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest other = + (com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `GetReleaseConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetReleaseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetReleaseConfigRequest) + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest build() { + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest result = + new com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest other) { + if (other == com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetReleaseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetReleaseConfigRequest) + private static final com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReleaseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetReleaseConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetReleaseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..378666451a2a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetReleaseConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface GetReleaseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.GetReleaseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The release config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowConfigRequest.java new file mode 100644 index 000000000000..43508af9c8f8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowConfigRequest.java @@ -0,0 +1,639 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `GetWorkflowConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} + */ +public final class GetWorkflowConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) + GetWorkflowConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetWorkflowConfigRequest.newBuilder() to construct. + private GetWorkflowConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetWorkflowConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetWorkflowConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest other = + (com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `GetWorkflowConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetWorkflowConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest build() { + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest result = + new com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest other) { + if (other == com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) + private static final com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowConfigRequestOrBuilder.java new file mode 100644 index 000000000000..6662b8c0aba4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface GetWorkflowConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.GetWorkflowConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The workflow config's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java new file mode 100644 index 000000000000..68aebb478a4e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java @@ -0,0 +1,1762 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Includes various configuration options for a workflow invocation.
+ * If both `included_targets` and `included_tags` are unset, all actions
+ * will be included.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.InvocationConfig} + */ +public final class InvocationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.InvocationConfig) + InvocationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use InvocationConfig.newBuilder() to construct. + private InvocationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InvocationConfig() { + includedTargets_ = java.util.Collections.emptyList(); + includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InvocationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.InvocationConfig.class, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder.class); + } + + public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List includedTargets_; + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getIncludedTargetsList() { + return includedTargets_; + } + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIncludedTargetsOrBuilderList() { + return includedTargets_; + } + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIncludedTargetsCount() { + return includedTargets_.size(); + } + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index) { + return includedTargets_.get(index); + } + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder(int index) { + return includedTargets_.get(index); + } + + public static final int INCLUDED_TAGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includedTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includedTags. + */ + public com.google.protobuf.ProtocolStringList getIncludedTagsList() { + return includedTags_; + } + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includedTags. + */ + public int getIncludedTagsCount() { + return includedTags_.size(); + } + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includedTags at the given index. + */ + public java.lang.String getIncludedTags(int index) { + return includedTags_.get(index); + } + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includedTags at the given index. + */ + public com.google.protobuf.ByteString getIncludedTagsBytes(int index) { + return includedTags_.getByteString(index); + } + + public static final int TRANSITIVE_DEPENDENCIES_INCLUDED_FIELD_NUMBER = 3; + private boolean transitiveDependenciesIncluded_ = false; + /** + * + * + *
+   * Optional. When set to true, transitive dependencies of included actions
+   * will be executed.
+   * 
+ * + * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitiveDependenciesIncluded. + */ + @java.lang.Override + public boolean getTransitiveDependenciesIncluded() { + return transitiveDependenciesIncluded_; + } + + public static final int TRANSITIVE_DEPENDENTS_INCLUDED_FIELD_NUMBER = 4; + private boolean transitiveDependentsIncluded_ = false; + /** + * + * + *
+   * Optional. When set to true, transitive dependents of included actions will
+   * be executed.
+   * 
+ * + * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transitiveDependentsIncluded. + */ + @java.lang.Override + public boolean getTransitiveDependentsIncluded() { + return transitiveDependentsIncluded_; + } + + public static final int FULLY_REFRESH_INCREMENTAL_TABLES_ENABLED_FIELD_NUMBER = 5; + private boolean fullyRefreshIncrementalTablesEnabled_ = false; + /** + * + * + *
+   * Optional. When set to true, any incremental tables will be fully refreshed.
+   * 
+ * + * + * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fullyRefreshIncrementalTablesEnabled. + */ + @java.lang.Override + public boolean getFullyRefreshIncrementalTablesEnabled() { + return fullyRefreshIncrementalTablesEnabled_; + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < includedTargets_.size(); i++) { + output.writeMessage(1, includedTargets_.get(i)); + } + for (int i = 0; i < includedTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, includedTags_.getRaw(i)); + } + if (transitiveDependenciesIncluded_ != false) { + output.writeBool(3, transitiveDependenciesIncluded_); + } + if (transitiveDependentsIncluded_ != false) { + output.writeBool(4, transitiveDependentsIncluded_); + } + if (fullyRefreshIncrementalTablesEnabled_ != false) { + output.writeBool(5, fullyRefreshIncrementalTablesEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < includedTargets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, includedTargets_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < includedTags_.size(); i++) { + dataSize += computeStringSizeNoTag(includedTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludedTagsList().size(); + } + if (transitiveDependenciesIncluded_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, transitiveDependenciesIncluded_); + } + if (transitiveDependentsIncluded_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, transitiveDependentsIncluded_); + } + if (fullyRefreshIncrementalTablesEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, fullyRefreshIncrementalTablesEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.InvocationConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.InvocationConfig other = + (com.google.cloud.dataform.v1beta1.InvocationConfig) obj; + + if (!getIncludedTargetsList().equals(other.getIncludedTargetsList())) return false; + if (!getIncludedTagsList().equals(other.getIncludedTagsList())) return false; + if (getTransitiveDependenciesIncluded() != other.getTransitiveDependenciesIncluded()) + return false; + if (getTransitiveDependentsIncluded() != other.getTransitiveDependentsIncluded()) return false; + if (getFullyRefreshIncrementalTablesEnabled() + != other.getFullyRefreshIncrementalTablesEnabled()) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIncludedTargetsCount() > 0) { + hash = (37 * hash) + INCLUDED_TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getIncludedTargetsList().hashCode(); + } + if (getIncludedTagsCount() > 0) { + hash = (37 * hash) + INCLUDED_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getIncludedTagsList().hashCode(); + } + hash = (37 * hash) + TRANSITIVE_DEPENDENCIES_INCLUDED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransitiveDependenciesIncluded()); + hash = (37 * hash) + TRANSITIVE_DEPENDENTS_INCLUDED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransitiveDependentsIncluded()); + hash = (37 * hash) + FULLY_REFRESH_INCREMENTAL_TABLES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getFullyRefreshIncrementalTablesEnabled()); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.InvocationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Includes various configuration options for a workflow invocation.
+   * If both `included_targets` and `included_tags` are unset, all actions
+   * will be included.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.InvocationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.InvocationConfig) + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.InvocationConfig.class, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.InvocationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (includedTargetsBuilder_ == null) { + includedTargets_ = java.util.Collections.emptyList(); + } else { + includedTargets_ = null; + includedTargetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + transitiveDependenciesIncluded_ = false; + transitiveDependentsIncluded_ = false; + fullyRefreshIncrementalTablesEnabled_ = false; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig build() { + com.google.cloud.dataform.v1beta1.InvocationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig buildPartial() { + com.google.cloud.dataform.v1beta1.InvocationConfig result = + new com.google.cloud.dataform.v1beta1.InvocationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.InvocationConfig result) { + if (includedTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + includedTargets_ = java.util.Collections.unmodifiableList(includedTargets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.includedTargets_ = includedTargets_; + } else { + result.includedTargets_ = includedTargetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.InvocationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + includedTags_.makeImmutable(); + result.includedTags_ = includedTags_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.transitiveDependenciesIncluded_ = transitiveDependenciesIncluded_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.transitiveDependentsIncluded_ = transitiveDependentsIncluded_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fullyRefreshIncrementalTablesEnabled_ = fullyRefreshIncrementalTablesEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.InvocationConfig) { + return mergeFrom((com.google.cloud.dataform.v1beta1.InvocationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.InvocationConfig other) { + if (other == com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()) + return this; + if (includedTargetsBuilder_ == null) { + if (!other.includedTargets_.isEmpty()) { + if (includedTargets_.isEmpty()) { + includedTargets_ = other.includedTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIncludedTargetsIsMutable(); + includedTargets_.addAll(other.includedTargets_); + } + onChanged(); + } + } else { + if (!other.includedTargets_.isEmpty()) { + if (includedTargetsBuilder_.isEmpty()) { + includedTargetsBuilder_.dispose(); + includedTargetsBuilder_ = null; + includedTargets_ = other.includedTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + includedTargetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIncludedTargetsFieldBuilder() + : null; + } else { + includedTargetsBuilder_.addAllMessages(other.includedTargets_); + } + } + } + if (!other.includedTags_.isEmpty()) { + if (includedTags_.isEmpty()) { + includedTags_ = other.includedTags_; + bitField0_ |= 0x00000002; + } else { + ensureIncludedTagsIsMutable(); + includedTags_.addAll(other.includedTags_); + } + onChanged(); + } + if (other.getTransitiveDependenciesIncluded() != false) { + setTransitiveDependenciesIncluded(other.getTransitiveDependenciesIncluded()); + } + if (other.getTransitiveDependentsIncluded() != false) { + setTransitiveDependentsIncluded(other.getTransitiveDependentsIncluded()); + } + if (other.getFullyRefreshIncrementalTablesEnabled() != false) { + setFullyRefreshIncrementalTablesEnabled(other.getFullyRefreshIncrementalTablesEnabled()); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.Target m = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.add(m); + } else { + includedTargetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludedTagsIsMutable(); + includedTags_.add(s); + break; + } // case 18 + case 24: + { + transitiveDependenciesIncluded_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + transitiveDependentsIncluded_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + fullyRefreshIncrementalTablesEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List includedTargets_ = + java.util.Collections.emptyList(); + + private void ensureIncludedTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + includedTargets_ = + new java.util.ArrayList(includedTargets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + includedTargetsBuilder_; + + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getIncludedTargetsList() { + if (includedTargetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(includedTargets_); + } else { + return includedTargetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIncludedTargetsCount() { + if (includedTargetsBuilder_ == null) { + return includedTargets_.size(); + } else { + return includedTargetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index) { + if (includedTargetsBuilder_ == null) { + return includedTargets_.get(index); + } else { + return includedTargetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludedTargets(int index, com.google.cloud.dataform.v1beta1.Target value) { + if (includedTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTargetsIsMutable(); + includedTargets_.set(index, value); + onChanged(); + } else { + includedTargetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludedTargets( + int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.set(index, builderForValue.build()); + onChanged(); + } else { + includedTargetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludedTargets(com.google.cloud.dataform.v1beta1.Target value) { + if (includedTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTargetsIsMutable(); + includedTargets_.add(value); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludedTargets(int index, com.google.cloud.dataform.v1beta1.Target value) { + if (includedTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTargetsIsMutable(); + includedTargets_.add(index, value); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludedTargets( + com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.add(builderForValue.build()); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludedTargets( + int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.add(index, builderForValue.build()); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIncludedTargets( + java.lang.Iterable values) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTargets_); + onChanged(); + } else { + includedTargetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludedTargets() { + if (includedTargetsBuilder_ == null) { + includedTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + includedTargetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIncludedTargets(int index) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.remove(index); + onChanged(); + } else { + includedTargetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getIncludedTargetsBuilder(int index) { + return getIncludedTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder( + int index) { + if (includedTargetsBuilder_ == null) { + return includedTargets_.get(index); + } else { + return includedTargetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludedTargetsOrBuilderList() { + if (includedTargetsBuilder_ != null) { + return includedTargetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includedTargets_); + } + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addIncludedTargetsBuilder() { + return getIncludedTargetsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addIncludedTargetsBuilder(int index) { + return getIncludedTargetsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludedTargetsBuilderList() { + return getIncludedTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getIncludedTargetsFieldBuilder() { + if (includedTargetsBuilder_ == null) { + includedTargetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder>( + includedTargets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + includedTargets_ = null; + } + return includedTargetsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList includedTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludedTagsIsMutable() { + if (!includedTags_.isModifiable()) { + includedTags_ = new com.google.protobuf.LazyStringArrayList(includedTags_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includedTags. + */ + public com.google.protobuf.ProtocolStringList getIncludedTagsList() { + includedTags_.makeImmutable(); + return includedTags_; + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includedTags. + */ + public int getIncludedTagsCount() { + return includedTags_.size(); + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includedTags at the given index. + */ + public java.lang.String getIncludedTags(int index) { + return includedTags_.get(index); + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includedTags at the given index. + */ + public com.google.protobuf.ByteString getIncludedTagsBytes(int index) { + return includedTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The includedTags to set. + * @return This builder for chaining. + */ + public Builder setIncludedTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTagsIsMutable(); + includedTags_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includedTags to add. + * @return This builder for chaining. + */ + public Builder addIncludedTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTagsIsMutable(); + includedTags_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The includedTags to add. + * @return This builder for chaining. + */ + public Builder addAllIncludedTags(java.lang.Iterable values) { + ensureIncludedTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTags_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludedTags() { + includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the includedTags to add. + * @return This builder for chaining. + */ + public Builder addIncludedTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludedTagsIsMutable(); + includedTags_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean transitiveDependenciesIncluded_; + /** + * + * + *
+     * Optional. When set to true, transitive dependencies of included actions
+     * will be executed.
+     * 
+ * + * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitiveDependenciesIncluded. + */ + @java.lang.Override + public boolean getTransitiveDependenciesIncluded() { + return transitiveDependenciesIncluded_; + } + /** + * + * + *
+     * Optional. When set to true, transitive dependencies of included actions
+     * will be executed.
+     * 
+ * + * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The transitiveDependenciesIncluded to set. + * @return This builder for chaining. + */ + public Builder setTransitiveDependenciesIncluded(boolean value) { + + transitiveDependenciesIncluded_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When set to true, transitive dependencies of included actions
+     * will be executed.
+     * 
+ * + * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTransitiveDependenciesIncluded() { + bitField0_ = (bitField0_ & ~0x00000004); + transitiveDependenciesIncluded_ = false; + onChanged(); + return this; + } + + private boolean transitiveDependentsIncluded_; + /** + * + * + *
+     * Optional. When set to true, transitive dependents of included actions will
+     * be executed.
+     * 
+ * + * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitiveDependentsIncluded. + */ + @java.lang.Override + public boolean getTransitiveDependentsIncluded() { + return transitiveDependentsIncluded_; + } + /** + * + * + *
+     * Optional. When set to true, transitive dependents of included actions will
+     * be executed.
+     * 
+ * + * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The transitiveDependentsIncluded to set. + * @return This builder for chaining. + */ + public Builder setTransitiveDependentsIncluded(boolean value) { + + transitiveDependentsIncluded_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When set to true, transitive dependents of included actions will
+     * be executed.
+     * 
+ * + * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTransitiveDependentsIncluded() { + bitField0_ = (bitField0_ & ~0x00000008); + transitiveDependentsIncluded_ = false; + onChanged(); + return this; + } + + private boolean fullyRefreshIncrementalTablesEnabled_; + /** + * + * + *
+     * Optional. When set to true, any incremental tables will be fully refreshed.
+     * 
+ * + * + * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fullyRefreshIncrementalTablesEnabled. + */ + @java.lang.Override + public boolean getFullyRefreshIncrementalTablesEnabled() { + return fullyRefreshIncrementalTablesEnabled_; + } + /** + * + * + *
+     * Optional. When set to true, any incremental tables will be fully refreshed.
+     * 
+ * + * + * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The fullyRefreshIncrementalTablesEnabled to set. + * @return This builder for chaining. + */ + public Builder setFullyRefreshIncrementalTablesEnabled(boolean value) { + + fullyRefreshIncrementalTablesEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When set to true, any incremental tables will be fully refreshed.
+     * 
+ * + * + * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFullyRefreshIncrementalTablesEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + fullyRefreshIncrementalTablesEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * Optional. The service account to run workflow invocations under.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The service account to run workflow invocations under.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The service account to run workflow invocations under.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The service account to run workflow invocations under.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The service account to run workflow invocations under.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.InvocationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.InvocationConfig) + private static final com.google.cloud.dataform.v1beta1.InvocationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.InvocationConfig(); + } + + public static com.google.cloud.dataform.v1beta1.InvocationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvocationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java new file mode 100644 index 000000000000..27c1edae4947 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java @@ -0,0 +1,207 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface InvocationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.InvocationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getIncludedTargetsList(); + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index); + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIncludedTargetsCount(); + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIncludedTargetsOrBuilderList(); + /** + * + * + *
+   * Optional. The set of action identifiers to include.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includedTags. + */ + java.util.List getIncludedTagsList(); + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includedTags. + */ + int getIncludedTagsCount(); + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includedTags at the given index. + */ + java.lang.String getIncludedTags(int index); + /** + * + * + *
+   * Optional. The set of tags to include.
+   * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includedTags at the given index. + */ + com.google.protobuf.ByteString getIncludedTagsBytes(int index); + + /** + * + * + *
+   * Optional. When set to true, transitive dependencies of included actions
+   * will be executed.
+   * 
+ * + * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitiveDependenciesIncluded. + */ + boolean getTransitiveDependenciesIncluded(); + + /** + * + * + *
+   * Optional. When set to true, transitive dependents of included actions will
+   * be executed.
+   * 
+ * + * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transitiveDependentsIncluded. + */ + boolean getTransitiveDependentsIncluded(); + + /** + * + * + *
+   * Optional. When set to true, any incremental tables will be fully refreshed.
+   * 
+ * + * + * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fullyRefreshIncrementalTablesEnabled. + */ + boolean getFullyRefreshIncrementalTablesEnabled(); + + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java index 453d9b9f95ba..1ea38b566c3b 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java @@ -71,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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/*`.
    * 
* * @@ -97,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * 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/*`.
    * 
* * @@ -126,8 +126,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * 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.
    * 
* @@ -148,8 +148,8 @@ public int getPageSize() { * * *
-   * 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.
@@ -175,8 +175,8 @@ public java.lang.String getPageToken() {
    *
    *
    * 
-   * 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.
@@ -597,8 +597,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * 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/*`.
      * 
* * @@ -622,8 +622,8 @@ public java.lang.String getParent() { * * *
-     * 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/*`.
      * 
* * @@ -647,8 +647,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * 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/*`.
      * 
* * @@ -671,8 +671,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * 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/*`.
      * 
* * @@ -691,8 +691,8 @@ public Builder clearParent() { * * *
-     * 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/*`.
      * 
* * @@ -718,8 +718,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* @@ -735,8 +735,8 @@ public int getPageSize() { * * *
-     * 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.
      * 
* @@ -756,8 +756,8 @@ public Builder setPageSize(int value) { * * *
-     * 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.
      * 
* @@ -777,8 +777,8 @@ public Builder clearPageSize() { * * *
-     * 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.
@@ -803,8 +803,8 @@ public java.lang.String getPageToken() {
      *
      *
      * 
-     * 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.
@@ -829,8 +829,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      *
      * 
-     * 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.
@@ -854,8 +854,8 @@ public Builder setPageToken(java.lang.String value) {
      *
      *
      * 
-     * 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.
@@ -875,8 +875,8 @@ public Builder clearPageToken() {
      *
      *
      * 
-     * 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/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java
index d84fea3eec68..46907b24a5c9 100644
--- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java
+++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface ListCompilationResultsRequestOrBuilder
    *
    *
    * 
-   * 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/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface ListCompilationResultsRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -58,8 +58,8 @@ public interface ListCompilationResultsRequestOrBuilder * * *
-   * 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.
    * 
* @@ -73,8 +73,8 @@ public interface ListCompilationResultsRequestOrBuilder * * *
-   * 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.
@@ -89,8 +89,8 @@ public interface ListCompilationResultsRequestOrBuilder
    *
    *
    * 
-   * 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/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsRequest.java
new file mode 100644
index 000000000000..d0d549df403d
--- /dev/null
+++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsRequest.java
@@ -0,0 +1,957 @@
+/*
+ * 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.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dataform/v1beta1/dataform.proto
+
+package com.google.cloud.dataform.v1beta1;
+
+/**
+ *
+ *
+ * 
+ * `ListReleaseConfigs` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} + */ +public final class ListReleaseConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) + ListReleaseConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListReleaseConfigsRequest.newBuilder() to construct. + private ListReleaseConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReleaseConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReleaseConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.class, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest other = + (com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ListReleaseConfigs` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListReleaseConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.class, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest build() { + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest result = + new com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest other) { + if (other == com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int 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.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return 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.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) + private static final com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReleaseConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..8df0f8da5843 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListReleaseConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListReleaseConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * 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]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsResponse.java new file mode 100644 index 000000000000..774ad6f418d2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsResponse.java @@ -0,0 +1,1419 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListReleaseConfigs` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} + */ +public final class ListReleaseConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) + ListReleaseConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListReleaseConfigsResponse.newBuilder() to construct. + private ListReleaseConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReleaseConfigsResponse() { + releaseConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReleaseConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.class, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.Builder.class); + } + + public static final int RELEASE_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List releaseConfigs_; + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + @java.lang.Override + public java.util.List getReleaseConfigsList() { + return releaseConfigs_; + } + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + @java.lang.Override + public java.util.List + getReleaseConfigsOrBuilderList() { + return releaseConfigs_; + } + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + @java.lang.Override + public int getReleaseConfigsCount() { + return releaseConfigs_.size(); + } + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfigs(int index) { + return releaseConfigs_.get(index); + } + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigsOrBuilder( + int index) { + return releaseConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < releaseConfigs_.size(); i++) { + output.writeMessage(1, releaseConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < releaseConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, releaseConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse other = + (com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) obj; + + if (!getReleaseConfigsList().equals(other.getReleaseConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReleaseConfigsCount() > 0) { + hash = (37 * hash) + RELEASE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getReleaseConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ListReleaseConfigs` response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListReleaseConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.class, + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (releaseConfigsBuilder_ == null) { + releaseConfigs_ = java.util.Collections.emptyList(); + } else { + releaseConfigs_ = null; + releaseConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse build() { + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse result = + new com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse result) { + if (releaseConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + releaseConfigs_ = java.util.Collections.unmodifiableList(releaseConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.releaseConfigs_ = releaseConfigs_; + } else { + result.releaseConfigs_ = releaseConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse.getDefaultInstance()) + return this; + if (releaseConfigsBuilder_ == null) { + if (!other.releaseConfigs_.isEmpty()) { + if (releaseConfigs_.isEmpty()) { + releaseConfigs_ = other.releaseConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReleaseConfigsIsMutable(); + releaseConfigs_.addAll(other.releaseConfigs_); + } + onChanged(); + } + } else { + if (!other.releaseConfigs_.isEmpty()) { + if (releaseConfigsBuilder_.isEmpty()) { + releaseConfigsBuilder_.dispose(); + releaseConfigsBuilder_ = null; + releaseConfigs_ = other.releaseConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + releaseConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReleaseConfigsFieldBuilder() + : null; + } else { + releaseConfigsBuilder_.addAllMessages(other.releaseConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.ReleaseConfig m = + input.readMessage( + com.google.cloud.dataform.v1beta1.ReleaseConfig.parser(), + extensionRegistry); + if (releaseConfigsBuilder_ == null) { + ensureReleaseConfigsIsMutable(); + releaseConfigs_.add(m); + } else { + releaseConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List releaseConfigs_ = + java.util.Collections.emptyList(); + + private void ensureReleaseConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + releaseConfigs_ = + new java.util.ArrayList( + releaseConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder> + releaseConfigsBuilder_; + + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public java.util.List getReleaseConfigsList() { + if (releaseConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(releaseConfigs_); + } else { + return releaseConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public int getReleaseConfigsCount() { + if (releaseConfigsBuilder_ == null) { + return releaseConfigs_.size(); + } else { + return releaseConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfigs(int index) { + if (releaseConfigsBuilder_ == null) { + return releaseConfigs_.get(index); + } else { + return releaseConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder setReleaseConfigs( + int index, com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReleaseConfigsIsMutable(); + releaseConfigs_.set(index, value); + onChanged(); + } else { + releaseConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder setReleaseConfigs( + int index, com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder builderForValue) { + if (releaseConfigsBuilder_ == null) { + ensureReleaseConfigsIsMutable(); + releaseConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + releaseConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder addReleaseConfigs(com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReleaseConfigsIsMutable(); + releaseConfigs_.add(value); + onChanged(); + } else { + releaseConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder addReleaseConfigs( + int index, com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReleaseConfigsIsMutable(); + releaseConfigs_.add(index, value); + onChanged(); + } else { + releaseConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder addReleaseConfigs( + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder builderForValue) { + if (releaseConfigsBuilder_ == null) { + ensureReleaseConfigsIsMutable(); + releaseConfigs_.add(builderForValue.build()); + onChanged(); + } else { + releaseConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder addReleaseConfigs( + int index, com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder builderForValue) { + if (releaseConfigsBuilder_ == null) { + ensureReleaseConfigsIsMutable(); + releaseConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + releaseConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder addAllReleaseConfigs( + java.lang.Iterable values) { + if (releaseConfigsBuilder_ == null) { + ensureReleaseConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, releaseConfigs_); + onChanged(); + } else { + releaseConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder clearReleaseConfigs() { + if (releaseConfigsBuilder_ == null) { + releaseConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + releaseConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public Builder removeReleaseConfigs(int index) { + if (releaseConfigsBuilder_ == null) { + ensureReleaseConfigsIsMutable(); + releaseConfigs_.remove(index); + onChanged(); + } else { + releaseConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder getReleaseConfigsBuilder( + int index) { + return getReleaseConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigsOrBuilder( + int index) { + if (releaseConfigsBuilder_ == null) { + return releaseConfigs_.get(index); + } else { + return releaseConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public java.util.List + getReleaseConfigsOrBuilderList() { + if (releaseConfigsBuilder_ != null) { + return releaseConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(releaseConfigs_); + } + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder addReleaseConfigsBuilder() { + return getReleaseConfigsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder addReleaseConfigsBuilder( + int index) { + return getReleaseConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + public java.util.List + getReleaseConfigsBuilderList() { + return getReleaseConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder> + getReleaseConfigsFieldBuilder() { + if (releaseConfigsBuilder_ == null) { + releaseConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder>( + releaseConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + releaseConfigs_ = null; + } + return releaseConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * 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; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) + private static final com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReleaseConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..ef0f5428fee6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListReleaseConfigsResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListReleaseConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListReleaseConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + java.util.List getReleaseConfigsList(); + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfigs(int index); + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + int getReleaseConfigsCount(); + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + java.util.List + getReleaseConfigsOrBuilderList(); + /** + * + * + *
+   * List of release configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigsOrBuilder(int index); + + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java index e59029c44660..8506317b11fa 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java @@ -128,9 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * 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]; @@ -209,9 +209,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * 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]; @@ -234,9 +234,9 @@ public java.lang.String getOrderBy() { * * *
-   * 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]; @@ -870,9 +870,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -887,9 +887,9 @@ public int getPageSize() { * * *
-     * 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]; @@ -908,9 +908,9 @@ public Builder setPageSize(int value) { * * *
-     * 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]; @@ -1055,9 +1055,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -1079,9 +1079,9 @@ public java.lang.String getOrderBy() { * * *
-     * 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]; @@ -1103,9 +1103,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
-     * 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]; @@ -1126,9 +1126,9 @@ public Builder setOrderBy(java.lang.String value) { * * *
-     * 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]; @@ -1145,9 +1145,9 @@ public Builder clearOrderBy() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java index 5dfe1c13bfd5..5dd4f9f39d01 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListRepositoriesRequestOrBuilder * * *
-   * 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]; @@ -106,9 +106,9 @@ public interface ListRepositoriesRequestOrBuilder * * *
-   * 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]; @@ -120,9 +120,9 @@ public interface ListRepositoriesRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsRequest.java new file mode 100644 index 000000000000..827c9e35dc17 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsRequest.java @@ -0,0 +1,961 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListWorkflowConfigs` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} + */ +public final class ListWorkflowConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) + ListWorkflowConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListWorkflowConfigsRequest.newBuilder() to construct. + private ListWorkflowConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListWorkflowConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListWorkflowConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.class, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest other = + (com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ListWorkflowConfigs` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.class, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest build() { + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest result = + new com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * 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]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * 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]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) + private static final com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..ff68012a8706 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListWorkflowConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * 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]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsResponse.java new file mode 100644 index 000000000000..c24a47bbef06 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsResponse.java @@ -0,0 +1,1420 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListWorkflowConfigs` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} + */ +public final class ListWorkflowConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) + ListWorkflowConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListWorkflowConfigsResponse.newBuilder() to construct. + private ListWorkflowConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListWorkflowConfigsResponse() { + workflowConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListWorkflowConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.class, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.Builder.class); + } + + public static final int WORKFLOW_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List workflowConfigs_; + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + @java.lang.Override + public java.util.List getWorkflowConfigsList() { + return workflowConfigs_; + } + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + @java.lang.Override + public java.util.List + getWorkflowConfigsOrBuilderList() { + return workflowConfigs_; + } + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + @java.lang.Override + public int getWorkflowConfigsCount() { + return workflowConfigs_.size(); + } + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfigs(int index) { + return workflowConfigs_.get(index); + } + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigsOrBuilder( + int index) { + return workflowConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < workflowConfigs_.size(); i++) { + output.writeMessage(1, workflowConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < workflowConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflowConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse other = + (com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) obj; + + if (!getWorkflowConfigsList().equals(other.getWorkflowConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkflowConfigsCount() > 0) { + hash = (37 * hash) + WORKFLOW_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ListWorkflowConfigs` response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.class, + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (workflowConfigsBuilder_ == null) { + workflowConfigs_ = java.util.Collections.emptyList(); + } else { + workflowConfigs_ = null; + workflowConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse build() { + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse result = + new com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse result) { + if (workflowConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workflowConfigs_ = java.util.Collections.unmodifiableList(workflowConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflowConfigs_ = workflowConfigs_; + } else { + result.workflowConfigs_ = workflowConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse.getDefaultInstance()) + return this; + if (workflowConfigsBuilder_ == null) { + if (!other.workflowConfigs_.isEmpty()) { + if (workflowConfigs_.isEmpty()) { + workflowConfigs_ = other.workflowConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.addAll(other.workflowConfigs_); + } + onChanged(); + } + } else { + if (!other.workflowConfigs_.isEmpty()) { + if (workflowConfigsBuilder_.isEmpty()) { + workflowConfigsBuilder_.dispose(); + workflowConfigsBuilder_ = null; + workflowConfigs_ = other.workflowConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + workflowConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkflowConfigsFieldBuilder() + : null; + } else { + workflowConfigsBuilder_.addAllMessages(other.workflowConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.WorkflowConfig m = + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowConfig.parser(), + extensionRegistry); + if (workflowConfigsBuilder_ == null) { + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.add(m); + } else { + workflowConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List workflowConfigs_ = + java.util.Collections.emptyList(); + + private void ensureWorkflowConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workflowConfigs_ = + new java.util.ArrayList( + workflowConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder> + workflowConfigsBuilder_; + + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public java.util.List + getWorkflowConfigsList() { + if (workflowConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workflowConfigs_); + } else { + return workflowConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public int getWorkflowConfigsCount() { + if (workflowConfigsBuilder_ == null) { + return workflowConfigs_.size(); + } else { + return workflowConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfigs(int index) { + if (workflowConfigsBuilder_ == null) { + return workflowConfigs_.get(index); + } else { + return workflowConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder setWorkflowConfigs( + int index, com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.set(index, value); + onChanged(); + } else { + workflowConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder setWorkflowConfigs( + int index, com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder builderForValue) { + if (workflowConfigsBuilder_ == null) { + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + workflowConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder addWorkflowConfigs(com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.add(value); + onChanged(); + } else { + workflowConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder addWorkflowConfigs( + int index, com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.add(index, value); + onChanged(); + } else { + workflowConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder addWorkflowConfigs( + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder builderForValue) { + if (workflowConfigsBuilder_ == null) { + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.add(builderForValue.build()); + onChanged(); + } else { + workflowConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder addWorkflowConfigs( + int index, com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder builderForValue) { + if (workflowConfigsBuilder_ == null) { + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + workflowConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder addAllWorkflowConfigs( + java.lang.Iterable values) { + if (workflowConfigsBuilder_ == null) { + ensureWorkflowConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflowConfigs_); + onChanged(); + } else { + workflowConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder clearWorkflowConfigs() { + if (workflowConfigsBuilder_ == null) { + workflowConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workflowConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public Builder removeWorkflowConfigs(int index) { + if (workflowConfigsBuilder_ == null) { + ensureWorkflowConfigsIsMutable(); + workflowConfigs_.remove(index); + onChanged(); + } else { + workflowConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder getWorkflowConfigsBuilder( + int index) { + return getWorkflowConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigsOrBuilder( + int index) { + if (workflowConfigsBuilder_ == null) { + return workflowConfigs_.get(index); + } else { + return workflowConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public java.util.List + getWorkflowConfigsOrBuilderList() { + if (workflowConfigsBuilder_ != null) { + return workflowConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workflowConfigs_); + } + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder addWorkflowConfigsBuilder() { + return getWorkflowConfigsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder addWorkflowConfigsBuilder( + int index) { + return getWorkflowConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of workflow configs.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + public java.util.List + getWorkflowConfigsBuilderList() { + return getWorkflowConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder> + getWorkflowConfigsFieldBuilder() { + if (workflowConfigsBuilder_ == null) { + workflowConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder>( + workflowConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workflowConfigs_ = null; + } + return workflowConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * 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; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) + private static final com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..ab6357cfe1f2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowConfigsResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListWorkflowConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + java.util.List getWorkflowConfigsList(); + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfigs(int index); + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + int getWorkflowConfigsCount(); + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + java.util.List + getWorkflowConfigsOrBuilderList(); + /** + * + * + *
+   * List of workflow configs.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigsOrBuilder(int index); + + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations which could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java index 564a3adeb068..29bccd721cd4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java @@ -41,6 +41,8 @@ private ListWorkflowInvocationsRequest( private ListWorkflowInvocationsRequest() { parent_ = ""; pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; } @java.lang.Override @@ -72,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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/*`.
    * 
* * @@ -98,8 +100,8 @@ public java.lang.String getParent() { * * *
-   * 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/*`.
    * 
* * @@ -127,8 +129,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * 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.
    * 
* @@ -149,8 +151,8 @@ public int getPageSize() { * * *
-   * 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.
@@ -176,8 +178,8 @@ public java.lang.String getPageToken() {
    *
    *
    * 
-   * 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.
@@ -200,6 +202,112 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
     }
   }
 
+  public static final int ORDER_BY_FIELD_NUMBER = 4;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object 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.
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filter for the returned list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Filter for the returned list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -223,6 +331,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } getUnknownFields().writeTo(output); } @@ -241,6 +355,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -260,6 +380,8 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,6 +399,10 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -420,6 +546,8 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; return this; } @@ -467,6 +595,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -530,6 +664,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -574,6 +718,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -598,8 +754,8 @@ public Builder mergeFrom( * * *
-     * 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/*`.
      * 
* * @@ -623,8 +779,8 @@ public java.lang.String getParent() { * * *
-     * 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/*`.
      * 
* * @@ -648,8 +804,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * 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/*`.
      * 
* * @@ -672,8 +828,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * 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/*`.
      * 
* * @@ -692,8 +848,8 @@ public Builder clearParent() { * * *
-     * 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/*`.
      * 
* * @@ -719,8 +875,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* @@ -736,8 +892,8 @@ public int getPageSize() { * * *
-     * 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.
      * 
* @@ -757,8 +913,8 @@ public Builder setPageSize(int value) { * * *
-     * 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.
      * 
* @@ -778,8 +934,8 @@ public Builder clearPageSize() { * * *
-     * 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.
@@ -804,8 +960,8 @@ public java.lang.String getPageToken() {
      *
      *
      * 
-     * 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.
@@ -830,8 +986,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      *
      * 
-     * 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.
@@ -855,8 +1011,8 @@ public Builder setPageToken(java.lang.String value) {
      *
      *
      * 
-     * 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.
@@ -876,8 +1032,8 @@ public Builder clearPageToken() {
      *
      *
      * 
-     * 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.
@@ -899,6 +1055,228 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
+    private java.lang.Object 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.
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. Filter for the returned list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Filter for the returned list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Filter for the returned list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filter for the returned list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filter for the returned list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java index f8400b55d7fc..09f99a5a7562 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListWorkflowInvocationsRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface ListWorkflowInvocationsRequestOrBuilder * * *
-   * 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/*`.
    * 
* * @@ -58,8 +58,8 @@ public interface ListWorkflowInvocationsRequestOrBuilder * * *
-   * 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.
    * 
* @@ -73,8 +73,8 @@ public interface ListWorkflowInvocationsRequestOrBuilder * * *
-   * 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.
@@ -89,8 +89,8 @@ public interface ListWorkflowInvocationsRequestOrBuilder
    *
    *
    * 
-   * 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.
@@ -101,4 +101,58 @@ public interface ListWorkflowInvocationsRequestOrBuilder
    * @return The bytes for pageToken.
    */
   com.google.protobuf.ByteString getPageTokenBytes();
+
+  /**
+   *
+   *
+   * 
+   * 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]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Filter for the returned list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filter for the returned list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java index a3bb854bbe02..50aef5a9511c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java @@ -128,9 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * 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]; @@ -209,9 +209,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * 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]; @@ -234,9 +234,9 @@ public java.lang.String getOrderBy() { * * *
-   * 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]; @@ -870,9 +870,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -887,9 +887,9 @@ public int getPageSize() { * * *
-     * 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]; @@ -908,9 +908,9 @@ public Builder setPageSize(int value) { * * *
-     * 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]; @@ -1055,9 +1055,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -1079,9 +1079,9 @@ public java.lang.String getOrderBy() { * * *
-     * 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]; @@ -1103,9 +1103,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
-     * 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]; @@ -1126,9 +1126,9 @@ public Builder setOrderBy(java.lang.String value) { * * *
-     * 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]; @@ -1145,9 +1145,9 @@ public Builder clearOrderBy() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java index 751cc61cc732..c13d621fcf49 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListWorkspacesRequestOrBuilder * * *
-   * 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]; @@ -106,9 +106,9 @@ public interface ListWorkspacesRequestOrBuilder * * *
-   * 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]; @@ -120,9 +120,9 @@ public interface ListWorkspacesRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java index 8101799df8e6..b92ec3b82b0f 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java @@ -126,8 +126,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -150,8 +150,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -659,8 +659,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -682,8 +682,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -705,8 +705,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -727,8 +727,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -745,8 +745,8 @@ public Builder clearPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java index 4fcf1f52127d..13811ea54aca 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java @@ -56,8 +56,8 @@ public interface MakeDirectoryRequestOrBuilder * * *
-   * 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]; @@ -69,8 +69,8 @@ public interface MakeDirectoryRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java index abbdb239caad..93b345d097e8 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -151,8 +151,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -180,8 +180,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-   * 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]; @@ -204,8 +204,8 @@ public java.lang.String getNewPath() { * * *
-   * 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]; @@ -737,8 +737,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -760,8 +760,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -783,8 +783,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -805,8 +805,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -823,8 +823,8 @@ public Builder clearPath() { * * *
-     * 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]; @@ -848,8 +848,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -871,8 +871,8 @@ public java.lang.String getNewPath() { * * *
-     * 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]; @@ -894,8 +894,8 @@ public com.google.protobuf.ByteString getNewPathBytes() { * * *
-     * 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]; @@ -916,8 +916,8 @@ public Builder setNewPath(java.lang.String value) { * * *
-     * 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]; @@ -934,8 +934,8 @@ public Builder clearNewPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java index edd30a458f7a..4853d151288a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java @@ -56,8 +56,8 @@ public interface MoveDirectoryRequestOrBuilder * * *
-   * 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]; @@ -69,8 +69,8 @@ public interface MoveDirectoryRequestOrBuilder * * *
-   * 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]; @@ -83,8 +83,8 @@ public interface MoveDirectoryRequestOrBuilder * * *
-   * 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]; @@ -96,8 +96,8 @@ public interface MoveDirectoryRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java index decee98e1d05..1f766225178a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java @@ -127,7 +127,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -150,7 +151,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -178,7 +180,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-   * 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]; @@ -201,7 +204,8 @@ public java.lang.String getNewPath() { * * *
-   * 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]; @@ -732,7 +736,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -754,7 +759,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -776,7 +782,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -797,7 +804,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -814,7 +822,8 @@ public Builder clearPath() { * * *
-     * 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]; @@ -838,7 +847,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -860,7 +870,8 @@ public java.lang.String getNewPath() { * * *
-     * 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]; @@ -882,7 +893,8 @@ public com.google.protobuf.ByteString getNewPathBytes() { * * *
-     * 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]; @@ -903,7 +915,8 @@ public Builder setNewPath(java.lang.String value) { * * *
-     * 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]; @@ -920,7 +933,8 @@ public Builder clearNewPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java index 186f5badd664..5a3eedaf64cd 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java @@ -56,7 +56,8 @@ public interface MoveFileRequestOrBuilder * * *
-   * 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]; @@ -68,7 +69,8 @@ public interface MoveFileRequestOrBuilder * * *
-   * 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]; @@ -81,7 +83,8 @@ public interface MoveFileRequestOrBuilder * * *
-   * 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]; @@ -93,7 +96,8 @@ public interface MoveFileRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java index 30c0f2447da4..aece917dc9f5 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java @@ -126,8 +126,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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]; @@ -150,8 +150,8 @@ public java.lang.String getRemoteBranch() { * * *
-   * 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]; @@ -177,8 +177,8 @@ public com.google.protobuf.ByteString getRemoteBranchBytes() { * * *
-   * 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.
    * 
* * @@ -195,8 +195,8 @@ public boolean hasAuthor() { * * *
-   * 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.
    * 
* * @@ -215,8 +215,8 @@ public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { * * *
-   * 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.
    * 
* * @@ -749,8 +749,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -772,8 +772,8 @@ public java.lang.String getRemoteBranch() { * * *
-     * 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]; @@ -795,8 +795,8 @@ public com.google.protobuf.ByteString getRemoteBranchBytes() { * * *
-     * 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]; @@ -817,8 +817,8 @@ public Builder setRemoteBranch(java.lang.String value) { * * *
-     * 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]; @@ -835,8 +835,8 @@ public Builder clearRemoteBranch() { * * *
-     * 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]; @@ -865,8 +865,8 @@ public Builder setRemoteBranchBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* * @@ -882,8 +882,8 @@ public boolean hasAuthor() { * * *
-     * 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.
      * 
* * @@ -905,8 +905,8 @@ public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { * * *
-     * 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.
      * 
* * @@ -930,8 +930,8 @@ public Builder setAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { * * *
-     * 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.
      * 
* * @@ -953,8 +953,8 @@ public Builder setAuthor( * * *
-     * 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.
      * 
* * @@ -981,8 +981,8 @@ public Builder mergeAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) * * *
-     * 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.
      * 
* * @@ -1003,8 +1003,8 @@ public Builder clearAuthor() { * * *
-     * 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.
      * 
* * @@ -1020,8 +1020,8 @@ public com.google.cloud.dataform.v1beta1.CommitAuthor.Builder getAuthorBuilder() * * *
-     * 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.
      * 
* * @@ -1041,8 +1041,8 @@ public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilde * * *
-     * 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.
      * 
* * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java index 67def4311ceb..d3e1037f00ba 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java @@ -56,8 +56,8 @@ public interface PullGitCommitsRequestOrBuilder * * *
-   * 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]; @@ -69,8 +69,8 @@ public interface PullGitCommitsRequestOrBuilder * * *
-   * 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]; @@ -83,8 +83,8 @@ public interface PullGitCommitsRequestOrBuilder * * *
-   * 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.
    * 
* * @@ -98,8 +98,8 @@ public interface PullGitCommitsRequestOrBuilder * * *
-   * 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.
    * 
* * @@ -113,8 +113,8 @@ public interface PullGitCommitsRequestOrBuilder * * *
-   * 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.
    * 
* * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java index dde18a38cfa2..c9486d8c1900 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java @@ -126,8 +126,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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]; @@ -150,8 +151,9 @@ public java.lang.String getRemoteBranch() { * * *
-   * 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]; @@ -659,8 +661,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -682,8 +685,9 @@ public java.lang.String getRemoteBranch() { * * *
-     * 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]; @@ -705,8 +709,9 @@ public com.google.protobuf.ByteString getRemoteBranchBytes() { * * *
-     * 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]; @@ -727,8 +732,9 @@ public Builder setRemoteBranch(java.lang.String value) { * * *
-     * 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]; @@ -745,8 +751,9 @@ public Builder clearRemoteBranch() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java index 3265a0bb9b15..2fc2a2c2e533 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java @@ -56,8 +56,9 @@ public interface PushGitCommitsRequestOrBuilder * * *
-   * 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]; @@ -69,8 +70,9 @@ public interface PushGitCommitsRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java index 4902a503da19..bde4a6f99952 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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.
    * 
* @@ -149,8 +149,9 @@ public int getPageSize() { * * *
-   * 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
@@ -177,8 +178,9 @@ public java.lang.String getPageToken() {
    *
    *
    * 
-   * 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
@@ -210,8 +212,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    *
    * 
-   * 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]; @@ -234,8 +236,8 @@ public java.lang.String getFilter() { * * *
-   * 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]; @@ -798,8 +800,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* @@ -815,8 +817,8 @@ public int getPageSize() { * * *
-     * 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.
      * 
* @@ -836,8 +838,8 @@ public Builder setPageSize(int value) { * * *
-     * 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.
      * 
* @@ -857,8 +859,9 @@ public Builder clearPageSize() { * * *
-     * 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
@@ -884,8 +887,9 @@ public java.lang.String getPageToken() {
      *
      *
      * 
-     * 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
@@ -911,8 +915,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      *
      * 
-     * 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
@@ -937,8 +942,9 @@ public Builder setPageToken(java.lang.String value) {
      *
      *
      * 
-     * 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
@@ -959,8 +965,9 @@ public Builder clearPageToken() {
      *
      *
      * 
-     * 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
@@ -988,8 +995,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * 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]; @@ -1011,8 +1018,8 @@ public java.lang.String getFilter() { * * *
-     * 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]; @@ -1034,8 +1041,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * 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]; @@ -1056,8 +1063,8 @@ public Builder setFilter(java.lang.String value) { * * *
-     * 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]; @@ -1074,8 +1081,8 @@ public Builder clearFilter() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java index f28776bb328f..9d90e196e908 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java @@ -56,8 +56,8 @@ public interface QueryCompilationResultActionsRequestOrBuilder * * *
-   * 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.
    * 
* @@ -71,8 +71,9 @@ public interface QueryCompilationResultActionsRequestOrBuilder * * *
-   * 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
@@ -88,8 +89,9 @@ public interface QueryCompilationResultActionsRequestOrBuilder
    *
    *
    * 
-   * 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
@@ -106,8 +108,8 @@ public interface QueryCompilationResultActionsRequestOrBuilder
    *
    *
    * 
-   * 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]; @@ -119,8 +121,8 @@ public interface QueryCompilationResultActionsRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java index 82d9b4f35546..7ca42c23d378 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -151,8 +151,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -200,8 +200,8 @@ public int getPageSize() { * * *
-   * 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
@@ -228,8 +228,8 @@ public java.lang.String getPageToken() {
    *
    *
    * 
-   * 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
@@ -791,8 +791,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * 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]; @@ -814,8 +814,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -837,8 +837,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -859,8 +859,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -877,8 +877,8 @@ public Builder clearPath() { * * *
-     * 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]; @@ -961,8 +961,8 @@ public Builder clearPageSize() { * * *
-     * 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
@@ -988,8 +988,8 @@ public java.lang.String getPageToken() {
      *
      *
      * 
-     * 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
@@ -1015,8 +1015,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      *
      * 
-     * 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
@@ -1041,8 +1041,8 @@ public Builder setPageToken(java.lang.String value) {
      *
      *
      * 
-     * 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
@@ -1063,8 +1063,8 @@ public Builder clearPageToken() {
      *
      *
      * 
-     * 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
diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java
index d3c653f328e6..92a725a7e2a4 100644
--- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java
+++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java
@@ -56,8 +56,8 @@ public interface QueryDirectoryContentsRequestOrBuilder
    *
    *
    * 
-   * 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]; @@ -69,8 +69,8 @@ public interface QueryDirectoryContentsRequestOrBuilder * * *
-   * 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]; @@ -98,8 +98,8 @@ public interface QueryDirectoryContentsRequestOrBuilder * * *
-   * 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
@@ -115,8 +115,8 @@ public interface QueryDirectoryContentsRequestOrBuilder
    *
    *
    * 
-   * 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
diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java
index eaca43cf1323..555f8b350189 100644
--- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java
+++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java
@@ -64,1104 +64,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.Builder.class);
   }
 
-  public interface DirectoryEntryOrBuilder
-      extends
-      // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     *
-     *
-     * 
-     * A file in the directory.
-     * 
- * - * string file = 1; - * - * @return Whether the file field is set. - */ - boolean hasFile(); - /** - * - * - *
-     * A file in the directory.
-     * 
- * - * string file = 1; - * - * @return The file. - */ - java.lang.String getFile(); - /** - * - * - *
-     * A file in the directory.
-     * 
- * - * string file = 1; - * - * @return The bytes for file. - */ - com.google.protobuf.ByteString getFileBytes(); - - /** - * - * - *
-     * A child directory in the directory.
-     * 
- * - * string directory = 2; - * - * @return Whether the directory field is set. - */ - boolean hasDirectory(); - /** - * - * - *
-     * A child directory in the directory.
-     * 
- * - * string directory = 2; - * - * @return The directory. - */ - java.lang.String getDirectory(); - /** - * - * - *
-     * A child directory in the directory.
-     * 
- * - * string directory = 2; - * - * @return The bytes for directory. - */ - com.google.protobuf.ByteString getDirectoryBytes(); - - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.EntryCase - getEntryCase(); - } - /** - * - * - *
-   * Represents a single entry in a workspace directory.
-   * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} - */ - public static final class DirectoryEntry extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) - DirectoryEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use DirectoryEntry.newBuilder() to construct. - private DirectoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DirectoryEntry() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DirectoryEntry(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.class, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .Builder.class); - } - - private int entryCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object entry_; - - public enum EntryCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FILE(1), - DIRECTORY(2), - ENTRY_NOT_SET(0); - private final int value; - - private EntryCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EntryCase valueOf(int value) { - return forNumber(value); - } - - public static EntryCase forNumber(int value) { - switch (value) { - case 1: - return FILE; - case 2: - return DIRECTORY; - case 0: - return ENTRY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public EntryCase getEntryCase() { - return EntryCase.forNumber(entryCase_); - } - - public static final int FILE_FIELD_NUMBER = 1; - /** - * - * - *
-     * A file in the directory.
-     * 
- * - * string file = 1; - * - * @return Whether the file field is set. - */ - public boolean hasFile() { - return entryCase_ == 1; - } - /** - * - * - *
-     * A file in the directory.
-     * 
- * - * string file = 1; - * - * @return The file. - */ - public java.lang.String getFile() { - java.lang.Object ref = ""; - if (entryCase_ == 1) { - ref = entry_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (entryCase_ == 1) { - entry_ = s; - } - return s; - } - } - /** - * - * - *
-     * A file in the directory.
-     * 
- * - * string file = 1; - * - * @return The bytes for file. - */ - public com.google.protobuf.ByteString getFileBytes() { - java.lang.Object ref = ""; - if (entryCase_ == 1) { - ref = entry_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryCase_ == 1) { - entry_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECTORY_FIELD_NUMBER = 2; - /** - * - * - *
-     * A child directory in the directory.
-     * 
- * - * string directory = 2; - * - * @return Whether the directory field is set. - */ - public boolean hasDirectory() { - return entryCase_ == 2; - } - /** - * - * - *
-     * A child directory in the directory.
-     * 
- * - * string directory = 2; - * - * @return The directory. - */ - public java.lang.String getDirectory() { - java.lang.Object ref = ""; - if (entryCase_ == 2) { - ref = entry_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (entryCase_ == 2) { - entry_ = s; - } - return s; - } - } - /** - * - * - *
-     * A child directory in the directory.
-     * 
- * - * string directory = 2; - * - * @return The bytes for directory. - */ - public com.google.protobuf.ByteString getDirectoryBytes() { - java.lang.Object ref = ""; - if (entryCase_ == 2) { - ref = entry_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryCase_ == 2) { - entry_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (entryCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entry_); - } - if (entryCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entry_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entryCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entry_); - } - if (entryCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entry_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry other = - (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) obj; - - if (!getEntryCase().equals(other.getEntryCase())) return false; - switch (entryCase_) { - case 1: - if (!getFile().equals(other.getFile())) return false; - break; - case 2: - if (!getDirectory().equals(other.getDirectory())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (entryCase_) { - case 1: - hash = (37 * hash) + FILE_FIELD_NUMBER; - hash = (53 * hash) + getFile().hashCode(); - break; - case 2: - hash = (37 * hash) + DIRECTORY_FIELD_NUMBER; - hash = (53 * hash) + getDirectory().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Represents a single entry in a workspace directory.
-     * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .class, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entryCase_ = 0; - entry_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - build() { - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - buildPartial() { - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry result = - new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry result) { - result.entryCase_ = entryCase_; - result.entry_ = this.entry_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) { - return mergeFrom( - (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry other) { - if (other - == com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance()) return this; - switch (other.getEntryCase()) { - case FILE: - { - entryCase_ = 1; - entry_ = other.entry_; - onChanged(); - break; - } - case DIRECTORY: - { - entryCase_ = 2; - entry_ = other.entry_; - onChanged(); - break; - } - case ENTRY_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - entryCase_ = 1; - entry_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - entryCase_ = 2; - entry_ = s; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int entryCase_ = 0; - private java.lang.Object entry_; - - public EntryCase getEntryCase() { - return EntryCase.forNumber(entryCase_); - } - - public Builder clearEntry() { - entryCase_ = 0; - entry_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-       * A file in the directory.
-       * 
- * - * string file = 1; - * - * @return Whether the file field is set. - */ - @java.lang.Override - public boolean hasFile() { - return entryCase_ == 1; - } - /** - * - * - *
-       * A file in the directory.
-       * 
- * - * string file = 1; - * - * @return The file. - */ - @java.lang.Override - public java.lang.String getFile() { - java.lang.Object ref = ""; - if (entryCase_ == 1) { - ref = entry_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (entryCase_ == 1) { - entry_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A file in the directory.
-       * 
- * - * string file = 1; - * - * @return The bytes for file. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFileBytes() { - java.lang.Object ref = ""; - if (entryCase_ == 1) { - ref = entry_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryCase_ == 1) { - entry_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A file in the directory.
-       * 
- * - * string file = 1; - * - * @param value The file to set. - * @return This builder for chaining. - */ - public Builder setFile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryCase_ = 1; - entry_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A file in the directory.
-       * 
- * - * string file = 1; - * - * @return This builder for chaining. - */ - public Builder clearFile() { - if (entryCase_ == 1) { - entryCase_ = 0; - entry_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-       * A file in the directory.
-       * 
- * - * string file = 1; - * - * @param value The bytes for file to set. - * @return This builder for chaining. - */ - public Builder setFileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryCase_ = 1; - entry_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-       * A child directory in the directory.
-       * 
- * - * string directory = 2; - * - * @return Whether the directory field is set. - */ - @java.lang.Override - public boolean hasDirectory() { - return entryCase_ == 2; - } - /** - * - * - *
-       * A child directory in the directory.
-       * 
- * - * string directory = 2; - * - * @return The directory. - */ - @java.lang.Override - public java.lang.String getDirectory() { - java.lang.Object ref = ""; - if (entryCase_ == 2) { - ref = entry_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (entryCase_ == 2) { - entry_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A child directory in the directory.
-       * 
- * - * string directory = 2; - * - * @return The bytes for directory. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDirectoryBytes() { - java.lang.Object ref = ""; - if (entryCase_ == 2) { - ref = entry_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryCase_ == 2) { - entry_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A child directory in the directory.
-       * 
- * - * string directory = 2; - * - * @param value The directory to set. - * @return This builder for chaining. - */ - public Builder setDirectory(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryCase_ = 2; - entry_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A child directory in the directory.
-       * 
- * - * string directory = 2; - * - * @return This builder for chaining. - */ - public Builder clearDirectory() { - if (entryCase_ == 2) { - entryCase_ = 0; - entry_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-       * A child directory in the directory.
-       * 
- * - * string directory = 2; - * - * @param value The bytes for directory to set. - * @return This builder for chaining. - */ - public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryCase_ = 2; - entry_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) - private static final com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntry - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry(); - } - - public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DirectoryEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - public static final int DIRECTORY_ENTRIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> - directoryEntries_; + private java.util.List directoryEntries_; /** * * @@ -1169,13 +75,10 @@ public com.google.protobuf.Parser getParserForType() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> + public java.util.List getDirectoryEntriesList() { return directoryEntries_; } @@ -1186,15 +89,10 @@ public com.google.protobuf.Parser getParserForType() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> + public java.util.List getDirectoryEntriesOrBuilderList() { return directoryEntries_; } @@ -1205,9 +103,7 @@ public com.google.protobuf.Parser getParserForType() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ @java.lang.Override public int getDirectoryEntriesCount() { @@ -1220,13 +116,10 @@ public int getDirectoryEntriesCount() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ @java.lang.Override - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - getDirectoryEntries(int index) { + public com.google.cloud.dataform.v1beta1.DirectoryEntry getDirectoryEntries(int index) { return directoryEntries_.get(index); } /** @@ -1236,13 +129,11 @@ public int getDirectoryEntriesCount() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ @java.lang.Override - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder - getDirectoryEntriesOrBuilder(int index) { + public com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder getDirectoryEntriesOrBuilder( + int index) { return directoryEntries_.get(index); } @@ -1682,10 +573,9 @@ public Builder mergeFrom( break; case 10: { - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry m = + com.google.cloud.dataform.v1beta1.DirectoryEntry m = input.readMessage( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntry.parser(), + com.google.cloud.dataform.v1beta1.DirectoryEntry.parser(), extensionRegistry); if (directoryEntriesBuilder_ == null) { ensureDirectoryEntriesIsMutable(); @@ -1720,25 +610,22 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> - directoryEntries_ = java.util.Collections.emptyList(); + private java.util.List directoryEntries_ = + java.util.Collections.emptyList(); private void ensureDirectoryEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { directoryEntries_ = - new java.util.ArrayList< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry>( + new java.util.ArrayList( directoryEntries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> + com.google.cloud.dataform.v1beta1.DirectoryEntry, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder> directoryEntriesBuilder_; /** @@ -1748,12 +635,9 @@ private void ensureDirectoryEntriesIsMutable() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public java.util.List< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> + public java.util.List getDirectoryEntriesList() { if (directoryEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(directoryEntries_); @@ -1768,9 +652,7 @@ private void ensureDirectoryEntriesIsMutable() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public int getDirectoryEntriesCount() { if (directoryEntriesBuilder_ == null) { @@ -1786,12 +668,9 @@ public int getDirectoryEntriesCount() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - getDirectoryEntries(int index) { + public com.google.cloud.dataform.v1beta1.DirectoryEntry getDirectoryEntries(int index) { if (directoryEntriesBuilder_ == null) { return directoryEntries_.get(index); } else { @@ -1805,13 +684,10 @@ public int getDirectoryEntriesCount() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder setDirectoryEntries( - int index, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry value) { + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry value) { if (directoryEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1831,14 +707,10 @@ public Builder setDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder setDirectoryEntries( - int index, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder - builderForValue) { + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder builderForValue) { if (directoryEntriesBuilder_ == null) { ensureDirectoryEntriesIsMutable(); directoryEntries_.set(index, builderForValue.build()); @@ -1855,12 +727,9 @@ public Builder setDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public Builder addDirectoryEntries( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry value) { + public Builder addDirectoryEntries(com.google.cloud.dataform.v1beta1.DirectoryEntry value) { if (directoryEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1880,13 +749,10 @@ public Builder addDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder addDirectoryEntries( - int index, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry value) { + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry value) { if (directoryEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1906,13 +772,10 @@ public Builder addDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder addDirectoryEntries( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder - builderForValue) { + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder builderForValue) { if (directoryEntriesBuilder_ == null) { ensureDirectoryEntriesIsMutable(); directoryEntries_.add(builderForValue.build()); @@ -1929,14 +792,10 @@ public Builder addDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder addDirectoryEntries( - int index, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder - builderForValue) { + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder builderForValue) { if (directoryEntriesBuilder_ == null) { ensureDirectoryEntriesIsMutable(); directoryEntries_.add(index, builderForValue.build()); @@ -1953,15 +812,10 @@ public Builder addDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder addAllDirectoryEntries( - java.lang.Iterable< - ? extends - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> - values) { + java.lang.Iterable values) { if (directoryEntriesBuilder_ == null) { ensureDirectoryEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, directoryEntries_); @@ -1978,9 +832,7 @@ public Builder addAllDirectoryEntries( * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder clearDirectoryEntries() { if (directoryEntriesBuilder_ == null) { @@ -1999,9 +851,7 @@ public Builder clearDirectoryEntries() { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ public Builder removeDirectoryEntries(int index) { if (directoryEntriesBuilder_ == null) { @@ -2020,12 +870,10 @@ public Builder removeDirectoryEntries(int index) { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder - getDirectoryEntriesBuilder(int index) { + public com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder getDirectoryEntriesBuilder( + int index) { return getDirectoryEntriesFieldBuilder().getBuilder(index); } /** @@ -2035,12 +883,10 @@ public Builder removeDirectoryEntries(int index) { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder - getDirectoryEntriesOrBuilder(int index) { + public com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder getDirectoryEntriesOrBuilder( + int index) { if (directoryEntriesBuilder_ == null) { return directoryEntries_.get(index); } else { @@ -2054,14 +900,9 @@ public Builder removeDirectoryEntries(int index) { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public java.util.List< - ? extends - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> + public java.util.List getDirectoryEntriesOrBuilderList() { if (directoryEntriesBuilder_ != null) { return directoryEntriesBuilder_.getMessageOrBuilderList(); @@ -2076,16 +917,11 @@ public Builder removeDirectoryEntries(int index) { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder - addDirectoryEntriesBuilder() { + public com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder addDirectoryEntriesBuilder() { return getDirectoryEntriesFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance()); + .addBuilder(com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance()); } /** * @@ -2094,17 +930,12 @@ public Builder removeDirectoryEntries(int index) { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder - addDirectoryEntriesBuilder(int index) { + public com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder addDirectoryEntriesBuilder( + int index) { return getDirectoryEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance()); + .addBuilder(index, com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance()); } /** * @@ -2113,30 +944,24 @@ public Builder removeDirectoryEntries(int index) { * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - public java.util.List< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder> + public java.util.List getDirectoryEntriesBuilderList() { return getDirectoryEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> + com.google.cloud.dataform.v1beta1.DirectoryEntry, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder> getDirectoryEntriesFieldBuilder() { if (directoryEntriesBuilder_ == null) { directoryEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - .Builder, - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder>( + com.google.cloud.dataform.v1beta1.DirectoryEntry, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder>( directoryEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java index 9df35b478f86..b8eea5904dd9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java @@ -30,12 +30,9 @@ public interface QueryDirectoryContentsResponseOrBuilder * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - java.util.List - getDirectoryEntriesList(); + java.util.List getDirectoryEntriesList(); /** * * @@ -43,12 +40,9 @@ public interface QueryDirectoryContentsResponseOrBuilder * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry - getDirectoryEntries(int index); + com.google.cloud.dataform.v1beta1.DirectoryEntry getDirectoryEntries(int index); /** * * @@ -56,9 +50,7 @@ public interface QueryDirectoryContentsResponseOrBuilder * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ int getDirectoryEntriesCount(); /** @@ -68,14 +60,9 @@ public interface QueryDirectoryContentsResponseOrBuilder * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - java.util.List< - ? extends - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> + java.util.List getDirectoryEntriesOrBuilderList(); /** * @@ -84,12 +71,9 @@ public interface QueryDirectoryContentsResponseOrBuilder * List of entries in the directory. *
* - * - * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; */ - com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder - getDirectoryEntriesOrBuilder(int index); + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder getDirectoryEntriesOrBuilder(int index); /** * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsRequest.java new file mode 100644 index 000000000000..54a155f6f6fd --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsRequest.java @@ -0,0 +1,1362 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryRepositoryDirectoryContents` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} + */ +public final class QueryRepositoryDirectoryContentsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) + QueryRepositoryDirectoryContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryRepositoryDirectoryContentsRequest.newBuilder() to construct. + private QueryRepositoryDirectoryContentsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryRepositoryDirectoryContentsRequest() { + name_ = ""; + commitSha_ = ""; + path_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryRepositoryDirectoryContentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_ = 0; + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object 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.
+   * 
+ * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitSha_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitSha_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest other = + (com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; + if (!getPath().equals(other.getPath())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `QueryRepositoryDirectoryContents` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + commitSha_ = ""; + path_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest build() { + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + buildPartial() { + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest result = + new com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitSha_ = commitSha_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitSha_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int 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.
+     * 
+ * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return 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.
+     * 
+ * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000008); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object 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.
+     * 
+ * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryRepositoryDirectoryContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsRequestOrBuilder.java new file mode 100644 index 000000000000..59bb2c32f071 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryRepositoryDirectoryContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * 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]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsResponse.java new file mode 100644 index 000000000000..401ec8b2fd72 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsResponse.java @@ -0,0 +1,1165 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryRepositoryDirectoryContents` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} + */ +public final class QueryRepositoryDirectoryContentsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) + QueryRepositoryDirectoryContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryRepositoryDirectoryContentsResponse.newBuilder() to construct. + private QueryRepositoryDirectoryContentsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryRepositoryDirectoryContentsResponse() { + directoryEntries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryRepositoryDirectoryContentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.Builder + .class); + } + + public static final int DIRECTORY_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List directoryEntries_; + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + @java.lang.Override + public java.util.List + getDirectoryEntriesList() { + return directoryEntries_; + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + @java.lang.Override + public java.util.List + getDirectoryEntriesOrBuilderList() { + return directoryEntries_; + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + @java.lang.Override + public int getDirectoryEntriesCount() { + return directoryEntries_.size(); + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryEntry getDirectoryEntries(int index) { + return directoryEntries_.get(index); + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder getDirectoryEntriesOrBuilder( + int index) { + return directoryEntries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < directoryEntries_.size(); i++) { + output.writeMessage(1, directoryEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < directoryEntries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, directoryEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse other = + (com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) obj; + + if (!getDirectoryEntriesList().equals(other.getDirectoryEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDirectoryEntriesCount() > 0) { + hash = (37 * hash) + DIRECTORY_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getDirectoryEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `QueryRepositoryDirectoryContents` response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (directoryEntriesBuilder_ == null) { + directoryEntries_ = java.util.Collections.emptyList(); + } else { + directoryEntries_ = null; + directoryEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse build() { + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + buildPartial() { + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse result = + new com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse result) { + if (directoryEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + directoryEntries_ = java.util.Collections.unmodifiableList(directoryEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.directoryEntries_ = directoryEntries_; + } else { + result.directoryEntries_ = directoryEntriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + .getDefaultInstance()) return this; + if (directoryEntriesBuilder_ == null) { + if (!other.directoryEntries_.isEmpty()) { + if (directoryEntries_.isEmpty()) { + directoryEntries_ = other.directoryEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDirectoryEntriesIsMutable(); + directoryEntries_.addAll(other.directoryEntries_); + } + onChanged(); + } + } else { + if (!other.directoryEntries_.isEmpty()) { + if (directoryEntriesBuilder_.isEmpty()) { + directoryEntriesBuilder_.dispose(); + directoryEntriesBuilder_ = null; + directoryEntries_ = other.directoryEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + directoryEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDirectoryEntriesFieldBuilder() + : null; + } else { + directoryEntriesBuilder_.addAllMessages(other.directoryEntries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.DirectoryEntry m = + input.readMessage( + com.google.cloud.dataform.v1beta1.DirectoryEntry.parser(), + extensionRegistry); + if (directoryEntriesBuilder_ == null) { + ensureDirectoryEntriesIsMutable(); + directoryEntries_.add(m); + } else { + directoryEntriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List directoryEntries_ = + java.util.Collections.emptyList(); + + private void ensureDirectoryEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + directoryEntries_ = + new java.util.ArrayList( + directoryEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.DirectoryEntry, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder> + directoryEntriesBuilder_; + + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public java.util.List + getDirectoryEntriesList() { + if (directoryEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(directoryEntries_); + } else { + return directoryEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public int getDirectoryEntriesCount() { + if (directoryEntriesBuilder_ == null) { + return directoryEntries_.size(); + } else { + return directoryEntriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public com.google.cloud.dataform.v1beta1.DirectoryEntry getDirectoryEntries(int index) { + if (directoryEntriesBuilder_ == null) { + return directoryEntries_.get(index); + } else { + return directoryEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder setDirectoryEntries( + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry value) { + if (directoryEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDirectoryEntriesIsMutable(); + directoryEntries_.set(index, value); + onChanged(); + } else { + directoryEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder setDirectoryEntries( + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder builderForValue) { + if (directoryEntriesBuilder_ == null) { + ensureDirectoryEntriesIsMutable(); + directoryEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + directoryEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder addDirectoryEntries(com.google.cloud.dataform.v1beta1.DirectoryEntry value) { + if (directoryEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDirectoryEntriesIsMutable(); + directoryEntries_.add(value); + onChanged(); + } else { + directoryEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder addDirectoryEntries( + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry value) { + if (directoryEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDirectoryEntriesIsMutable(); + directoryEntries_.add(index, value); + onChanged(); + } else { + directoryEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder addDirectoryEntries( + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder builderForValue) { + if (directoryEntriesBuilder_ == null) { + ensureDirectoryEntriesIsMutable(); + directoryEntries_.add(builderForValue.build()); + onChanged(); + } else { + directoryEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder addDirectoryEntries( + int index, com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder builderForValue) { + if (directoryEntriesBuilder_ == null) { + ensureDirectoryEntriesIsMutable(); + directoryEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + directoryEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder addAllDirectoryEntries( + java.lang.Iterable values) { + if (directoryEntriesBuilder_ == null) { + ensureDirectoryEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, directoryEntries_); + onChanged(); + } else { + directoryEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder clearDirectoryEntries() { + if (directoryEntriesBuilder_ == null) { + directoryEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + directoryEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public Builder removeDirectoryEntries(int index) { + if (directoryEntriesBuilder_ == null) { + ensureDirectoryEntriesIsMutable(); + directoryEntries_.remove(index); + onChanged(); + } else { + directoryEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder getDirectoryEntriesBuilder( + int index) { + return getDirectoryEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder getDirectoryEntriesOrBuilder( + int index) { + if (directoryEntriesBuilder_ == null) { + return directoryEntries_.get(index); + } else { + return directoryEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public java.util.List + getDirectoryEntriesOrBuilderList() { + if (directoryEntriesBuilder_ != null) { + return directoryEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(directoryEntries_); + } + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder addDirectoryEntriesBuilder() { + return getDirectoryEntriesFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance()); + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder addDirectoryEntriesBuilder( + int index) { + return getDirectoryEntriesFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance()); + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + public java.util.List + getDirectoryEntriesBuilderList() { + return getDirectoryEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.DirectoryEntry, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder> + getDirectoryEntriesFieldBuilder() { + if (directoryEntriesBuilder_ == null) { + directoryEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.DirectoryEntry, + com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder>( + directoryEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + directoryEntries_ = null; + } + return directoryEntriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * 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; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryRepositoryDirectoryContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsResponseOrBuilder.java new file mode 100644 index 000000000000..640b46beddc6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryRepositoryDirectoryContentsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryRepositoryDirectoryContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + java.util.List getDirectoryEntriesList(); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + com.google.cloud.dataform.v1beta1.DirectoryEntry getDirectoryEntries(int index); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + int getDirectoryEntriesCount(); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + java.util.List + getDirectoryEntriesOrBuilderList(); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + com.google.cloud.dataform.v1beta1.DirectoryEntryOrBuilder getDirectoryEntriesOrBuilder(int index); + + /** + * + * + *
+   * 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; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * 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; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java index f76337a3f7ca..dc65d28dc496 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java @@ -126,8 +126,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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.
    * 
* @@ -148,8 +148,9 @@ public int getPageSize() { * * *
-   * 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
@@ -176,8 +177,9 @@ public java.lang.String getPageToken() {
    *
    *
    * 
-   * 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
@@ -722,8 +724,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * 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.
      * 
* @@ -739,8 +741,8 @@ public int getPageSize() { * * *
-     * 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.
      * 
* @@ -760,8 +762,8 @@ public Builder setPageSize(int value) { * * *
-     * 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.
      * 
* @@ -781,8 +783,9 @@ public Builder clearPageSize() { * * *
-     * 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
@@ -808,8 +811,9 @@ public java.lang.String getPageToken() {
      *
      *
      * 
-     * 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
@@ -835,8 +839,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      *
      *
      * 
-     * 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
@@ -861,8 +866,9 @@ public Builder setPageToken(java.lang.String value) {
      *
      *
      * 
-     * 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
@@ -883,8 +889,9 @@ public Builder clearPageToken() {
      *
      *
      * 
-     * 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/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java
index 3d6560c735e9..0e47aa56d6ea 100644
--- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java
+++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java
@@ -56,8 +56,8 @@ public interface QueryWorkflowInvocationActionsRequestOrBuilder
    *
    *
    * 
-   * 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.
    * 
* @@ -71,8 +71,9 @@ public interface QueryWorkflowInvocationActionsRequestOrBuilder * * *
-   * 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
@@ -88,8 +89,9 @@ public interface QueryWorkflowInvocationActionsRequestOrBuilder
    *
    *
    * 
-   * 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/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java
index cf75d0fe673f..db31a1888d84 100644
--- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java
+++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java
@@ -126,7 +126,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() {
    *
    *
    * 
-   * 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]; @@ -149,7 +150,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -656,7 +658,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -678,7 +681,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -700,7 +704,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -721,7 +726,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -738,7 +744,8 @@ public Builder clearPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java index 60c99f24175a..a5b97dff7d2e 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java @@ -56,7 +56,8 @@ public interface ReadFileRequestOrBuilder * * *
-   * 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]; @@ -68,7 +69,8 @@ public interface ReadFileRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileRequest.java new file mode 100644 index 000000000000..222bcfc936e6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileRequest.java @@ -0,0 +1,1010 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ReadRepositoryFile` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} + */ +public final class ReadRepositoryFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) + ReadRepositoryFileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadRepositoryFileRequest.newBuilder() to construct. + private ReadRepositoryFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadRepositoryFileRequest() { + name_ = ""; + commitSha_ = ""; + path_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadRepositoryFileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.class, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * + * + *
+   * Required. Full file path to read including filename, from repository root.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full file path to read including filename, from repository root.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitSha_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitSha_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest other = + (com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ReadRepositoryFile` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReadRepositoryFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.class, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + commitSha_ = ""; + path_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest build() { + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest result = + new com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitSha_ = commitSha_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.path_ = path_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest other) { + if (other == com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository's name.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitSha_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+     * Required. Full file path to read including filename, from repository root.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full file path to read including filename, from repository root.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full file path to read including filename, from repository root.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full file path to read including filename, from repository root.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full file path to read including filename, from repository root.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) + private static final com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest(); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRepositoryFileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileRequestOrBuilder.java new file mode 100644 index 000000000000..9ce16973be34 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ReadRepositoryFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ReadRepositoryFileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The repository's name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + + /** + * + * + *
+   * Required. Full file path to read including filename, from repository root.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+   * Required. Full file path to read including filename, from repository root.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileResponse.java new file mode 100644 index 000000000000..0c94eab8d29d --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileResponse.java @@ -0,0 +1,543 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ReadRepositoryFile` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} + */ +public final class ReadRepositoryFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) + ReadRepositoryFileResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadRepositoryFileResponse.newBuilder() to construct. + private ReadRepositoryFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadRepositoryFileResponse() { + contents_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadRepositoryFileResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.class, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.Builder.class); + } + + public static final int CONTENTS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+   * The file's contents.
+   * 
+ * + * bytes contents = 1; + * + * @return The contents. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContents() { + return contents_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!contents_.isEmpty()) { + output.writeBytes(1, contents_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!contents_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, contents_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse other = + (com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) obj; + + if (!getContents().equals(other.getContents())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContents().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `ReadRepositoryFile` response message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReadRepositoryFileResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.class, + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contents_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse build() { + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse result = + new com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contents_ = contents_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse.getDefaultInstance()) + return this; + if (other.getContents() != com.google.protobuf.ByteString.EMPTY) { + setContents(other.getContents()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + contents_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * The file's contents.
+     * 
+ * + * bytes contents = 1; + * + * @return The contents. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContents() { + return contents_; + } + /** + * + * + *
+     * The file's contents.
+     * 
+ * + * bytes contents = 1; + * + * @param value The contents to set. + * @return This builder for chaining. + */ + public Builder setContents(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + contents_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The file's contents.
+     * 
+ * + * bytes contents = 1; + * + * @return This builder for chaining. + */ + public Builder clearContents() { + bitField0_ = (bitField0_ & ~0x00000001); + contents_ = getDefaultInstance().getContents(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) + private static final com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse(); + } + + public static com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRepositoryFileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileResponseOrBuilder.java new file mode 100644 index 000000000000..a119e13bf0d1 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadRepositoryFileResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ReadRepositoryFileResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ReadRepositoryFileResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The file's contents.
+   * 
+ * + * bytes contents = 1; + * + * @return The contents. + */ + com.google.protobuf.ByteString getContents(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfig.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfig.java new file mode 100644 index 000000000000..214d1274ff45 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfig.java @@ -0,0 +1,3866 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a Dataform release configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReleaseConfig} + */ +public final class ReleaseConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ReleaseConfig) + ReleaseConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseConfig.newBuilder() to construct. + private ReleaseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseConfig() { + name_ = ""; + gitCommitish_ = ""; + cronSchedule_ = ""; + timeZone_ = ""; + recentScheduledReleaseRecords_ = java.util.Collections.emptyList(); + releaseCompilationResult_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReleaseConfig.class, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder.class); + } + + public interface ScheduledReleaseRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The timestamp of this release attempt.
+     * 
+ * + * .google.protobuf.Timestamp release_time = 1; + * + * @return Whether the releaseTime field is set. + */ + boolean hasReleaseTime(); + /** + * + * + *
+     * The timestamp of this release attempt.
+     * 
+ * + * .google.protobuf.Timestamp release_time = 1; + * + * @return The releaseTime. + */ + com.google.protobuf.Timestamp getReleaseTime(); + /** + * + * + *
+     * The timestamp of this release attempt.
+     * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getReleaseTimeOrBuilder(); + + /** + * + * + *
+     * 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) = { ... } + * + * @return Whether the compilationResult field is set. + */ + boolean hasCompilationResult(); + /** + * + * + *
+     * 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) = { ... } + * + * @return The compilationResult. + */ + java.lang.String getCompilationResult(); + /** + * + * + *
+     * 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) = { ... } + * + * @return The bytes for compilationResult. + */ + com.google.protobuf.ByteString getCompilationResultBytes(); + + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * compilation result, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return Whether the errorStatus field is set. + */ + boolean hasErrorStatus(); + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * compilation result, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return The errorStatus. + */ + com.google.rpc.Status getErrorStatus(); + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * compilation result, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + */ + com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder(); + + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.ResultCase + getResultCase(); + } + /** + * + * + *
+   * A record of an attempt to create a compilation result for this release
+   * config.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} + */ + public static final class ScheduledReleaseRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) + ScheduledReleaseRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScheduledReleaseRecord.newBuilder() to construct. + private ScheduledReleaseRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ScheduledReleaseRecord() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScheduledReleaseRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.class, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COMPILATION_RESULT(2), + ERROR_STATUS(3), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 2: + return COMPILATION_RESULT; + case 3: + return ERROR_STATUS; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int RELEASE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp releaseTime_; + /** + * + * + *
+     * The timestamp of this release attempt.
+     * 
+ * + * .google.protobuf.Timestamp release_time = 1; + * + * @return Whether the releaseTime field is set. + */ + @java.lang.Override + public boolean hasReleaseTime() { + return releaseTime_ != null; + } + /** + * + * + *
+     * The timestamp of this release attempt.
+     * 
+ * + * .google.protobuf.Timestamp release_time = 1; + * + * @return The releaseTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getReleaseTime() { + return releaseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : releaseTime_; + } + /** + * + * + *
+     * The timestamp of this release attempt.
+     * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getReleaseTimeOrBuilder() { + return releaseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : releaseTime_; + } + + public static final int COMPILATION_RESULT_FIELD_NUMBER = 2; + /** + * + * + *
+     * 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) = { ... } + * + * @return Whether the compilationResult field is set. + */ + public boolean hasCompilationResult() { + return resultCase_ == 2; + } + /** + * + * + *
+     * 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) = { ... } + * + * @return The compilationResult. + */ + public java.lang.String getCompilationResult() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 2) { + result_ = s; + } + return s; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * @return The bytes for compilationResult. + */ + public com.google.protobuf.ByteString getCompilationResultBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 2) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_STATUS_FIELD_NUMBER = 3; + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * compilation result, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return Whether the errorStatus field is set. + */ + @java.lang.Override + public boolean hasErrorStatus() { + return resultCase_ == 3; + } + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * compilation result, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return The errorStatus. + */ + @java.lang.Override + public com.google.rpc.Status getErrorStatus() { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * compilation result, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (releaseTime_ != null) { + output.writeMessage(1, getReleaseTime()); + } + if (resultCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, result_); + } + if (resultCase_ == 3) { + output.writeMessage(3, (com.google.rpc.Status) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (releaseTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReleaseTime()); + } + if (resultCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, result_); + } + if (resultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.rpc.Status) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord other = + (com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) obj; + + if (hasReleaseTime() != other.hasReleaseTime()) return false; + if (hasReleaseTime()) { + if (!getReleaseTime().equals(other.getReleaseTime())) return false; + } + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 2: + if (!getCompilationResult().equals(other.getCompilationResult())) return false; + break; + case 3: + if (!getErrorStatus().equals(other.getErrorStatus())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReleaseTime()) { + hash = (37 * hash) + RELEASE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getReleaseTime().hashCode(); + } + switch (resultCase_) { + case 2: + hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCompilationResult().hashCode(); + break; + case 3: + hash = (37 * hash) + ERROR_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getErrorStatus().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A record of an attempt to create a compilation result for this release
+     * config.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.class, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + releaseTime_ = null; + if (releaseTimeBuilder_ != null) { + releaseTimeBuilder_.dispose(); + releaseTimeBuilder_ = null; + } + if (errorStatusBuilder_ != null) { + errorStatusBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_ScheduledReleaseRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord build() { + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord buildPartial() { + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord result = + new com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.releaseTime_ = + releaseTimeBuilder_ == null ? releaseTime_ : releaseTimeBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 3 && errorStatusBuilder_ != null) { + result.result_ = errorStatusBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord other) { + if (other + == com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + .getDefaultInstance()) return this; + if (other.hasReleaseTime()) { + mergeReleaseTime(other.getReleaseTime()); + } + switch (other.getResultCase()) { + case COMPILATION_RESULT: + { + resultCase_ = 2; + result_ = other.result_; + onChanged(); + break; + } + case ERROR_STATUS: + { + mergeErrorStatus(other.getErrorStatus()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReleaseTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + resultCase_ = 2; + result_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorStatusFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp releaseTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + releaseTimeBuilder_; + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + * + * @return Whether the releaseTime field is set. + */ + public boolean hasReleaseTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + * + * @return The releaseTime. + */ + public com.google.protobuf.Timestamp getReleaseTime() { + if (releaseTimeBuilder_ == null) { + return releaseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : releaseTime_; + } else { + return releaseTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + public Builder setReleaseTime(com.google.protobuf.Timestamp value) { + if (releaseTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseTime_ = value; + } else { + releaseTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + public Builder setReleaseTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (releaseTimeBuilder_ == null) { + releaseTime_ = builderForValue.build(); + } else { + releaseTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + public Builder mergeReleaseTime(com.google.protobuf.Timestamp value) { + if (releaseTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && releaseTime_ != null + && releaseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getReleaseTimeBuilder().mergeFrom(value); + } else { + releaseTime_ = value; + } + } else { + releaseTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + public Builder clearReleaseTime() { + bitField0_ = (bitField0_ & ~0x00000001); + releaseTime_ = null; + if (releaseTimeBuilder_ != null) { + releaseTimeBuilder_.dispose(); + releaseTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getReleaseTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReleaseTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getReleaseTimeOrBuilder() { + if (releaseTimeBuilder_ != null) { + return releaseTimeBuilder_.getMessageOrBuilder(); + } else { + return releaseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : releaseTime_; + } + } + /** + * + * + *
+       * The timestamp of this release attempt.
+       * 
+ * + * .google.protobuf.Timestamp release_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getReleaseTimeFieldBuilder() { + if (releaseTimeBuilder_ == null) { + releaseTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReleaseTime(), getParentForChildren(), isClean()); + releaseTime_ = null; + } + return releaseTimeBuilder_; + } + + /** + * + * + *
+       * 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) = { ... } + * + * @return Whether the compilationResult field is set. + */ + @java.lang.Override + public boolean hasCompilationResult() { + return resultCase_ == 2; + } + /** + * + * + *
+       * 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) = { ... } + * + * @return The compilationResult. + */ + @java.lang.Override + public java.lang.String getCompilationResult() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 2) { + result_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * 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) = { ... } + * + * @return The bytes for compilationResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompilationResultBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 2) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * 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) = { ... } + * + * @param value The compilationResult to set. + * @return This builder for chaining. + */ + public Builder setCompilationResult(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resultCase_ = 2; + result_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * 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) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCompilationResult() { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * 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) = { ... } + * + * @param value The bytes for compilationResult to set. + * @return This builder for chaining. + */ + public Builder setCompilationResultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resultCase_ = 2; + result_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorStatusBuilder_; + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return Whether the errorStatus field is set. + */ + @java.lang.Override + public boolean hasErrorStatus() { + return resultCase_ == 3; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return The errorStatus. + */ + @java.lang.Override + public com.google.rpc.Status getErrorStatus() { + if (errorStatusBuilder_ == null) { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (resultCase_ == 3) { + return errorStatusBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder setErrorStatus(com.google.rpc.Status value) { + if (errorStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + errorStatusBuilder_.setMessage(value); + } + resultCase_ = 3; + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) { + if (errorStatusBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + errorStatusBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 3; + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder mergeErrorStatus(com.google.rpc.Status value) { + if (errorStatusBuilder_ == null) { + if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 3) { + errorStatusBuilder_.mergeFrom(value); + } else { + errorStatusBuilder_.setMessage(value); + } + } + resultCase_ = 3; + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder clearErrorStatus() { + if (errorStatusBuilder_ == null) { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + } + errorStatusBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public com.google.rpc.Status.Builder getErrorStatusBuilder() { + return getErrorStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { + if ((resultCase_ == 3) && (errorStatusBuilder_ != null)) { + return errorStatusBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * compilation result, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorStatusFieldBuilder() { + if (errorStatusBuilder_ == null) { + if (!(resultCase_ == 3)) { + result_ = com.google.rpc.Status.getDefaultInstance(); + } + errorStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + result_ = null; + } + resultCase_ = 3; + onChanged(); + return errorStatusBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord) + private static final com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord(); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScheduledReleaseRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The release config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The release config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_COMMITISH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gitCommitish_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The gitCommitish. + */ + @java.lang.Override + public java.lang.String getGitCommitish() { + java.lang.Object ref = gitCommitish_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitCommitish_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for gitCommitish. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGitCommitishBytes() { + java.lang.Object ref = gitCommitish_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitCommitish_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_COMPILATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dataform.v1beta1.CodeCompilationConfig codeCompilationConfig_; + /** + * + * + *
+   * Optional. If set, fields of `code_compilation_config` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeCompilationConfig field is set. + */ + @java.lang.Override + public boolean hasCodeCompilationConfig() { + return codeCompilationConfig_ != null; + } + /** + * + * + *
+   * Optional. If set, fields of `code_compilation_config` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeCompilationConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig getCodeCompilationConfig() { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() + : codeCompilationConfig_; + } + /** + * + * + *
+   * Optional. If set, fields of `code_compilation_config` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder + getCodeCompilationConfigOrBuilder() { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() + : codeCompilationConfig_; + } + + public static final int CRON_SCHEDULE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object cronSchedule_ = ""; + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic creation of
+   * compilation results.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cronSchedule. + */ + @java.lang.Override + public java.lang.String getCronSchedule() { + java.lang.Object ref = cronSchedule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cronSchedule_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic creation of
+   * compilation results.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cronSchedule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCronScheduleBytes() { + java.lang.Object ref = cronSchedule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cronSchedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECENT_SCHEDULED_RELEASE_RECORDS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + recentScheduledReleaseRecords_; + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRecentScheduledReleaseRecordsList() { + return recentScheduledReleaseRecords_; + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder> + getRecentScheduledReleaseRecordsOrBuilderList() { + return recentScheduledReleaseRecords_; + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRecentScheduledReleaseRecordsCount() { + return recentScheduledReleaseRecords_.size(); + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + getRecentScheduledReleaseRecords(int index) { + return recentScheduledReleaseRecords_.get(index); + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder + getRecentScheduledReleaseRecordsOrBuilder(int index) { + return recentScheduledReleaseRecords_.get(index); + } + + public static final int RELEASE_COMPILATION_RESULT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseCompilationResult_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The releaseCompilationResult. + */ + @java.lang.Override + public java.lang.String getReleaseCompilationResult() { + java.lang.Object ref = releaseCompilationResult_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseCompilationResult_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for releaseCompilationResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseCompilationResultBytes() { + java.lang.Object ref = releaseCompilationResult_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseCompilationResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommitish_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gitCommitish_); + } + if (codeCompilationConfig_ != null) { + output.writeMessage(3, getCodeCompilationConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cronSchedule_); + } + for (int i = 0; i < recentScheduledReleaseRecords_.size(); i++) { + output.writeMessage(5, recentScheduledReleaseRecords_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseCompilationResult_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, releaseCompilationResult_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommitish_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gitCommitish_); + } + if (codeCompilationConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCodeCompilationConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cronSchedule_); + } + for (int i = 0; i < recentScheduledReleaseRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, recentScheduledReleaseRecords_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseCompilationResult_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(6, releaseCompilationResult_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ReleaseConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ReleaseConfig other = + (com.google.cloud.dataform.v1beta1.ReleaseConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getGitCommitish().equals(other.getGitCommitish())) return false; + if (hasCodeCompilationConfig() != other.hasCodeCompilationConfig()) return false; + if (hasCodeCompilationConfig()) { + if (!getCodeCompilationConfig().equals(other.getCodeCompilationConfig())) return false; + } + if (!getCronSchedule().equals(other.getCronSchedule())) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getRecentScheduledReleaseRecordsList() + .equals(other.getRecentScheduledReleaseRecordsList())) return false; + if (!getReleaseCompilationResult().equals(other.getReleaseCompilationResult())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + GIT_COMMITISH_FIELD_NUMBER; + hash = (53 * hash) + getGitCommitish().hashCode(); + if (hasCodeCompilationConfig()) { + hash = (37 * hash) + CODE_COMPILATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCodeCompilationConfig().hashCode(); + } + hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getCronSchedule().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (getRecentScheduledReleaseRecordsCount() > 0) { + hash = (37 * hash) + RECENT_SCHEDULED_RELEASE_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getRecentScheduledReleaseRecordsList().hashCode(); + } + hash = (37 * hash) + RELEASE_COMPILATION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getReleaseCompilationResult().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.ReleaseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a Dataform release configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReleaseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ReleaseConfig) + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReleaseConfig.class, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ReleaseConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + gitCommitish_ = ""; + codeCompilationConfig_ = null; + if (codeCompilationConfigBuilder_ != null) { + codeCompilationConfigBuilder_.dispose(); + codeCompilationConfigBuilder_ = null; + } + cronSchedule_ = ""; + timeZone_ = ""; + if (recentScheduledReleaseRecordsBuilder_ == null) { + recentScheduledReleaseRecords_ = java.util.Collections.emptyList(); + } else { + recentScheduledReleaseRecords_ = null; + recentScheduledReleaseRecordsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + releaseCompilationResult_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig build() { + com.google.cloud.dataform.v1beta1.ReleaseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig buildPartial() { + com.google.cloud.dataform.v1beta1.ReleaseConfig result = + new com.google.cloud.dataform.v1beta1.ReleaseConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.ReleaseConfig result) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + recentScheduledReleaseRecords_ = + java.util.Collections.unmodifiableList(recentScheduledReleaseRecords_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.recentScheduledReleaseRecords_ = recentScheduledReleaseRecords_; + } else { + result.recentScheduledReleaseRecords_ = recentScheduledReleaseRecordsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.ReleaseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gitCommitish_ = gitCommitish_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.codeCompilationConfig_ = + codeCompilationConfigBuilder_ == null + ? codeCompilationConfig_ + : codeCompilationConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cronSchedule_ = cronSchedule_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.releaseCompilationResult_ = releaseCompilationResult_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ReleaseConfig) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ReleaseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ReleaseConfig other) { + if (other == com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGitCommitish().isEmpty()) { + gitCommitish_ = other.gitCommitish_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCodeCompilationConfig()) { + mergeCodeCompilationConfig(other.getCodeCompilationConfig()); + } + if (!other.getCronSchedule().isEmpty()) { + cronSchedule_ = other.cronSchedule_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (recentScheduledReleaseRecordsBuilder_ == null) { + if (!other.recentScheduledReleaseRecords_.isEmpty()) { + if (recentScheduledReleaseRecords_.isEmpty()) { + recentScheduledReleaseRecords_ = other.recentScheduledReleaseRecords_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.addAll(other.recentScheduledReleaseRecords_); + } + onChanged(); + } + } else { + if (!other.recentScheduledReleaseRecords_.isEmpty()) { + if (recentScheduledReleaseRecordsBuilder_.isEmpty()) { + recentScheduledReleaseRecordsBuilder_.dispose(); + recentScheduledReleaseRecordsBuilder_ = null; + recentScheduledReleaseRecords_ = other.recentScheduledReleaseRecords_; + bitField0_ = (bitField0_ & ~0x00000020); + recentScheduledReleaseRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecentScheduledReleaseRecordsFieldBuilder() + : null; + } else { + recentScheduledReleaseRecordsBuilder_.addAllMessages( + other.recentScheduledReleaseRecords_); + } + } + } + if (!other.getReleaseCompilationResult().isEmpty()) { + releaseCompilationResult_ = other.releaseCompilationResult_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gitCommitish_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCodeCompilationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + cronSchedule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord m = + input.readMessage( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + .parser(), + extensionRegistry); + if (recentScheduledReleaseRecordsBuilder_ == null) { + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.add(m); + } else { + recentScheduledReleaseRecordsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + releaseCompilationResult_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The release config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The release config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The release config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The release config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The release config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gitCommitish_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The gitCommitish. + */ + public java.lang.String getGitCommitish() { + java.lang.Object ref = gitCommitish_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitCommitish_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for gitCommitish. + */ + public com.google.protobuf.ByteString getGitCommitishBytes() { + java.lang.Object ref = gitCommitish_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitCommitish_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The gitCommitish to set. + * @return This builder for chaining. + */ + public Builder setGitCommitish(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitCommitish_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearGitCommitish() { + gitCommitish_ = getDefaultInstance().getGitCommitish(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for gitCommitish to set. + * @return This builder for chaining. + */ + public Builder setGitCommitishBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitCommitish_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CodeCompilationConfig codeCompilationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder> + codeCompilationConfigBuilder_; + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeCompilationConfig field is set. + */ + public boolean hasCodeCompilationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeCompilationConfig. + */ + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig getCodeCompilationConfig() { + if (codeCompilationConfigBuilder_ == null) { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() + : codeCompilationConfig_; + } else { + return codeCompilationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeCompilationConfig( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig value) { + if (codeCompilationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + codeCompilationConfig_ = value; + } else { + codeCompilationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeCompilationConfig( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder builderForValue) { + if (codeCompilationConfigBuilder_ == null) { + codeCompilationConfig_ = builderForValue.build(); + } else { + codeCompilationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCodeCompilationConfig( + com.google.cloud.dataform.v1beta1.CodeCompilationConfig value) { + if (codeCompilationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && codeCompilationConfig_ != null + && codeCompilationConfig_ + != com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance()) { + getCodeCompilationConfigBuilder().mergeFrom(value); + } else { + codeCompilationConfig_ = value; + } + } else { + codeCompilationConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCodeCompilationConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + codeCompilationConfig_ = null; + if (codeCompilationConfigBuilder_ != null) { + codeCompilationConfigBuilder_.dispose(); + codeCompilationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder + getCodeCompilationConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCodeCompilationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder + getCodeCompilationConfigOrBuilder() { + if (codeCompilationConfigBuilder_ != null) { + return codeCompilationConfigBuilder_.getMessageOrBuilder(); + } else { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.CodeCompilationConfig.getDefaultInstance() + : codeCompilationConfig_; + } + } + /** + * + * + *
+     * Optional. If set, fields of `code_compilation_config` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder> + getCodeCompilationConfigFieldBuilder() { + if (codeCompilationConfigBuilder_ == null) { + codeCompilationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder>( + getCodeCompilationConfig(), getParentForChildren(), isClean()); + codeCompilationConfig_ = null; + } + return codeCompilationConfigBuilder_; + } + + private java.lang.Object cronSchedule_ = ""; + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic creation of
+     * compilation results.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cronSchedule. + */ + public java.lang.String getCronSchedule() { + java.lang.Object ref = cronSchedule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cronSchedule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic creation of
+     * compilation results.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cronSchedule. + */ + public com.google.protobuf.ByteString getCronScheduleBytes() { + java.lang.Object ref = cronSchedule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cronSchedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic creation of
+     * compilation results.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cronSchedule to set. + * @return This builder for chaining. + */ + public Builder setCronSchedule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cronSchedule_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic creation of
+     * compilation results.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCronSchedule() { + cronSchedule_ = getDefaultInstance().getCronSchedule(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic creation of
+     * compilation results.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cronSchedule to set. + * @return This builder for chaining. + */ + public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cronSchedule_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List + recentScheduledReleaseRecords_ = java.util.Collections.emptyList(); + + private void ensureRecentScheduledReleaseRecordsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + recentScheduledReleaseRecords_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord>( + recentScheduledReleaseRecords_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder> + recentScheduledReleaseRecordsBuilder_; + + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentScheduledReleaseRecordsList() { + if (recentScheduledReleaseRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentScheduledReleaseRecords_); + } else { + return recentScheduledReleaseRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRecentScheduledReleaseRecordsCount() { + if (recentScheduledReleaseRecordsBuilder_ == null) { + return recentScheduledReleaseRecords_.size(); + } else { + return recentScheduledReleaseRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + getRecentScheduledReleaseRecords(int index) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + return recentScheduledReleaseRecords_.get(index); + } else { + return recentScheduledReleaseRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentScheduledReleaseRecords( + int index, com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord value) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.set(index, value); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentScheduledReleaseRecords( + int index, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + builderForValue) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledReleaseRecords( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord value) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.add(value); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledReleaseRecords( + int index, com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord value) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.add(index, value); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledReleaseRecords( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + builderForValue) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.add(builderForValue.build()); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledReleaseRecords( + int index, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + builderForValue) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRecentScheduledReleaseRecords( + java.lang.Iterable< + ? extends com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord> + values) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + ensureRecentScheduledReleaseRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recentScheduledReleaseRecords_); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRecentScheduledReleaseRecords() { + if (recentScheduledReleaseRecordsBuilder_ == null) { + recentScheduledReleaseRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRecentScheduledReleaseRecords(int index) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + ensureRecentScheduledReleaseRecordsIsMutable(); + recentScheduledReleaseRecords_.remove(index); + onChanged(); + } else { + recentScheduledReleaseRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + getRecentScheduledReleaseRecordsBuilder(int index) { + return getRecentScheduledReleaseRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder + getRecentScheduledReleaseRecordsOrBuilder(int index) { + if (recentScheduledReleaseRecordsBuilder_ == null) { + return recentScheduledReleaseRecords_.get(index); + } else { + return recentScheduledReleaseRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder> + getRecentScheduledReleaseRecordsOrBuilderList() { + if (recentScheduledReleaseRecordsBuilder_ != null) { + return recentScheduledReleaseRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentScheduledReleaseRecords_); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + addRecentScheduledReleaseRecordsBuilder() { + return getRecentScheduledReleaseRecordsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + .getDefaultInstance()); + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder + addRecentScheduledReleaseRecordsBuilder(int index) { + return getRecentScheduledReleaseRecordsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + .getDefaultInstance()); + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder> + getRecentScheduledReleaseRecordsBuilderList() { + return getRecentScheduledReleaseRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder> + getRecentScheduledReleaseRecordsFieldBuilder() { + if (recentScheduledReleaseRecordsBuilder_ == null) { + recentScheduledReleaseRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder>( + recentScheduledReleaseRecords_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + recentScheduledReleaseRecords_ = null; + } + return recentScheduledReleaseRecordsBuilder_; + } + + private java.lang.Object releaseCompilationResult_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The releaseCompilationResult. + */ + public java.lang.String getReleaseCompilationResult() { + java.lang.Object ref = releaseCompilationResult_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseCompilationResult_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for releaseCompilationResult. + */ + public com.google.protobuf.ByteString getReleaseCompilationResultBytes() { + java.lang.Object ref = releaseCompilationResult_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseCompilationResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The releaseCompilationResult to set. + * @return This builder for chaining. + */ + public Builder setReleaseCompilationResult(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseCompilationResult_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearReleaseCompilationResult() { + releaseCompilationResult_ = getDefaultInstance().getReleaseCompilationResult(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for releaseCompilationResult to set. + * @return This builder for chaining. + */ + public Builder setReleaseCompilationResultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseCompilationResult_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ReleaseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ReleaseConfig) + private static final com.google.cloud.dataform.v1beta1.ReleaseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ReleaseConfig(); + } + + public static com.google.cloud.dataform.v1beta1.ReleaseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java new file mode 100644 index 000000000000..4fbe535daa75 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java @@ -0,0 +1,269 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ReleaseConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REPOSITORY_RELEASE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String repository; + private final String releaseConfig; + + @Deprecated + protected ReleaseConfigName() { + project = null; + location = null; + repository = null; + releaseConfig = null; + } + + private ReleaseConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + repository = Preconditions.checkNotNull(builder.getRepository()); + releaseConfig = Preconditions.checkNotNull(builder.getReleaseConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getReleaseConfig() { + return releaseConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ReleaseConfigName of( + String project, String location, String repository, String releaseConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setReleaseConfig(releaseConfig) + .build(); + } + + public static String format( + String project, String location, String repository, String releaseConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setReleaseConfig(releaseConfig) + .build() + .toString(); + } + + public static ReleaseConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REPOSITORY_RELEASE_CONFIG.validatedMatch( + formattedString, "ReleaseConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("repository"), + matchMap.get("release_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ReleaseConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REPOSITORY_RELEASE_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (repository != null) { + fieldMapBuilder.put("repository", repository); + } + if (releaseConfig != null) { + fieldMapBuilder.put("release_config", releaseConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REPOSITORY_RELEASE_CONFIG.instantiate( + "project", + project, + "location", + location, + "repository", + repository, + "release_config", + releaseConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ReleaseConfigName that = ((ReleaseConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.repository, that.repository) + && Objects.equals(this.releaseConfig, that.releaseConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(repository); + h *= 1000003; + h ^= Objects.hashCode(releaseConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}. + */ + public static class Builder { + private String project; + private String location; + private String repository; + private String releaseConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getReleaseConfig() { + return releaseConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRepository(String repository) { + this.repository = repository; + return this; + } + + public Builder setReleaseConfig(String releaseConfig) { + this.releaseConfig = releaseConfig; + return this; + } + + private Builder(ReleaseConfigName releaseConfigName) { + this.project = releaseConfigName.project; + this.location = releaseConfigName.location; + this.repository = releaseConfigName.repository; + this.releaseConfig = releaseConfigName.releaseConfig; + } + + public ReleaseConfigName build() { + return new ReleaseConfigName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigOrBuilder.java new file mode 100644 index 000000000000..cf371e77d228 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigOrBuilder.java @@ -0,0 +1,301 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ReleaseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ReleaseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The release config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The release config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The gitCommitish. + */ + java.lang.String getGitCommitish(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for gitCommitish. + */ + com.google.protobuf.ByteString getGitCommitishBytes(); + + /** + * + * + *
+   * Optional. If set, fields of `code_compilation_config` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeCompilationConfig field is set. + */ + boolean hasCodeCompilationConfig(); + /** + * + * + *
+   * Optional. If set, fields of `code_compilation_config` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeCompilationConfig. + */ + com.google.cloud.dataform.v1beta1.CodeCompilationConfig getCodeCompilationConfig(); + /** + * + * + *
+   * Optional. If set, fields of `code_compilation_config` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.CodeCompilationConfigOrBuilder + getCodeCompilationConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic creation of
+   * compilation results.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cronSchedule. + */ + java.lang.String getCronSchedule(); + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic creation of
+   * compilation results.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cronSchedule. + */ + com.google.protobuf.ByteString getCronScheduleBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRecentScheduledReleaseRecordsList(); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + getRecentScheduledReleaseRecords(int index); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRecentScheduledReleaseRecordsCount(); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder> + getRecentScheduledReleaseRecordsOrBuilderList(); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordOrBuilder + getRecentScheduledReleaseRecordsOrBuilder(int index); + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The releaseCompilationResult. + */ + java.lang.String getReleaseCompilationResult(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for releaseCompilationResult. + */ + com.google.protobuf.ByteString getReleaseCompilationResultBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java index f1cb2fd5f46a..a9b4cb854a6d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java @@ -126,8 +126,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -150,8 +150,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -659,8 +659,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -682,8 +682,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -705,8 +705,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -727,8 +727,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -745,8 +745,8 @@ public Builder clearPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java index 73bd83702aba..d05d619e7672 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java @@ -56,8 +56,8 @@ public interface RemoveDirectoryRequestOrBuilder * * *
-   * 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]; @@ -69,8 +69,8 @@ public interface RemoveDirectoryRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java index 5f2bc2f3a8c5..189f215632db 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java @@ -126,7 +126,8 @@ public com.google.protobuf.ByteString getWorkspaceBytes() { * * *
-   * 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]; @@ -149,7 +150,8 @@ public java.lang.String getPath() { * * *
-   * 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]; @@ -656,7 +658,8 @@ public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { * * *
-     * 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]; @@ -678,7 +681,8 @@ public java.lang.String getPath() { * * *
-     * 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]; @@ -700,7 +704,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * 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]; @@ -721,7 +726,8 @@ public Builder setPath(java.lang.String value) { * * *
-     * 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]; @@ -738,7 +744,8 @@ public Builder clearPath() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java index 61984bccc5cc..ac64c0e13b75 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java @@ -56,7 +56,8 @@ public interface RemoveFileRequestOrBuilder * * *
-   * 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]; @@ -68,7 +69,8 @@ public interface RemoveFileRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java index 191b833814b0..a4f989fea43e 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java @@ -39,6 +39,9 @@ private Repository(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Repository() { name_ = ""; + displayName_ = ""; + npmrcEnvironmentVariablesSecretVersion_ = ""; + serviceAccount_ = ""; } @java.lang.Override @@ -52,6 +55,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -121,13 +135,13 @@ public interface GitRemoteSettingsOrBuilder * * *
-     * 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.resource_reference) = { ... } + * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The authenticationTokenSecretVersion. @@ -137,13 +151,13 @@ public interface GitRemoteSettingsOrBuilder * * *
-     * 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.resource_reference) = { ... } + * string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for authenticationTokenSecretVersion. @@ -154,29 +168,82 @@ public interface GitRemoteSettingsOrBuilder * * *
-     * Output only. Indicates the status of the Git access token.
+     * Optional. Authentication fields for remote uris using SSH protocol.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sshAuthenticationConfig field is set. + */ + boolean hasSshAuthenticationConfig(); + /** + * + * + *
+     * Optional. Authentication fields for remote uris using SSH protocol.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sshAuthenticationConfig. + */ + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + getSshAuthenticationConfig(); + /** + * + * + *
+     * Optional. Authentication fields for remote uris using SSH protocol.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfigOrBuilder + getSshAuthenticationConfigOrBuilder(); + + /** + * + * + *
+     * 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
      * 
* * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 * @return The enum numeric value on the wire for tokenStatus. */ + @java.lang.Deprecated int getTokenStatusValue(); /** * * *
-     * Output only. Indicates the status of the Git access token.
+     * 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
      * 
* * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 * @return The tokenStatus. */ + @java.lang.Deprecated com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus getTokenStatus(); } /** @@ -227,12 +294,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } /** - * - * - *
-     * Indicates the status of a Git authentication token.
-     * 
- * * Protobuf enum {@code google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus} */ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { @@ -409,1812 +470,5620 @@ private TokenStatus(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus) } - public static final int URL_FIELD_NUMBER = 1; + public interface SshAuthenticationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; - /** - * - * - *
-     * Required. The Git remote's URL.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } + /** + * + * + *
+       * 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) = { ... } + * + * + * @return The userPrivateKeySecretVersion. + */ + java.lang.String getUserPrivateKeySecretVersion(); + /** + * + * + *
+       * 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) = { ... } + * + * + * @return The bytes for userPrivateKeySecretVersion. + */ + com.google.protobuf.ByteString getUserPrivateKeySecretVersionBytes(); + + /** + * + * + *
+       * 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]; + * + * @return The hostPublicKey. + */ + java.lang.String getHostPublicKey(); + /** + * + * + *
+       * 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]; + * + * @return The bytes for hostPublicKey. + */ + com.google.protobuf.ByteString getHostPublicKeyBytes(); } /** * * *
-     * Required. The Git remote's URL.
+     * Configures fields for performing SSH authentication.
      * 
* - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for url. + * Protobuf type {@code + * google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} */ - @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class SshAuthenticationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig) + SshAuthenticationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SshAuthenticationConfig.newBuilder() to construct. + private SshAuthenticationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - - public static final int DEFAULT_BRANCH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultBranch_ = ""; - /** - * - * - *
-     * Required. The Git remote's default branch name.
-     * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The defaultBranch. - */ - @java.lang.Override - public java.lang.String getDefaultBranch() { - java.lang.Object ref = defaultBranch_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultBranch_ = s; - return s; - } - } - /** - * - * - *
-     * Required. The Git remote's default branch name.
-     * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for defaultBranch. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultBranchBytes() { - java.lang.Object ref = defaultBranch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultBranch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private SshAuthenticationConfig() { + userPrivateKeySecretVersion_ = ""; + hostPublicKey_ = ""; } - } - public static final int AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER = 3; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SshAuthenticationConfig(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object authenticationTokenSecretVersion_ = ""; - /** - * - * - *
-     * Required. 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.resource_reference) = { ... } - * - * - * @return The authenticationTokenSecretVersion. - */ - @java.lang.Override - public java.lang.String getAuthenticationTokenSecretVersion() { - java.lang.Object ref = authenticationTokenSecretVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authenticationTokenSecretVersion_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor; } - } - /** - * - * - *
-     * Required. 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.resource_reference) = { ... } - * - * - * @return The bytes for authenticationTokenSecretVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes() { - java.lang.Object ref = authenticationTokenSecretVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authenticationTokenSecretVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.class, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.Builder.class); } - } - public static final int TOKEN_STATUS_FIELD_NUMBER = 4; - private int tokenStatus_ = 0; - /** - * - * - *
-     * Output only. Indicates the status of the Git access token.
-     * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tokenStatus. - */ - @java.lang.Override - public int getTokenStatusValue() { - return tokenStatus_; - } - /** - * - * - *
-     * Output only. Indicates the status of the Git access token.
-     * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tokenStatus. - */ - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus - getTokenStatus() { - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus result = - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.forNumber( - tokenStatus_); - return result == null - ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; + public static final int USER_PRIVATE_KEY_SECRET_VERSION_FIELD_NUMBER = 1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private volatile java.lang.Object userPrivateKeySecretVersion_ = ""; + /** + * + * + *
+       * 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) = { ... } + * + * + * @return The userPrivateKeySecretVersion. + */ + @java.lang.Override + public java.lang.String getUserPrivateKeySecretVersion() { + java.lang.Object ref = userPrivateKeySecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPrivateKeySecretVersion_ = s; + return s; + } + } + /** + * + * + *
+       * 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) = { ... } + * + * + * @return The bytes for userPrivateKeySecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPrivateKeySecretVersionBytes() { + java.lang.Object ref = userPrivateKeySecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPrivateKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - memoizedIsInitialized = 1; - return true; - } + public static final int HOST_PUBLIC_KEY_FIELD_NUMBER = 2; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + @SuppressWarnings("serial") + private volatile java.lang.Object hostPublicKey_ = ""; + /** + * + * + *
+       * 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]; + * + * @return The hostPublicKey. + */ + @java.lang.Override + public java.lang.String getHostPublicKey() { + java.lang.Object ref = hostPublicKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostPublicKey_ = s; + return s; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultBranch_); + /** + * + * + *
+       * 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]; + * + * @return The bytes for hostPublicKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostPublicKeyBytes() { + java.lang.Object ref = hostPublicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( - authenticationTokenSecretVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, authenticationTokenSecretVersion_); + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - if (tokenStatus_ - != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus - .TOKEN_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, tokenStatus_); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPrivateKeySecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, userPrivateKeySecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostPublicKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostPublicKey_); + } + getUnknownFields().writeTo(output); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPrivateKeySecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 1, userPrivateKeySecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostPublicKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostPublicKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + other = + (com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig) + obj; + + if (!getUserPrivateKeySecretVersion().equals(other.getUserPrivateKeySecretVersion())) + return false; + if (!getHostPublicKey().equals(other.getHostPublicKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultBranch_); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_PRIVATE_KEY_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getUserPrivateKeySecretVersion().hashCode(); + hash = (37 * hash) + HOST_PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getHostPublicKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( - authenticationTokenSecretVersion_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 3, authenticationTokenSecretVersion_); + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (tokenStatus_ - != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus - .TOKEN_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, tokenStatus_); + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (!(obj instanceof com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings)) { - return super.equals(obj); + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings other = - (com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) obj; - if (!getUrl().equals(other.getUrl())) return false; - if (!getDefaultBranch().equals(other.getDefaultBranch())) return false; - if (!getAuthenticationTokenSecretVersion() - .equals(other.getAuthenticationTokenSecretVersion())) return false; - if (tokenStatus_ != other.tokenStatus_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + DEFAULT_BRANCH_FIELD_NUMBER; - hash = (53 * hash) + getDefaultBranch().hashCode(); - hash = (37 * hash) + AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getAuthenticationTokenSecretVersion().hashCode(); - hash = (37 * hash) + TOKEN_STATUS_FIELD_NUMBER; - hash = (53 * hash) + tokenStatus_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Controls Git remote configuration for a repository.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1beta1.Repository.GitRemoteSettings} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.class, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder.class); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } + /** + * + * + *
+       * Configures fields for performing SSH authentication.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig) + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor; + } - // Construct using com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.newBuilder() - private Builder() {} + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.class, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.Builder.class); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + // Construct using + // com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig.newBuilder() + private Builder() {} - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - url_ = ""; - defaultBranch_ = ""; - authenticationTokenSecretVersion_ = ""; - tokenStatus_ = 0; - return this; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userPrivateKeySecretVersion_ = ""; + hostPublicKey_ = ""; + return this; + } - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor; + } - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings build() { - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.getDefaultInstance(); } - return result; - } - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings buildPartial() { - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result = - new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + build() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - onBuilt(); - return result; - } - private void buildPartial0( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.url_ = url_; + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + buildPartial() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + result = + new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultBranch_ = defaultBranch_; + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userPrivateKeySecretVersion_ = userPrivateKeySecretVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hostPublicKey_ = hostPublicKey_; + } } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.authenticationTokenSecretVersion_ = authenticationTokenSecretVersion_; + + @java.lang.Override + public Builder clone() { + return super.clone(); } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.tokenStatus_ = tokenStatus_; + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + other) { + if (other + == com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.getDefaultInstance()) return this; + if (!other.getUserPrivateKeySecretVersion().isEmpty()) { + userPrivateKeySecretVersion_ = other.userPrivateKeySecretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHostPublicKey().isEmpty()) { + hostPublicKey_ = other.hostPublicKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) { - return mergeFrom((com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) other); - } else { - super.mergeFrom(other); + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + userPrivateKeySecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hostPublicKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } - } - public Builder mergeFrom( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings other) { - if (other - == com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance()) + private int bitField0_; + + private java.lang.Object userPrivateKeySecretVersion_ = ""; + /** + * + * + *
+         * 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) = { ... } + * + * + * @return The userPrivateKeySecretVersion. + */ + public java.lang.String getUserPrivateKeySecretVersion() { + java.lang.Object ref = userPrivateKeySecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPrivateKeySecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * 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) = { ... } + * + * + * @return The bytes for userPrivateKeySecretVersion. + */ + public com.google.protobuf.ByteString getUserPrivateKeySecretVersionBytes() { + java.lang.Object ref = userPrivateKeySecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPrivateKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * 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) = { ... } + * + * + * @param value The userPrivateKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setUserPrivateKeySecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPrivateKeySecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; + } + /** + * + * + *
+         * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserPrivateKeySecretVersion() { + userPrivateKeySecretVersion_ = getDefaultInstance().getUserPrivateKeySecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * 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) = { ... } + * + * + * @param value The bytes for userPrivateKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setUserPrivateKeySecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPrivateKeySecretVersion_ = value; bitField0_ |= 0x00000001; onChanged(); + return this; } - if (!other.getDefaultBranch().isEmpty()) { - defaultBranch_ = other.defaultBranch_; + + private java.lang.Object hostPublicKey_ = ""; + /** + * + * + *
+         * 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]; + * + * @return The hostPublicKey. + */ + public java.lang.String getHostPublicKey() { + java.lang.Object ref = hostPublicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostPublicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * 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]; + * + * @return The bytes for hostPublicKey. + */ + public com.google.protobuf.ByteString getHostPublicKeyBytes() { + java.lang.Object ref = hostPublicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * 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]; + * + * @param value The hostPublicKey to set. + * @return This builder for chaining. + */ + public Builder setHostPublicKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostPublicKey_ = value; bitField0_ |= 0x00000002; onChanged(); + return this; } - if (!other.getAuthenticationTokenSecretVersion().isEmpty()) { - authenticationTokenSecretVersion_ = other.authenticationTokenSecretVersion_; - bitField0_ |= 0x00000004; + /** + * + * + *
+         * 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]; + * + * @return This builder for chaining. + */ + public Builder clearHostPublicKey() { + hostPublicKey_ = getDefaultInstance().getHostPublicKey(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); + return this; } - if (other.tokenStatus_ != 0) { - setTokenStatusValue(other.getTokenStatusValue()); + /** + * + * + *
+         * 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]; + * + * @param value The bytes for hostPublicKey to set. + * @return This builder for chaining. + */ + public Builder setHostPublicKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostPublicKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - defaultBranch_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - authenticationTokenSecretVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - tokenStatus_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig) } - private int bitField0_; + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig) + private static final com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + DEFAULT_INSTANCE; - private java.lang.Object url_ = ""; - /** - * - * - *
-       * Required. The Git remote's URL.
-       * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig(); } - /** - * - * - *
-       * Required. The Git remote's URL.
-       * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for url. - */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; } - /** - * - * - *
-       * Required. The Git remote's URL.
-       * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - url_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SshAuthenticationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - /** - * - * - *
-       * Required. The Git remote's URL.
-       * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
-       * Required. The Git remote's URL.
-       * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - url_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private java.lang.Object defaultBranch_ = ""; - /** - * - * - *
-       * Required. The Git remote's default branch name.
-       * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The defaultBranch. - */ - public java.lang.String getDefaultBranch() { - java.lang.Object ref = defaultBranch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultBranch_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static final int URL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + * + * + *
+     * Required. The Git remote's URL.
+     * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; } - /** - * - * - *
-       * Required. The Git remote's default branch name.
-       * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for defaultBranch. - */ - public com.google.protobuf.ByteString getDefaultBranchBytes() { - java.lang.Object ref = defaultBranch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultBranch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + * + * + *
+     * Required. The Git remote's URL.
+     * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * - * - *
-       * Required. The Git remote's default branch name.
-       * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The defaultBranch to set. - * @return This builder for chaining. - */ - public Builder setDefaultBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultBranch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + } + + public static final int DEFAULT_BRANCH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultBranch_ = ""; + /** + * + * + *
+     * Required. The Git remote's default branch name.
+     * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The defaultBranch. + */ + @java.lang.Override + public java.lang.String getDefaultBranch() { + java.lang.Object ref = defaultBranch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultBranch_ = s; + return s; } - /** - * - * - *
-       * Required. The Git remote's default branch name.
-       * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultBranch() { - defaultBranch_ = getDefaultInstance().getDefaultBranch(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + } + /** + * + * + *
+     * Required. The Git remote's default branch name.
+     * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for defaultBranch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultBranchBytes() { + java.lang.Object ref = defaultBranch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object authenticationTokenSecretVersion_ = ""; + /** + * + * + *
+     * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The authenticationTokenSecretVersion. + */ + @java.lang.Override + public java.lang.String getAuthenticationTokenSecretVersion() { + java.lang.Object ref = authenticationTokenSecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authenticationTokenSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+     * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authenticationTokenSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes() { + java.lang.Object ref = authenticationTokenSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authenticationTokenSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSH_AUTHENTICATION_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + sshAuthenticationConfig_; + /** + * + * + *
+     * Optional. Authentication fields for remote uris using SSH protocol.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sshAuthenticationConfig field is set. + */ + @java.lang.Override + public boolean hasSshAuthenticationConfig() { + return sshAuthenticationConfig_ != null; + } + /** + * + * + *
+     * Optional. Authentication fields for remote uris using SSH protocol.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sshAuthenticationConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + getSshAuthenticationConfig() { + return sshAuthenticationConfig_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + .getDefaultInstance() + : sshAuthenticationConfig_; + } + /** + * + * + *
+     * Optional. Authentication fields for remote uris using SSH protocol.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfigOrBuilder + getSshAuthenticationConfigOrBuilder() { + return sshAuthenticationConfig_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + .getDefaultInstance() + : sshAuthenticationConfig_; + } + + public static final int TOKEN_STATUS_FIELD_NUMBER = 4; + private int tokenStatus_ = 0; + /** + * + * + *
+     * 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
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @return The enum numeric value on the wire for tokenStatus. + */ + @java.lang.Override + @java.lang.Deprecated + public int getTokenStatusValue() { + return tokenStatus_; + } + /** + * + * + *
+     * 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
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @return The tokenStatus. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + getTokenStatus() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus result = + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.forNumber( + tokenStatus_); + return result == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + authenticationTokenSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, authenticationTokenSecretVersion_); + } + if (tokenStatus_ + != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + .TOKEN_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, tokenStatus_); + } + if (sshAuthenticationConfig_ != null) { + output.writeMessage(5, getSshAuthenticationConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + authenticationTokenSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, authenticationTokenSecretVersion_); + } + if (tokenStatus_ + != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + .TOKEN_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, tokenStatus_); + } + if (sshAuthenticationConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getSshAuthenticationConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings other = + (com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getDefaultBranch().equals(other.getDefaultBranch())) return false; + if (!getAuthenticationTokenSecretVersion() + .equals(other.getAuthenticationTokenSecretVersion())) return false; + if (hasSshAuthenticationConfig() != other.hasSshAuthenticationConfig()) return false; + if (hasSshAuthenticationConfig()) { + if (!getSshAuthenticationConfig().equals(other.getSshAuthenticationConfig())) return false; + } + if (tokenStatus_ != other.tokenStatus_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + DEFAULT_BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getDefaultBranch().hashCode(); + hash = (37 * hash) + AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAuthenticationTokenSecretVersion().hashCode(); + if (hasSshAuthenticationConfig()) { + hash = (37 * hash) + SSH_AUTHENTICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSshAuthenticationConfig().hashCode(); + } + hash = (37 * hash) + TOKEN_STATUS_FIELD_NUMBER; + hash = (53 * hash) + tokenStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Controls Git remote configuration for a repository.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository.GitRemoteSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.class, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + defaultBranch_ = ""; + authenticationTokenSecretVersion_ = ""; + sshAuthenticationConfig_ = null; + if (sshAuthenticationConfigBuilder_ != null) { + sshAuthenticationConfigBuilder_.dispose(); + sshAuthenticationConfigBuilder_ = null; + } + tokenStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings build() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings buildPartial() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result = + new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultBranch_ = defaultBranch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authenticationTokenSecretVersion_ = authenticationTokenSecretVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sshAuthenticationConfig_ = + sshAuthenticationConfigBuilder_ == null + ? sshAuthenticationConfig_ + : sshAuthenticationConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokenStatus_ = tokenStatus_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings other) { + if (other + == com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance()) + return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDefaultBranch().isEmpty()) { + defaultBranch_ = other.defaultBranch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAuthenticationTokenSecretVersion().isEmpty()) { + authenticationTokenSecretVersion_ = other.authenticationTokenSecretVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSshAuthenticationConfig()) { + mergeSshAuthenticationConfig(other.getSshAuthenticationConfig()); + } + if (other.tokenStatus_ != 0) { + setTokenStatusValue(other.getTokenStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultBranch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + authenticationTokenSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + tokenStatus_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + input.readMessage( + getSshAuthenticationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object url_ = ""; + /** + * + * + *
+       * Required. The Git remote's URL.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Git remote's URL.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Git remote's URL.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Git remote's URL.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Git remote's URL.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object defaultBranch_ = ""; + /** + * + * + *
+       * Required. The Git remote's default branch name.
+       * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The defaultBranch. + */ + public java.lang.String getDefaultBranch() { + java.lang.Object ref = defaultBranch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultBranch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Git remote's default branch name.
+       * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for defaultBranch. + */ + public com.google.protobuf.ByteString getDefaultBranchBytes() { + java.lang.Object ref = defaultBranch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Git remote's default branch name.
+       * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The defaultBranch to set. + * @return This builder for chaining. + */ + public Builder setDefaultBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultBranch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Git remote's default branch name.
+       * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultBranch() { + defaultBranch_ = getDefaultInstance().getDefaultBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Git remote's default branch name.
+       * 
+ * + * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for defaultBranch to set. + * @return This builder for chaining. + */ + public Builder setDefaultBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultBranch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object authenticationTokenSecretVersion_ = ""; + /** + * + * + *
+       * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The authenticationTokenSecretVersion. + */ + public java.lang.String getAuthenticationTokenSecretVersion() { + java.lang.Object ref = authenticationTokenSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authenticationTokenSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authenticationTokenSecretVersion. + */ + public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes() { + java.lang.Object ref = authenticationTokenSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authenticationTokenSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The authenticationTokenSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setAuthenticationTokenSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authenticationTokenSecretVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAuthenticationTokenSecretVersion() { + authenticationTokenSecretVersion_ = + getDefaultInstance().getAuthenticationTokenSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * 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) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for authenticationTokenSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setAuthenticationTokenSecretVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authenticationTokenSecretVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + sshAuthenticationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + .Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfigOrBuilder> + sshAuthenticationConfigBuilder_; + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sshAuthenticationConfig field is set. + */ + public boolean hasSshAuthenticationConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sshAuthenticationConfig. + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + getSshAuthenticationConfig() { + if (sshAuthenticationConfigBuilder_ == null) { + return sshAuthenticationConfig_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.getDefaultInstance() + : sshAuthenticationConfig_; + } else { + return sshAuthenticationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSshAuthenticationConfig( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + value) { + if (sshAuthenticationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sshAuthenticationConfig_ = value; + } else { + sshAuthenticationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSshAuthenticationConfig( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + .Builder + builderForValue) { + if (sshAuthenticationConfigBuilder_ == null) { + sshAuthenticationConfig_ = builderForValue.build(); + } else { + sshAuthenticationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSshAuthenticationConfig( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + value) { + if (sshAuthenticationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && sshAuthenticationConfig_ != null + && sshAuthenticationConfig_ + != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.getDefaultInstance()) { + getSshAuthenticationConfigBuilder().mergeFrom(value); + } else { + sshAuthenticationConfig_ = value; + } + } else { + sshAuthenticationConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSshAuthenticationConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + sshAuthenticationConfig_ = null; + if (sshAuthenticationConfigBuilder_ != null) { + sshAuthenticationConfigBuilder_.dispose(); + sshAuthenticationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + .Builder + getSshAuthenticationConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSshAuthenticationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfigOrBuilder + getSshAuthenticationConfigOrBuilder() { + if (sshAuthenticationConfigBuilder_ != null) { + return sshAuthenticationConfigBuilder_.getMessageOrBuilder(); + } else { + return sshAuthenticationConfig_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.getDefaultInstance() + : sshAuthenticationConfig_; + } + } + /** + * + * + *
+       * Optional. Authentication fields for remote uris using SSH protocol.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + .Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfigOrBuilder> + getSshAuthenticationConfigFieldBuilder() { + if (sshAuthenticationConfigBuilder_ == null) { + sshAuthenticationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfig.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .SshAuthenticationConfigOrBuilder>( + getSshAuthenticationConfig(), getParentForChildren(), isClean()); + sshAuthenticationConfig_ = null; + } + return sshAuthenticationConfigBuilder_; + } + + private int tokenStatus_ = 0; + /** + * + * + *
+       * 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
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @return The enum numeric value on the wire for tokenStatus. + */ + @java.lang.Override + @java.lang.Deprecated + public int getTokenStatusValue() { + return tokenStatus_; + } + /** + * + * + *
+       * 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
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @param value The enum numeric value on the wire for tokenStatus to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTokenStatusValue(int value) { + tokenStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * 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
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @return The tokenStatus. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + getTokenStatus() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus result = + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.forNumber( + tokenStatus_); + return result == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * 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
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @param value The tokenStatus to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTokenStatus( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + tokenStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * 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
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=555 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearTokenStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + tokenStatus_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + private static final com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings(); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitRemoteSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WorkspaceCompilationOverridesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + java.lang.String getDefaultDatabase(); + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + com.google.protobuf.ByteString getDefaultDatabaseBytes(); + + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + java.lang.String getSchemaSuffix(); + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + com.google.protobuf.ByteString getSchemaSuffixBytes(); + + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + java.lang.String getTablePrefix(); + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + com.google.protobuf.ByteString getTablePrefixBytes(); + } + /** + * + * + *
+   * 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.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} + */ + public static final class WorkspaceCompilationOverrides + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) + WorkspaceCompilationOverridesOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkspaceCompilationOverrides.newBuilder() to construct. + private WorkspaceCompilationOverrides( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkspaceCompilationOverrides() { + defaultDatabase_ = ""; + schemaSuffix_ = ""; + tablePrefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkspaceCompilationOverrides(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.class, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder + .class); + } + + public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultDatabase_ = ""; + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + @java.lang.Override + public java.lang.String getDefaultDatabase() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDatabase_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_SUFFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaSuffix_ = ""; + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + @java.lang.Override + public java.lang.String getSchemaSuffix() { + java.lang.Object ref = schemaSuffix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaSuffix_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery
+     * dataset ID) names.
+     * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaSuffixBytes() { + java.lang.Object ref = schemaSuffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_PREFIX_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object tablePrefix_ = ""; + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + @java.lang.Override + public java.lang.String getTablePrefix() { + java.lang.Object ref = tablePrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tablePrefix_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTablePrefixBytes() { + java.lang.Object ref = tablePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tablePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultDatabase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tablePrefix_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultDatabase_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaSuffix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaSuffix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tablePrefix_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides other = + (com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) obj; + + if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; + if (!getSchemaSuffix().equals(other.getSchemaSuffix())) return false; + if (!getTablePrefix().equals(other.getTablePrefix())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDatabase().hashCode(); + hash = (37 * hash) + SCHEMA_SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getSchemaSuffix().hashCode(); + hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getTablePrefix().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.class, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultDatabase_ = ""; + schemaSuffix_ = ""; + tablePrefix_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_WorkspaceCompilationOverrides_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides build() { + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + buildPartial() { + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides result = + new com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultDatabase_ = defaultDatabase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schemaSuffix_ = schemaSuffix_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tablePrefix_ = tablePrefix_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides other) { + if (other + == com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance()) return this; + if (!other.getDefaultDatabase().isEmpty()) { + defaultDatabase_ = other.defaultDatabase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSchemaSuffix().isEmpty()) { + schemaSuffix_ = other.schemaSuffix_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTablePrefix().isEmpty()) { + tablePrefix_ = other.tablePrefix_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + defaultDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + schemaSuffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + tablePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object defaultDatabase_ = ""; + /** + * + * + *
+       * Optional. The default database (Google Cloud project ID).
+       * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + public java.lang.String getDefaultDatabase() { + java.lang.Object ref = defaultDatabase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDatabase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The default database (Google Cloud project ID).
+       * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { + java.lang.Object ref = defaultDatabase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDatabase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The default database (Google Cloud project ID).
+       * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultDatabase to set. + * @return This builder for chaining. + */ + public Builder setDefaultDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The default database (Google Cloud project ID).
+       * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultDatabase() { + defaultDatabase_ = getDefaultInstance().getDefaultDatabase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The default database (Google Cloud project ID).
+       * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultDatabase to set. + * @return This builder for chaining. + */ + public Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultDatabase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object schemaSuffix_ = ""; + /** + * + * + *
+       * Optional. The suffix that should be appended to all schema (BigQuery
+       * dataset ID) names.
+       * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + public java.lang.String getSchemaSuffix() { + java.lang.Object ref = schemaSuffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaSuffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The suffix that should be appended to all schema (BigQuery
+       * dataset ID) names.
+       * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + public com.google.protobuf.ByteString getSchemaSuffixBytes() { + java.lang.Object ref = schemaSuffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The suffix that should be appended to all schema (BigQuery
+       * dataset ID) names.
+       * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The schemaSuffix to set. + * @return This builder for chaining. + */ + public Builder setSchemaSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaSuffix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The suffix that should be appended to all schema (BigQuery
+       * dataset ID) names.
+       * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSchemaSuffix() { + schemaSuffix_ = getDefaultInstance().getSchemaSuffix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The suffix that should be appended to all schema (BigQuery
+       * dataset ID) names.
+       * 
+ * + * string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for schemaSuffix to set. + * @return This builder for chaining. + */ + public Builder setSchemaSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaSuffix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object tablePrefix_ = ""; + /** + * + * + *
+       * Optional. The prefix that should be prepended to all table names.
+       * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + public java.lang.String getTablePrefix() { + java.lang.Object ref = tablePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tablePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The prefix that should be prepended to all table names.
+       * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + public com.google.protobuf.ByteString getTablePrefixBytes() { + java.lang.Object ref = tablePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tablePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The prefix that should be prepended to all table names.
+       * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tablePrefix to set. + * @return This builder for chaining. + */ + public Builder setTablePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tablePrefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The prefix that should be prepended to all table names.
+       * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTablePrefix() { + tablePrefix_ = getDefaultInstance().getTablePrefix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The prefix that should be prepended to all table names.
+       * 
+ * + * string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tablePrefix to set. + * @return This builder for chaining. + */ + public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tablePrefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides) + private static final com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides(); + } + + public static com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceCompilationOverrides parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The repository's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The repository's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. The repository's user-friendly name.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The repository's user-friendly name.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_REMOTE_SETTINGS_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings gitRemoteSettings_; + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitRemoteSettings field is set. + */ + @java.lang.Override + public boolean hasGitRemoteSettings() { + return gitRemoteSettings_ != null; + } + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitRemoteSettings. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings() { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder + getGitRemoteSettingsOrBuilder() { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } + + public static final int NPMRC_ENVIRONMENT_VARIABLES_SECRET_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object npmrcEnvironmentVariablesSecretVersion_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The npmrcEnvironmentVariablesSecretVersion. + */ + @java.lang.Override + public java.lang.String getNpmrcEnvironmentVariablesSecretVersion() { + java.lang.Object ref = npmrcEnvironmentVariablesSecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + npmrcEnvironmentVariablesSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for npmrcEnvironmentVariablesSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNpmrcEnvironmentVariablesSecretVersionBytes() { + java.lang.Object ref = npmrcEnvironmentVariablesSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + npmrcEnvironmentVariablesSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSPACE_COMPILATION_OVERRIDES_FIELD_NUMBER = 4; + private com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + workspaceCompilationOverrides_; + /** + * + * + *
+   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workspaceCompilationOverrides field is set. + */ + @java.lang.Override + public boolean hasWorkspaceCompilationOverrides() { + return workspaceCompilationOverrides_ != null; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workspaceCompilationOverrides. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + getWorkspaceCompilationOverrides() { + return workspaceCompilationOverrides_ == null + ? com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance() + : workspaceCompilationOverrides_; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesOrBuilder + getWorkspaceCompilationOverridesOrBuilder() { + return workspaceCompilationOverrides_ == null + ? com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance() + : workspaceCompilationOverrides_; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SET_AUTHENTICATED_USER_ADMIN_FIELD_NUMBER = 9; + private boolean setAuthenticatedUserAdmin_ = false; + /** + * + * + *
+   * 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]; + * + * + * @return The setAuthenticatedUserAdmin. + */ + @java.lang.Override + public boolean getSetAuthenticatedUserAdmin() { + return setAuthenticatedUserAdmin_; + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (gitRemoteSettings_ != null) { + output.writeMessage(2, getGitRemoteSettings()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + npmrcEnvironmentVariablesSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, npmrcEnvironmentVariablesSecretVersion_); + } + if (workspaceCompilationOverrides_ != null) { + output.writeMessage(4, getWorkspaceCompilationOverrides()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, displayName_); + } + if (setAuthenticatedUserAdmin_ != false) { + output.writeBool(9, setAuthenticatedUserAdmin_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (gitRemoteSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + npmrcEnvironmentVariablesSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, npmrcEnvironmentVariablesSecretVersion_); + } + if (workspaceCompilationOverrides_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getWorkspaceCompilationOverrides()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); + } + if (setAuthenticatedUserAdmin_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, setAuthenticatedUserAdmin_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Repository)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Repository other = + (com.google.cloud.dataform.v1beta1.Repository) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasGitRemoteSettings() != other.hasGitRemoteSettings()) return false; + if (hasGitRemoteSettings()) { + if (!getGitRemoteSettings().equals(other.getGitRemoteSettings())) return false; + } + if (!getNpmrcEnvironmentVariablesSecretVersion() + .equals(other.getNpmrcEnvironmentVariablesSecretVersion())) return false; + if (hasWorkspaceCompilationOverrides() != other.hasWorkspaceCompilationOverrides()) + return false; + if (hasWorkspaceCompilationOverrides()) { + if (!getWorkspaceCompilationOverrides().equals(other.getWorkspaceCompilationOverrides())) + return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getSetAuthenticatedUserAdmin() != other.getSetAuthenticatedUserAdmin()) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasGitRemoteSettings()) { + hash = (37 * hash) + GIT_REMOTE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGitRemoteSettings().hashCode(); + } + hash = (37 * hash) + NPMRC_ENVIRONMENT_VARIABLES_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getNpmrcEnvironmentVariablesSecretVersion().hashCode(); + if (hasWorkspaceCompilationOverrides()) { + hash = (37 * hash) + WORKSPACE_COMPILATION_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceCompilationOverrides().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + SET_AUTHENTICATED_USER_ADMIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSetAuthenticatedUserAdmin()); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.Repository prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a Dataform Git repository.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository) + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); } - /** - * - * - *
-       * Required. The Git remote's default branch name.
-       * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for defaultBranch to set. - * @return This builder for chaining. - */ - public Builder setDefaultBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultBranch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); } + } - private java.lang.Object authenticationTokenSecretVersion_ = ""; - /** - * - * - *
-       * Required. 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.resource_reference) = { ... } - * - * - * @return The authenticationTokenSecretVersion. - */ - public java.lang.String getAuthenticationTokenSecretVersion() { - java.lang.Object ref = authenticationTokenSecretVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authenticationTokenSecretVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.class, + com.google.cloud.dataform.v1beta1.Repository.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Repository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + gitRemoteSettings_ = null; + if (gitRemoteSettingsBuilder_ != null) { + gitRemoteSettingsBuilder_.dispose(); + gitRemoteSettingsBuilder_ = null; } - /** - * - * - *
-       * Required. 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.resource_reference) = { ... } - * - * - * @return The bytes for authenticationTokenSecretVersion. - */ - public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes() { - java.lang.Object ref = authenticationTokenSecretVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authenticationTokenSecretVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + npmrcEnvironmentVariablesSecretVersion_ = ""; + workspaceCompilationOverrides_ = null; + if (workspaceCompilationOverridesBuilder_ != null) { + workspaceCompilationOverridesBuilder_.dispose(); + workspaceCompilationOverridesBuilder_ = null; } - /** - * - * - *
-       * Required. 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.resource_reference) = { ... } - * - * - * @param value The authenticationTokenSecretVersion to set. - * @return This builder for chaining. - */ - public Builder setAuthenticationTokenSecretVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - authenticationTokenSecretVersion_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + internalGetMutableLabels().clear(); + setAuthenticatedUserAdmin_ = false; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository build() { + com.google.cloud.dataform.v1beta1.Repository result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * - * - *
-       * Required. 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.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearAuthenticationTokenSecretVersion() { - authenticationTokenSecretVersion_ = - getDefaultInstance().getAuthenticationTokenSecretVersion(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository buildPartial() { + com.google.cloud.dataform.v1beta1.Repository result = + new com.google.cloud.dataform.v1beta1.Repository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.Repository result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - /** - * - * - *
-       * Required. 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.resource_reference) = { ... } - * - * - * @param value The bytes for authenticationTokenSecretVersion to set. - * @return This builder for chaining. - */ - public Builder setAuthenticationTokenSecretVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - authenticationTokenSecretVersion_ = value; - bitField0_ |= 0x00000004; - onChanged(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gitRemoteSettings_ = + gitRemoteSettingsBuilder_ == null + ? gitRemoteSettings_ + : gitRemoteSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.npmrcEnvironmentVariablesSecretVersion_ = npmrcEnvironmentVariablesSecretVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.workspaceCompilationOverrides_ = + workspaceCompilationOverridesBuilder_ == null + ? workspaceCompilationOverrides_ + : workspaceCompilationOverridesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.setAuthenticatedUserAdmin_ = setAuthenticatedUserAdmin_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Repository) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Repository) other); + } else { + super.mergeFrom(other); return this; } + } - private int tokenStatus_ = 0; - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tokenStatus. - */ - @java.lang.Override - public int getTokenStatusValue() { - return tokenStatus_; + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Repository other) { + if (other == com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for tokenStatus to set. - * @return This builder for chaining. - */ - public Builder setTokenStatusValue(int value) { - tokenStatus_ = value; - bitField0_ |= 0x00000008; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); - return this; } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tokenStatus. - */ - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus - getTokenStatus() { - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus result = - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.forNumber( - tokenStatus_); - return result == null - ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus - .UNRECOGNIZED - : result; + if (other.hasGitRemoteSettings()) { + mergeGitRemoteSettings(other.getGitRemoteSettings()); } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The tokenStatus to set. - * @return This builder for chaining. - */ - public Builder setTokenStatus( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus value) { - if (value == null) { - throw new NullPointerException(); - } + if (!other.getNpmrcEnvironmentVariablesSecretVersion().isEmpty()) { + npmrcEnvironmentVariablesSecretVersion_ = other.npmrcEnvironmentVariablesSecretVersion_; bitField0_ |= 0x00000008; - tokenStatus_ = value.getNumber(); onChanged(); - return this; } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearTokenStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - tokenStatus_ = 0; - onChanged(); - return this; + if (other.hasWorkspaceCompilationOverrides()) { + mergeWorkspaceCompilationOverrides(other.getWorkspaceCompilationOverrides()); } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.getSetAuthenticatedUserAdmin() != false) { + setSetAuthenticatedUserAdmin(other.getSetAuthenticatedUserAdmin()); } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000080; + onChanged(); } - - // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) - private static final com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings(); + @java.lang.Override + public final boolean isInitialized() { + return true; } - public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings - getDefaultInstance() { - return DEFAULT_INSTANCE; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getGitRemoteSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + npmrcEnvironmentVariablesSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + getWorkspaceCompilationOverridesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 66 + case 72: + { + setAuthenticatedUserAdmin_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 82: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitRemoteSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private int bitField0_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The repository's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
+     * Output only. The repository's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The repository's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + /** + * + * + *
+     * Output only. The repository's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - } - /** - * - * - *
-   * Output only. The repository's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+     * Output only. The repository's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The repository's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - } - - public static final int GIT_REMOTE_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings gitRemoteSettings_; - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gitRemoteSettings field is set. - */ - @java.lang.Override - public boolean hasGitRemoteSettings() { - return gitRemoteSettings_ != null; - } - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gitRemoteSettings. - */ - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings() { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder - getGitRemoteSettingsOrBuilder() { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. The repository's user-friendly name.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (gitRemoteSettings_ != null) { - output.writeMessage(2, getGitRemoteSettings()); + /** + * + * + *
+     * Optional. The repository's user-friendly name.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + /** + * + * + *
+     * Optional. The repository's user-friendly name.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - if (gitRemoteSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); + /** + * + * + *
+     * Optional. The repository's user-friendly name.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The repository's user-friendly name.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings gitRemoteSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder> + gitRemoteSettingsBuilder_; + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitRemoteSettings field is set. + */ + public boolean hasGitRemoteSettings() { + return ((bitField0_ & 0x00000004) != 0); } - if (!(obj instanceof com.google.cloud.dataform.v1beta1.Repository)) { - return super.equals(obj); + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitRemoteSettings. + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings() { + if (gitRemoteSettingsBuilder_ == null) { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } else { + return gitRemoteSettingsBuilder_.getMessage(); + } } - com.google.cloud.dataform.v1beta1.Repository other = - (com.google.cloud.dataform.v1beta1.Repository) obj; - - if (!getName().equals(other.getName())) return false; - if (hasGitRemoteSettings() != other.hasGitRemoteSettings()) return false; - if (hasGitRemoteSettings()) { - if (!getGitRemoteSettings().equals(other.getGitRemoteSettings())) return false; + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitRemoteSettings( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { + if (gitRemoteSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitRemoteSettings_ = value; + } else { + gitRemoteSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitRemoteSettings( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder builderForValue) { + if (gitRemoteSettingsBuilder_ == null) { + gitRemoteSettings_ = builderForValue.build(); + } else { + gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGitRemoteSettings( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { + if (gitRemoteSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && gitRemoteSettings_ != null + && gitRemoteSettings_ + != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + .getDefaultInstance()) { + getGitRemoteSettingsBuilder().mergeFrom(value); + } else { + gitRemoteSettings_ = value; + } + } else { + gitRemoteSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGitRemoteSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + gitRemoteSettings_ = null; + if (gitRemoteSettingsBuilder_ != null) { + gitRemoteSettingsBuilder_.dispose(); + gitRemoteSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder + getGitRemoteSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGitRemoteSettingsFieldBuilder().getBuilder(); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder + getGitRemoteSettingsOrBuilder() { + if (gitRemoteSettingsBuilder_ != null) { + return gitRemoteSettingsBuilder_.getMessageOrBuilder(); + } else { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasGitRemoteSettings()) { - hash = (37 * hash) + GIT_REMOTE_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getGitRemoteSettings().hashCode(); + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder> + getGitRemoteSettingsFieldBuilder() { + if (gitRemoteSettingsBuilder_ == null) { + gitRemoteSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder>( + getGitRemoteSettings(), getParentForChildren(), isClean()); + gitRemoteSettings_ = null; + } + return gitRemoteSettingsBuilder_; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.Repository parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.dataform.v1beta1.Repository prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents a Dataform Git repository.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1beta1.Repository} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository) - com.google.cloud.dataform.v1beta1.RepositoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; + private java.lang.Object npmrcEnvironmentVariablesSecretVersion_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The npmrcEnvironmentVariablesSecretVersion. + */ + public java.lang.String getNpmrcEnvironmentVariablesSecretVersion() { + java.lang.Object ref = npmrcEnvironmentVariablesSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + npmrcEnvironmentVariablesSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_Repository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.Repository.class, - com.google.cloud.dataform.v1beta1.Repository.Builder.class); + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for npmrcEnvironmentVariablesSecretVersion. + */ + public com.google.protobuf.ByteString getNpmrcEnvironmentVariablesSecretVersionBytes() { + java.lang.Object ref = npmrcEnvironmentVariablesSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + npmrcEnvironmentVariablesSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - - // Construct using com.google.cloud.dataform.v1beta1.Repository.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The npmrcEnvironmentVariablesSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + npmrcEnvironmentVariablesSecretVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNpmrcEnvironmentVariablesSecretVersion() { + npmrcEnvironmentVariablesSecretVersion_ = + getDefaultInstance().getNpmrcEnvironmentVariablesSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - gitRemoteSettings_ = null; - if (gitRemoteSettingsBuilder_ != null) { - gitRemoteSettingsBuilder_.dispose(); - gitRemoteSettingsBuilder_ = null; + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for npmrcEnvironmentVariablesSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + npmrcEnvironmentVariablesSecretVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository getDefaultInstanceForType() { - return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + private com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + workspaceCompilationOverrides_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesOrBuilder> + workspaceCompilationOverridesBuilder_; + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workspaceCompilationOverrides field is set. + */ + public boolean hasWorkspaceCompilationOverrides() { + return ((bitField0_ & 0x00000010) != 0); } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository build() { - com.google.cloud.dataform.v1beta1.Repository result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workspaceCompilationOverrides. + */ + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + getWorkspaceCompilationOverrides() { + if (workspaceCompilationOverridesBuilder_ == null) { + return workspaceCompilationOverrides_ == null + ? com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance() + : workspaceCompilationOverrides_; + } else { + return workspaceCompilationOverridesBuilder_.getMessage(); } - return result; } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Repository buildPartial() { - com.google.cloud.dataform.v1beta1.Repository result = - new com.google.cloud.dataform.v1beta1.Repository(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkspaceCompilationOverrides( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides value) { + if (workspaceCompilationOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspaceCompilationOverrides_ = value; + } else { + workspaceCompilationOverridesBuilder_.setMessage(value); } - onBuilt(); - return result; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - - private void buildPartial0(com.google.cloud.dataform.v1beta1.Repository result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gitRemoteSettings_ = - gitRemoteSettingsBuilder_ == null - ? gitRemoteSettings_ - : gitRemoteSettingsBuilder_.build(); + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWorkspaceCompilationOverrides( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder + builderForValue) { + if (workspaceCompilationOverridesBuilder_ == null) { + workspaceCompilationOverrides_ = builderForValue.build(); + } else { + workspaceCompilationOverridesBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000010; + onChanged(); + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dataform.v1beta1.Repository) { - return mergeFrom((com.google.cloud.dataform.v1beta1.Repository) other); + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWorkspaceCompilationOverrides( + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides value) { + if (workspaceCompilationOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && workspaceCompilationOverrides_ != null + && workspaceCompilationOverrides_ + != com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance()) { + getWorkspaceCompilationOverridesBuilder().mergeFrom(value); + } else { + workspaceCompilationOverrides_ = value; + } } else { - super.mergeFrom(other); - return this; + workspaceCompilationOverridesBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000010; + onChanged(); + return this; } - - public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Repository other) { - if (other == com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGitRemoteSettings()) { - mergeGitRemoteSettings(other.getGitRemoteSettings()); + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWorkspaceCompilationOverrides() { + bitField0_ = (bitField0_ & ~0x00000010); + workspaceCompilationOverrides_ = null; + if (workspaceCompilationOverridesBuilder_ != null) { + workspaceCompilationOverridesBuilder_.dispose(); + workspaceCompilationOverridesBuilder_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder + getWorkspaceCompilationOverridesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getWorkspaceCompilationOverridesFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getGitRemoteSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesOrBuilder + getWorkspaceCompilationOverridesOrBuilder() { + if (workspaceCompilationOverridesBuilder_ != null) { + return workspaceCompilationOverridesBuilder_.getMessageOrBuilder(); + } else { + return workspaceCompilationOverrides_ == null + ? com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + .getDefaultInstance() + : workspaceCompilationOverrides_; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesOrBuilder> + getWorkspaceCompilationOverridesFieldBuilder() { + if (workspaceCompilationOverridesBuilder_ == null) { + workspaceCompilationOverridesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides, + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder, + com.google.cloud.dataform.v1beta1.Repository + .WorkspaceCompilationOverridesOrBuilder>( + getWorkspaceCompilationOverrides(), getParentForChildren(), isClean()); + workspaceCompilationOverrides_ = null; + } + return workspaceCompilationOverridesBuilder_; } - private int bitField0_; + private com.google.protobuf.MapField labels_; - private java.lang.Object name_ = ""; + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** * * *
-     * Output only. The repository's name.
+     * Optional. Repository user labels.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** * * *
-     * Output only. The repository's name.
+     * Optional. Repository user labels.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** * - * @return The bytes for name. + * + *
+     * Optional. Repository user labels.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. The repository's name.
+     * Optional. Repository user labels.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
-     * Output only. The repository's name.
+     * Optional. Repository user labels.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } /** * * *
-     * Output only. The repository's name.
+     * Optional. Repository user labels.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException(); + throw new NullPointerException("map value"); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } - - private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings gitRemoteSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder> - gitRemoteSettingsBuilder_; /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * Optional. Repository user labels.
      * 
* - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gitRemoteSettings field is set. + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000002) != 0); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; } + + private boolean setAuthenticatedUserAdmin_; /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 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
      * 
* * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * - * @return The gitRemoteSettings. + * @return The setAuthenticatedUserAdmin. */ - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings() { - if (gitRemoteSettingsBuilder_ == null) { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } else { - return gitRemoteSettingsBuilder_.getMessage(); - } + @java.lang.Override + public boolean getSetAuthenticatedUserAdmin() { + return setAuthenticatedUserAdmin_; } /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 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
      * 
* * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * + * + * @param value The setAuthenticatedUserAdmin to set. + * @return This builder for chaining. */ - public Builder setGitRemoteSettings( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { - if (gitRemoteSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gitRemoteSettings_ = value; - } else { - gitRemoteSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; + public Builder setSetAuthenticatedUserAdmin(boolean value) { + + setAuthenticatedUserAdmin_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2222,139 +6091,129 @@ public Builder setGitRemoteSettings( * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 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
      * 
* * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder setGitRemoteSettings( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder builderForValue) { - if (gitRemoteSettingsBuilder_ == null) { - gitRemoteSettings_ = builderForValue.build(); - } else { - gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; + public Builder clearSetAuthenticatedUserAdmin() { + bitField0_ = (bitField0_ & ~0x00000040); + setAuthenticatedUserAdmin_ = false; onChanged(); return this; } + + private java.lang.Object serviceAccount_ = ""; /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * Optional. The service account to run workflow invocations under.
      * 
* - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. */ - public Builder mergeGitRemoteSettings( - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { - if (gitRemoteSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && gitRemoteSettings_ != null - && gitRemoteSettings_ - != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings - .getDefaultInstance()) { - getGitRemoteSettingsBuilder().mergeFrom(value); - } else { - gitRemoteSettings_ = value; - } + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; } else { - gitRemoteSettingsBuilder_.mergeFrom(value); + return (java.lang.String) ref; } - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * Optional. The service account to run workflow invocations under.
      * 
* - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. */ - public Builder clearGitRemoteSettings() { - bitField0_ = (bitField0_ & ~0x00000002); - gitRemoteSettings_ = null; - if (gitRemoteSettingsBuilder_ != null) { - gitRemoteSettingsBuilder_.dispose(); - gitRemoteSettingsBuilder_ = null; + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * Optional. The service account to run workflow invocations under.
      * 
* - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. */ - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder - getGitRemoteSettingsBuilder() { - bitField0_ |= 0x00000002; + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000080; onChanged(); - return getGitRemoteSettingsFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * Optional. The service account to run workflow invocations under.
      * 
* - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder - getGitRemoteSettingsOrBuilder() { - if (gitRemoteSettingsBuilder_ != null) { - return gitRemoteSettingsBuilder_.getMessageOrBuilder(); - } else { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; } /** * * *
-     * Optional. If set, configures this repository to be linked to a Git remote.
+     * Optional. The service account to run workflow invocations under.
      * 
* - * - * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder> - getGitRemoteSettingsFieldBuilder() { - if (gitRemoteSettingsBuilder_ == null) { - gitRemoteSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, - com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder>( - getGitRemoteSettings(), getParentForChildren(), isClean()); - gitRemoteSettings_ = null; + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return gitRemoteSettingsBuilder_; + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } @java.lang.Override diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java index 92db9b08e71b..bf5ad65dd91d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java @@ -48,6 +48,31 @@ public interface RepositoryOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Optional. The repository's user-friendly name.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. The repository's user-friendly name.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * @@ -89,4 +114,192 @@ public interface RepositoryOrBuilder */ com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder getGitRemoteSettingsOrBuilder(); + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The npmrcEnvironmentVariablesSecretVersion. + */ + java.lang.String getNpmrcEnvironmentVariablesSecretVersion(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for npmrcEnvironmentVariablesSecretVersion. + */ + com.google.protobuf.ByteString getNpmrcEnvironmentVariablesSecretVersionBytes(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the workspaceCompilationOverrides field is set. + */ + boolean hasWorkspaceCompilationOverrides(); + /** + * + * + *
+   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workspaceCompilationOverrides. + */ + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + getWorkspaceCompilationOverrides(); + /** + * + * + *
+   * 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.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesOrBuilder + getWorkspaceCompilationOverridesOrBuilder(); + + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Repository user labels.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * 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]; + * + * + * @return The setAuthenticatedUserAdmin. + */ + boolean getSetAuthenticatedUserAdmin(); + + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * Optional. The service account to run workflow invocations under.
+   * 
+ * + * string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java index 90f811a7ea1e..b17c60eb4061 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * 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]; @@ -142,8 +142,8 @@ public com.google.protobuf.ProtocolStringList getPathsList() { * * *
-   * 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]; @@ -157,8 +157,8 @@ public int getPathsCount() { * * *
-   * 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]; @@ -173,8 +173,8 @@ public java.lang.String getPaths(int index) { * * *
-   * 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]; @@ -739,8 +739,8 @@ private void ensurePathsIsMutable() { * * *
-     * 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]; @@ -755,8 +755,8 @@ public com.google.protobuf.ProtocolStringList getPathsList() { * * *
-     * 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]; @@ -770,8 +770,8 @@ public int getPathsCount() { * * *
-     * 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]; @@ -786,8 +786,8 @@ public java.lang.String getPaths(int index) { * * *
-     * 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]; @@ -802,8 +802,8 @@ public com.google.protobuf.ByteString getPathsBytes(int index) { * * *
-     * 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]; @@ -826,8 +826,8 @@ public Builder setPaths(int index, java.lang.String value) { * * *
-     * 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]; @@ -849,8 +849,8 @@ public Builder addPaths(java.lang.String value) { * * *
-     * 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]; @@ -869,8 +869,8 @@ public Builder addAllPaths(java.lang.Iterable values) { * * *
-     * 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]; @@ -888,8 +888,8 @@ public Builder clearPaths() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java index ed4c19578210..a5f311662baa 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java @@ -56,8 +56,8 @@ public interface ResetWorkspaceChangesRequestOrBuilder * * *
-   * 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]; @@ -69,8 +69,8 @@ public interface ResetWorkspaceChangesRequestOrBuilder * * *
-   * 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]; @@ -82,8 +82,8 @@ public interface ResetWorkspaceChangesRequestOrBuilder * * *
-   * 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]; @@ -96,8 +96,8 @@ public interface ResetWorkspaceChangesRequestOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateReleaseConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateReleaseConfigRequest.java new file mode 100644 index 000000000000..6b93114f700f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateReleaseConfigRequest.java @@ -0,0 +1,1021 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `UpdateReleaseConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} + */ +public final class UpdateReleaseConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) + UpdateReleaseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateReleaseConfigRequest.newBuilder() to construct. + private UpdateReleaseConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateReleaseConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateReleaseConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * 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]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * 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]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * 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]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int RELEASE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.ReleaseConfig releaseConfig_; + /** + * + * + *
+   * Required. The release config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the releaseConfig field is set. + */ + @java.lang.Override + public boolean hasReleaseConfig() { + return releaseConfig_ != null; + } + /** + * + * + *
+   * Required. The release config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The releaseConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig() { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } + /** + * + * + *
+   * Required. The release config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigOrBuilder() { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (releaseConfig_ != null) { + output.writeMessage(2, getReleaseConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (releaseConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReleaseConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest other = + (com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasReleaseConfig() != other.hasReleaseConfig()) return false; + if (hasReleaseConfig()) { + if (!getReleaseConfig().equals(other.getReleaseConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasReleaseConfig()) { + hash = (37 * hash) + RELEASE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReleaseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `UpdateReleaseConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.class, + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + releaseConfig_ = null; + if (releaseConfigBuilder_ != null) { + releaseConfigBuilder_.dispose(); + releaseConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest build() { + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest result = + new com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.releaseConfig_ = + releaseConfigBuilder_ == null ? releaseConfig_ : releaseConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasReleaseConfig()) { + mergeReleaseConfig(other.getReleaseConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReleaseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * 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]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * 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]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1beta1.ReleaseConfig releaseConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder> + releaseConfigBuilder_; + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the releaseConfig field is set. + */ + public boolean hasReleaseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The releaseConfig. + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig() { + if (releaseConfigBuilder_ == null) { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } else { + return releaseConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReleaseConfig(com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseConfig_ = value; + } else { + releaseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReleaseConfig( + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder builderForValue) { + if (releaseConfigBuilder_ == null) { + releaseConfig_ = builderForValue.build(); + } else { + releaseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReleaseConfig(com.google.cloud.dataform.v1beta1.ReleaseConfig value) { + if (releaseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && releaseConfig_ != null + && releaseConfig_ + != com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance()) { + getReleaseConfigBuilder().mergeFrom(value); + } else { + releaseConfig_ = value; + } + } else { + releaseConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReleaseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + releaseConfig_ = null; + if (releaseConfigBuilder_ != null) { + releaseConfigBuilder_.dispose(); + releaseConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder getReleaseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReleaseConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigOrBuilder() { + if (releaseConfigBuilder_ != null) { + return releaseConfigBuilder_.getMessageOrBuilder(); + } else { + return releaseConfig_ == null + ? com.google.cloud.dataform.v1beta1.ReleaseConfig.getDefaultInstance() + : releaseConfig_; + } + } + /** + * + * + *
+     * Required. The release config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder> + getReleaseConfigFieldBuilder() { + if (releaseConfigBuilder_ == null) { + releaseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.ReleaseConfig, + com.google.cloud.dataform.v1beta1.ReleaseConfig.Builder, + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder>( + getReleaseConfig(), getParentForChildren(), isClean()); + releaseConfig_ = null; + } + return releaseConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) + private static final com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReleaseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateReleaseConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateReleaseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..420c74591cb0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateReleaseConfigRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface UpdateReleaseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * 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]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * 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]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The release config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the releaseConfig field is set. + */ + boolean hasReleaseConfig(); + /** + * + * + *
+   * Required. The release config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The releaseConfig. + */ + com.google.cloud.dataform.v1beta1.ReleaseConfig getReleaseConfig(); + /** + * + * + *
+   * Required. The release config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.ReleaseConfigOrBuilder getReleaseConfigOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java index db11ee1f0ebd..9307074c60ac 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java @@ -66,8 +66,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -83,8 +83,8 @@ public boolean hasUpdateMask() { * * *
-   * 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.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,8 +100,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * 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.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -559,8 +559,8 @@ public Builder mergeFrom( * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -575,8 +575,8 @@ public boolean hasUpdateMask() { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -597,8 +597,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -621,8 +621,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -642,8 +642,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -669,8 +669,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -690,8 +690,8 @@ public Builder clearUpdateMask() { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -706,8 +706,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -726,8 +726,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java index 5055cf534a96..340f921c70ab 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface UpdateRepositoryRequestOrBuilder * * *
-   * 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.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -41,8 +41,8 @@ public interface UpdateRepositoryRequestOrBuilder * * *
-   * 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.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -55,8 +55,8 @@ public interface UpdateRepositoryRequestOrBuilder * * *
-   * 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.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateWorkflowConfigRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateWorkflowConfigRequest.java new file mode 100644 index 000000000000..3d24374cae4d --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateWorkflowConfigRequest.java @@ -0,0 +1,1021 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `UpdateWorkflowConfig` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} + */ +public final class UpdateWorkflowConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) + UpdateWorkflowConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateWorkflowConfigRequest.newBuilder() to construct. + private UpdateWorkflowConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateWorkflowConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateWorkflowConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * 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]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * 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]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * 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]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int WORKFLOW_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.WorkflowConfig workflowConfig_; + /** + * + * + *
+   * Required. The workflow config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowConfig field is set. + */ + @java.lang.Override + public boolean hasWorkflowConfig() { + return workflowConfig_ != null; + } + /** + * + * + *
+   * Required. The workflow config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig() { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } + /** + * + * + *
+   * Required. The workflow config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigOrBuilder() { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (workflowConfig_ != null) { + output.writeMessage(2, getWorkflowConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (workflowConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflowConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest other = + (com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasWorkflowConfig() != other.hasWorkflowConfig()) return false; + if (hasWorkflowConfig()) { + if (!getWorkflowConfig().equals(other.getWorkflowConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasWorkflowConfig()) { + hash = (37 * hash) + WORKFLOW_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `UpdateWorkflowConfig` request message.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.class, + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + workflowConfig_ = null; + if (workflowConfigBuilder_ != null) { + workflowConfigBuilder_.dispose(); + workflowConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest build() { + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest buildPartial() { + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest result = + new com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workflowConfig_ = + workflowConfigBuilder_ == null ? workflowConfig_ : workflowConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasWorkflowConfig()) { + mergeWorkflowConfig(other.getWorkflowConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getWorkflowConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * 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]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * 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]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1beta1.WorkflowConfig workflowConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder> + workflowConfigBuilder_; + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowConfig field is set. + */ + public boolean hasWorkflowConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowConfig. + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig() { + if (workflowConfigBuilder_ == null) { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } else { + return workflowConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkflowConfig(com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowConfig_ = value; + } else { + workflowConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkflowConfig( + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder builderForValue) { + if (workflowConfigBuilder_ == null) { + workflowConfig_ = builderForValue.build(); + } else { + workflowConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWorkflowConfig(com.google.cloud.dataform.v1beta1.WorkflowConfig value) { + if (workflowConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && workflowConfig_ != null + && workflowConfig_ + != com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance()) { + getWorkflowConfigBuilder().mergeFrom(value); + } else { + workflowConfig_ = value; + } + } else { + workflowConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWorkflowConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + workflowConfig_ = null; + if (workflowConfigBuilder_ != null) { + workflowConfigBuilder_.dispose(); + workflowConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder getWorkflowConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkflowConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigOrBuilder() { + if (workflowConfigBuilder_ != null) { + return workflowConfigBuilder_.getMessageOrBuilder(); + } else { + return workflowConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance() + : workflowConfig_; + } + } + /** + * + * + *
+     * Required. The workflow config to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder> + getWorkflowConfigFieldBuilder() { + if (workflowConfigBuilder_ == null) { + workflowConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder>( + getWorkflowConfig(), getParentForChildren(), isClean()); + workflowConfig_ = null; + } + return workflowConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) + private static final com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest(); + } + + public static com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkflowConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateWorkflowConfigRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateWorkflowConfigRequestOrBuilder.java new file mode 100644 index 000000000000..26af1a5ece49 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateWorkflowConfigRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface UpdateWorkflowConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * 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]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * 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]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The workflow config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowConfig field is set. + */ + boolean hasWorkflowConfig(); + /** + * + * + *
+   * Required. The workflow config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowConfig. + */ + com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig(); + /** + * + * + *
+   * Required. The workflow config to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder getWorkflowConfigOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfig.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfig.java new file mode 100644 index 000000000000..887a66db1ef8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfig.java @@ -0,0 +1,3627 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a Dataform workflow configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowConfig} + */ +public final class WorkflowConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.WorkflowConfig) + WorkflowConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowConfig.newBuilder() to construct. + private WorkflowConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkflowConfig() { + name_ = ""; + releaseConfig_ = ""; + cronSchedule_ = ""; + timeZone_ = ""; + recentScheduledExecutionRecords_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkflowConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowConfig.class, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder.class); + } + + public interface ScheduledExecutionRecordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The timestamp of this execution attempt.
+     * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + * + * @return Whether the executionTime field is set. + */ + boolean hasExecutionTime(); + /** + * + * + *
+     * The timestamp of this execution attempt.
+     * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + * + * @return The executionTime. + */ + com.google.protobuf.Timestamp getExecutionTime(); + /** + * + * + *
+     * The timestamp of this execution attempt.
+     * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getExecutionTimeOrBuilder(); + + /** + * + * + *
+     * 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) = { ... } + * + * @return Whether the workflowInvocation field is set. + */ + boolean hasWorkflowInvocation(); + /** + * + * + *
+     * 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) = { ... } + * + * @return The workflowInvocation. + */ + java.lang.String getWorkflowInvocation(); + /** + * + * + *
+     * 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) = { ... } + * + * @return The bytes for workflowInvocation. + */ + com.google.protobuf.ByteString getWorkflowInvocationBytes(); + + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * workflow invocation, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return Whether the errorStatus field is set. + */ + boolean hasErrorStatus(); + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * workflow invocation, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return The errorStatus. + */ + com.google.rpc.Status getErrorStatus(); + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * workflow invocation, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + */ + com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder(); + + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.ResultCase + getResultCase(); + } + /** + * + * + *
+   * A record of an attempt to create a workflow invocation for this workflow
+   * config.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} + */ + public static final class ScheduledExecutionRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) + ScheduledExecutionRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScheduledExecutionRecord.newBuilder() to construct. + private ScheduledExecutionRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ScheduledExecutionRecord() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScheduledExecutionRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.class, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + .class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WORKFLOW_INVOCATION(2), + ERROR_STATUS(3), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 2: + return WORKFLOW_INVOCATION; + case 3: + return ERROR_STATUS; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int EXECUTION_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp executionTime_; + /** + * + * + *
+     * The timestamp of this execution attempt.
+     * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + * + * @return Whether the executionTime field is set. + */ + @java.lang.Override + public boolean hasExecutionTime() { + return executionTime_ != null; + } + /** + * + * + *
+     * The timestamp of this execution attempt.
+     * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + * + * @return The executionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExecutionTime() { + return executionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : executionTime_; + } + /** + * + * + *
+     * The timestamp of this execution attempt.
+     * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExecutionTimeOrBuilder() { + return executionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : executionTime_; + } + + public static final int WORKFLOW_INVOCATION_FIELD_NUMBER = 2; + /** + * + * + *
+     * 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) = { ... } + * + * @return Whether the workflowInvocation field is set. + */ + public boolean hasWorkflowInvocation() { + return resultCase_ == 2; + } + /** + * + * + *
+     * 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) = { ... } + * + * @return The workflowInvocation. + */ + public java.lang.String getWorkflowInvocation() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 2) { + result_ = s; + } + return s; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * @return The bytes for workflowInvocation. + */ + public com.google.protobuf.ByteString getWorkflowInvocationBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 2) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_STATUS_FIELD_NUMBER = 3; + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * workflow invocation, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return Whether the errorStatus field is set. + */ + @java.lang.Override + public boolean hasErrorStatus() { + return resultCase_ == 3; + } + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * workflow invocation, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return The errorStatus. + */ + @java.lang.Override + public com.google.rpc.Status getErrorStatus() { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + * + * + *
+     * The error status encountered upon this attempt to create the
+     * workflow invocation, if the attempt was unsuccessful.
+     * 
+ * + * .google.rpc.Status error_status = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (executionTime_ != null) { + output.writeMessage(1, getExecutionTime()); + } + if (resultCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, result_); + } + if (resultCase_ == 3) { + output.writeMessage(3, (com.google.rpc.Status) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionTime()); + } + if (resultCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, result_); + } + if (resultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.rpc.Status) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord other = + (com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) obj; + + if (hasExecutionTime() != other.hasExecutionTime()) return false; + if (hasExecutionTime()) { + if (!getExecutionTime().equals(other.getExecutionTime())) return false; + } + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 2: + if (!getWorkflowInvocation().equals(other.getWorkflowInvocation())) return false; + break; + case 3: + if (!getErrorStatus().equals(other.getErrorStatus())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionTime()) { + hash = (37 * hash) + EXECUTION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExecutionTime().hashCode(); + } + switch (resultCase_) { + case 2: + hash = (37 * hash) + WORKFLOW_INVOCATION_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowInvocation().hashCode(); + break; + case 3: + hash = (37 * hash) + ERROR_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getErrorStatus().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A record of an attempt to create a workflow invocation for this workflow
+     * config.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.class, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + executionTime_ = null; + if (executionTimeBuilder_ != null) { + executionTimeBuilder_.dispose(); + executionTimeBuilder_ = null; + } + if (errorStatusBuilder_ != null) { + errorStatusBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_ScheduledExecutionRecord_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord build() { + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + buildPartial() { + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord result = + new com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.executionTime_ = + executionTimeBuilder_ == null ? executionTime_ : executionTimeBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 3 && errorStatusBuilder_ != null) { + result.result_ = errorStatusBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord other) { + if (other + == com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + .getDefaultInstance()) return this; + if (other.hasExecutionTime()) { + mergeExecutionTime(other.getExecutionTime()); + } + switch (other.getResultCase()) { + case WORKFLOW_INVOCATION: + { + resultCase_ = 2; + result_ = other.result_; + onChanged(); + break; + } + case ERROR_STATUS: + { + mergeErrorStatus(other.getErrorStatus()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExecutionTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + resultCase_ = 2; + result_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorStatusFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp executionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + executionTimeBuilder_; + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + * + * @return Whether the executionTime field is set. + */ + public boolean hasExecutionTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + * + * @return The executionTime. + */ + public com.google.protobuf.Timestamp getExecutionTime() { + if (executionTimeBuilder_ == null) { + return executionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : executionTime_; + } else { + return executionTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + public Builder setExecutionTime(com.google.protobuf.Timestamp value) { + if (executionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionTime_ = value; + } else { + executionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + public Builder setExecutionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (executionTimeBuilder_ == null) { + executionTime_ = builderForValue.build(); + } else { + executionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + public Builder mergeExecutionTime(com.google.protobuf.Timestamp value) { + if (executionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && executionTime_ != null + && executionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExecutionTimeBuilder().mergeFrom(value); + } else { + executionTime_ = value; + } + } else { + executionTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + public Builder clearExecutionTime() { + bitField0_ = (bitField0_ & ~0x00000001); + executionTime_ = null; + if (executionTimeBuilder_ != null) { + executionTimeBuilder_.dispose(); + executionTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getExecutionTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExecutionTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getExecutionTimeOrBuilder() { + if (executionTimeBuilder_ != null) { + return executionTimeBuilder_.getMessageOrBuilder(); + } else { + return executionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : executionTime_; + } + } + /** + * + * + *
+       * The timestamp of this execution attempt.
+       * 
+ * + * .google.protobuf.Timestamp execution_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExecutionTimeFieldBuilder() { + if (executionTimeBuilder_ == null) { + executionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExecutionTime(), getParentForChildren(), isClean()); + executionTime_ = null; + } + return executionTimeBuilder_; + } + + /** + * + * + *
+       * 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) = { ... } + * + * @return Whether the workflowInvocation field is set. + */ + @java.lang.Override + public boolean hasWorkflowInvocation() { + return resultCase_ == 2; + } + /** + * + * + *
+       * 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) = { ... } + * + * @return The workflowInvocation. + */ + @java.lang.Override + public java.lang.String getWorkflowInvocation() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 2) { + result_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * 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) = { ... } + * + * @return The bytes for workflowInvocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkflowInvocationBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 2) { + ref = result_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 2) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * 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) = { ... } + * + * @param value The workflowInvocation to set. + * @return This builder for chaining. + */ + public Builder setWorkflowInvocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resultCase_ = 2; + result_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * 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) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearWorkflowInvocation() { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * 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) = { ... } + * + * @param value The bytes for workflowInvocation to set. + * @return This builder for chaining. + */ + public Builder setWorkflowInvocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resultCase_ = 2; + result_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorStatusBuilder_; + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return Whether the errorStatus field is set. + */ + @java.lang.Override + public boolean hasErrorStatus() { + return resultCase_ == 3; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + * + * @return The errorStatus. + */ + @java.lang.Override + public com.google.rpc.Status getErrorStatus() { + if (errorStatusBuilder_ == null) { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (resultCase_ == 3) { + return errorStatusBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder setErrorStatus(com.google.rpc.Status value) { + if (errorStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + errorStatusBuilder_.setMessage(value); + } + resultCase_ = 3; + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) { + if (errorStatusBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + errorStatusBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 3; + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder mergeErrorStatus(com.google.rpc.Status value) { + if (errorStatusBuilder_ == null) { + if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 3) { + errorStatusBuilder_.mergeFrom(value); + } else { + errorStatusBuilder_.setMessage(value); + } + } + resultCase_ = 3; + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public Builder clearErrorStatus() { + if (errorStatusBuilder_ == null) { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 3) { + resultCase_ = 0; + result_ = null; + } + errorStatusBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + public com.google.rpc.Status.Builder getErrorStatusBuilder() { + return getErrorStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() { + if ((resultCase_ == 3) && (errorStatusBuilder_ != null)) { + return errorStatusBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 3) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + * + * + *
+       * The error status encountered upon this attempt to create the
+       * workflow invocation, if the attempt was unsuccessful.
+       * 
+ * + * .google.rpc.Status error_status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorStatusFieldBuilder() { + if (errorStatusBuilder_ == null) { + if (!(resultCase_ == 3)) { + result_ = com.google.rpc.Status.getDefaultInstance(); + } + errorStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + result_ = null; + } + resultCase_ = 3; + onChanged(); + return errorStatusBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord) + private static final com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord(); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScheduledExecutionRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The workflow config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The workflow config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_CONFIG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseConfig_ = ""; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The releaseConfig. + */ + @java.lang.Override + public java.lang.String getReleaseConfig() { + java.lang.Object ref = releaseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseConfig_ = s; + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for releaseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseConfigBytes() { + java.lang.Object ref = releaseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVOCATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dataform.v1beta1.InvocationConfig invocationConfig_; + /** + * + * + *
+   * Optional. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the invocationConfig field is set. + */ + @java.lang.Override + public boolean hasInvocationConfig() { + return invocationConfig_ != null; + } + /** + * + * + *
+   * Optional. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The invocationConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig() { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() + : invocationConfig_; + } + /** + * + * + *
+   * Optional. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder + getInvocationConfigOrBuilder() { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() + : invocationConfig_; + } + + public static final int CRON_SCHEDULE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object cronSchedule_ = ""; + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic execution of
+   * this workflow config.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cronSchedule. + */ + @java.lang.Override + public java.lang.String getCronSchedule() { + java.lang.Object ref = cronSchedule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cronSchedule_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic execution of
+   * this workflow config.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cronSchedule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCronScheduleBytes() { + java.lang.Object ref = cronSchedule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cronSchedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + * + * + *
+   * 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]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECENT_SCHEDULED_EXECUTION_RECORDS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + recentScheduledExecutionRecords_; + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRecentScheduledExecutionRecordsList() { + return recentScheduledExecutionRecords_; + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder> + getRecentScheduledExecutionRecordsOrBuilderList() { + return recentScheduledExecutionRecords_; + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRecentScheduledExecutionRecordsCount() { + return recentScheduledExecutionRecords_.size(); + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + getRecentScheduledExecutionRecords(int index) { + return recentScheduledExecutionRecords_.get(index); + } + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder + getRecentScheduledExecutionRecordsOrBuilder(int index) { + return recentScheduledExecutionRecords_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, releaseConfig_); + } + if (invocationConfig_ != null) { + output.writeMessage(3, getInvocationConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cronSchedule_); + } + for (int i = 0; i < recentScheduledExecutionRecords_.size(); i++) { + output.writeMessage(5, recentScheduledExecutionRecords_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, releaseConfig_); + } + if (invocationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvocationConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cronSchedule_); + } + for (int i = 0; i < recentScheduledExecutionRecords_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, recentScheduledExecutionRecords_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WorkflowConfig other = + (com.google.cloud.dataform.v1beta1.WorkflowConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getReleaseConfig().equals(other.getReleaseConfig())) return false; + if (hasInvocationConfig() != other.hasInvocationConfig()) return false; + if (hasInvocationConfig()) { + if (!getInvocationConfig().equals(other.getInvocationConfig())) return false; + } + if (!getCronSchedule().equals(other.getCronSchedule())) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getRecentScheduledExecutionRecordsList() + .equals(other.getRecentScheduledExecutionRecordsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RELEASE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReleaseConfig().hashCode(); + if (hasInvocationConfig()) { + hash = (37 * hash) + INVOCATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInvocationConfig().hashCode(); + } + hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getCronSchedule().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (getRecentScheduledExecutionRecordsCount() > 0) { + hash = (37 * hash) + RECENT_SCHEDULED_EXECUTION_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getRecentScheduledExecutionRecordsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.WorkflowConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a Dataform workflow configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowConfig) + com.google.cloud.dataform.v1beta1.WorkflowConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowConfig.class, + com.google.cloud.dataform.v1beta1.WorkflowConfig.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.WorkflowConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + releaseConfig_ = ""; + invocationConfig_ = null; + if (invocationConfigBuilder_ != null) { + invocationConfigBuilder_.dispose(); + invocationConfigBuilder_ = null; + } + cronSchedule_ = ""; + timeZone_ = ""; + if (recentScheduledExecutionRecordsBuilder_ == null) { + recentScheduledExecutionRecords_ = java.util.Collections.emptyList(); + } else { + recentScheduledExecutionRecords_ = null; + recentScheduledExecutionRecordsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig build() { + com.google.cloud.dataform.v1beta1.WorkflowConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig buildPartial() { + com.google.cloud.dataform.v1beta1.WorkflowConfig result = + new com.google.cloud.dataform.v1beta1.WorkflowConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.WorkflowConfig result) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + recentScheduledExecutionRecords_ = + java.util.Collections.unmodifiableList(recentScheduledExecutionRecords_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.recentScheduledExecutionRecords_ = recentScheduledExecutionRecords_; + } else { + result.recentScheduledExecutionRecords_ = recentScheduledExecutionRecordsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.WorkflowConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.releaseConfig_ = releaseConfig_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invocationConfig_ = + invocationConfigBuilder_ == null ? invocationConfig_ : invocationConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cronSchedule_ = cronSchedule_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeZone_ = timeZone_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.WorkflowConfig) { + return mergeFrom((com.google.cloud.dataform.v1beta1.WorkflowConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowConfig other) { + if (other == com.google.cloud.dataform.v1beta1.WorkflowConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReleaseConfig().isEmpty()) { + releaseConfig_ = other.releaseConfig_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInvocationConfig()) { + mergeInvocationConfig(other.getInvocationConfig()); + } + if (!other.getCronSchedule().isEmpty()) { + cronSchedule_ = other.cronSchedule_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (recentScheduledExecutionRecordsBuilder_ == null) { + if (!other.recentScheduledExecutionRecords_.isEmpty()) { + if (recentScheduledExecutionRecords_.isEmpty()) { + recentScheduledExecutionRecords_ = other.recentScheduledExecutionRecords_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.addAll(other.recentScheduledExecutionRecords_); + } + onChanged(); + } + } else { + if (!other.recentScheduledExecutionRecords_.isEmpty()) { + if (recentScheduledExecutionRecordsBuilder_.isEmpty()) { + recentScheduledExecutionRecordsBuilder_.dispose(); + recentScheduledExecutionRecordsBuilder_ = null; + recentScheduledExecutionRecords_ = other.recentScheduledExecutionRecords_; + bitField0_ = (bitField0_ & ~0x00000020); + recentScheduledExecutionRecordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecentScheduledExecutionRecordsFieldBuilder() + : null; + } else { + recentScheduledExecutionRecordsBuilder_.addAllMessages( + other.recentScheduledExecutionRecords_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + releaseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getInvocationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + cronSchedule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord m = + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + .parser(), + extensionRegistry); + if (recentScheduledExecutionRecordsBuilder_ == null) { + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.add(m); + } else { + recentScheduledExecutionRecordsBuilder_.addMessage(m); + } + break; + } // case 42 + case 58: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The workflow config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The workflow config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The workflow config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The workflow config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The workflow config's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object releaseConfig_ = ""; + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The releaseConfig. + */ + public java.lang.String getReleaseConfig() { + java.lang.Object ref = releaseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for releaseConfig. + */ + public com.google.protobuf.ByteString getReleaseConfigBytes() { + java.lang.Object ref = releaseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The releaseConfig to set. + * @return This builder for chaining. + */ + public Builder setReleaseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearReleaseConfig() { + releaseConfig_ = getDefaultInstance().getReleaseConfig(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for releaseConfig to set. + * @return This builder for chaining. + */ + public Builder setReleaseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.InvocationConfig invocationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.InvocationConfig, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder> + invocationConfigBuilder_; + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the invocationConfig field is set. + */ + public boolean hasInvocationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The invocationConfig. + */ + public com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig() { + if (invocationConfigBuilder_ == null) { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() + : invocationConfig_; + } else { + return invocationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInvocationConfig(com.google.cloud.dataform.v1beta1.InvocationConfig value) { + if (invocationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + invocationConfig_ = value; + } else { + invocationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInvocationConfig( + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder builderForValue) { + if (invocationConfigBuilder_ == null) { + invocationConfig_ = builderForValue.build(); + } else { + invocationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInvocationConfig(com.google.cloud.dataform.v1beta1.InvocationConfig value) { + if (invocationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && invocationConfig_ != null + && invocationConfig_ + != com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()) { + getInvocationConfigBuilder().mergeFrom(value); + } else { + invocationConfig_ = value; + } + } else { + invocationConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInvocationConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + invocationConfig_ = null; + if (invocationConfigBuilder_ != null) { + invocationConfigBuilder_.dispose(); + invocationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.InvocationConfig.Builder getInvocationConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInvocationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder + getInvocationConfigOrBuilder() { + if (invocationConfigBuilder_ != null) { + return invocationConfigBuilder_.getMessageOrBuilder(); + } else { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() + : invocationConfig_; + } + } + /** + * + * + *
+     * Optional. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.InvocationConfig, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder> + getInvocationConfigFieldBuilder() { + if (invocationConfigBuilder_ == null) { + invocationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.InvocationConfig, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder>( + getInvocationConfig(), getParentForChildren(), isClean()); + invocationConfig_ = null; + } + return invocationConfigBuilder_; + } + + private java.lang.Object cronSchedule_ = ""; + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic execution of
+     * this workflow config.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cronSchedule. + */ + public java.lang.String getCronSchedule() { + java.lang.Object ref = cronSchedule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cronSchedule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic execution of
+     * this workflow config.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cronSchedule. + */ + public com.google.protobuf.ByteString getCronScheduleBytes() { + java.lang.Object ref = cronSchedule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cronSchedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic execution of
+     * this workflow config.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cronSchedule to set. + * @return This builder for chaining. + */ + public Builder setCronSchedule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cronSchedule_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic execution of
+     * this workflow config.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCronSchedule() { + cronSchedule_ = getDefaultInstance().getCronSchedule(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional schedule (in cron format) for automatic execution of
+     * this workflow config.
+     * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cronSchedule to set. + * @return This builder for chaining. + */ + public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cronSchedule_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord> + recentScheduledExecutionRecords_ = java.util.Collections.emptyList(); + + private void ensureRecentScheduledExecutionRecordsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + recentScheduledExecutionRecords_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord>( + recentScheduledExecutionRecords_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder> + recentScheduledExecutionRecordsBuilder_; + + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentScheduledExecutionRecordsList() { + if (recentScheduledExecutionRecordsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentScheduledExecutionRecords_); + } else { + return recentScheduledExecutionRecordsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRecentScheduledExecutionRecordsCount() { + if (recentScheduledExecutionRecordsBuilder_ == null) { + return recentScheduledExecutionRecords_.size(); + } else { + return recentScheduledExecutionRecordsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + getRecentScheduledExecutionRecords(int index) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + return recentScheduledExecutionRecords_.get(index); + } else { + return recentScheduledExecutionRecordsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentScheduledExecutionRecords( + int index, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord value) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.set(index, value); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentScheduledExecutionRecords( + int index, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + builderForValue) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.set(index, builderForValue.build()); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledExecutionRecords( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord value) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.add(value); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledExecutionRecords( + int index, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord value) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.add(index, value); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledExecutionRecords( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + builderForValue) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.add(builderForValue.build()); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentScheduledExecutionRecords( + int index, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + builderForValue) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.add(index, builderForValue.build()); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRecentScheduledExecutionRecords( + java.lang.Iterable< + ? extends com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord> + values) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + ensureRecentScheduledExecutionRecordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recentScheduledExecutionRecords_); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRecentScheduledExecutionRecords() { + if (recentScheduledExecutionRecordsBuilder_ == null) { + recentScheduledExecutionRecords_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRecentScheduledExecutionRecords(int index) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + ensureRecentScheduledExecutionRecordsIsMutable(); + recentScheduledExecutionRecords_.remove(index); + onChanged(); + } else { + recentScheduledExecutionRecordsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + getRecentScheduledExecutionRecordsBuilder(int index) { + return getRecentScheduledExecutionRecordsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder + getRecentScheduledExecutionRecordsOrBuilder(int index) { + if (recentScheduledExecutionRecordsBuilder_ == null) { + return recentScheduledExecutionRecords_.get(index); + } else { + return recentScheduledExecutionRecordsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder> + getRecentScheduledExecutionRecordsOrBuilderList() { + if (recentScheduledExecutionRecordsBuilder_ != null) { + return recentScheduledExecutionRecordsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentScheduledExecutionRecords_); + } + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + addRecentScheduledExecutionRecordsBuilder() { + return getRecentScheduledExecutionRecordsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + .getDefaultInstance()); + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder + addRecentScheduledExecutionRecordsBuilder(int index) { + return getRecentScheduledExecutionRecordsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + .getDefaultInstance()); + } + /** + * + * + *
+     * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder> + getRecentScheduledExecutionRecordsBuilderList() { + return getRecentScheduledExecutionRecordsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder> + getRecentScheduledExecutionRecordsFieldBuilder() { + if (recentScheduledExecutionRecordsBuilder_ == null) { + recentScheduledExecutionRecordsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord.Builder, + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder>( + recentScheduledExecutionRecords_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + recentScheduledExecutionRecords_ = null; + } + return recentScheduledExecutionRecordsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowConfig) + private static final com.google.cloud.dataform.v1beta1.WorkflowConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WorkflowConfig(); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java new file mode 100644 index 000000000000..60f2aa91558b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java @@ -0,0 +1,269 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class WorkflowConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REPOSITORY_WORKFLOW_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String repository; + private final String workflowConfig; + + @Deprecated + protected WorkflowConfigName() { + project = null; + location = null; + repository = null; + workflowConfig = null; + } + + private WorkflowConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + repository = Preconditions.checkNotNull(builder.getRepository()); + workflowConfig = Preconditions.checkNotNull(builder.getWorkflowConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getWorkflowConfig() { + return workflowConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static WorkflowConfigName of( + String project, String location, String repository, String workflowConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setWorkflowConfig(workflowConfig) + .build(); + } + + public static String format( + String project, String location, String repository, String workflowConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setWorkflowConfig(workflowConfig) + .build() + .toString(); + } + + public static WorkflowConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REPOSITORY_WORKFLOW_CONFIG.validatedMatch( + formattedString, "WorkflowConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("repository"), + matchMap.get("workflow_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (WorkflowConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REPOSITORY_WORKFLOW_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (repository != null) { + fieldMapBuilder.put("repository", repository); + } + if (workflowConfig != null) { + fieldMapBuilder.put("workflow_config", workflowConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REPOSITORY_WORKFLOW_CONFIG.instantiate( + "project", + project, + "location", + location, + "repository", + repository, + "workflow_config", + workflowConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + WorkflowConfigName that = ((WorkflowConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.repository, that.repository) + && Objects.equals(this.workflowConfig, that.workflowConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(repository); + h *= 1000003; + h ^= Objects.hashCode(workflowConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}. + */ + public static class Builder { + private String project; + private String location; + private String repository; + private String workflowConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getWorkflowConfig() { + return workflowConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRepository(String repository) { + this.repository = repository; + return this; + } + + public Builder setWorkflowConfig(String workflowConfig) { + this.workflowConfig = workflowConfig; + return this; + } + + private Builder(WorkflowConfigName workflowConfigName) { + this.project = workflowConfigName.project; + this.location = workflowConfigName.location; + this.repository = workflowConfigName.repository; + this.workflowConfig = workflowConfigName.workflowConfig; + } + + public WorkflowConfigName build() { + return new WorkflowConfigName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigOrBuilder.java new file mode 100644 index 000000000000..bdab405ffa3c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigOrBuilder.java @@ -0,0 +1,259 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface WorkflowConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WorkflowConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The workflow config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The workflow config's name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The releaseConfig. + */ + java.lang.String getReleaseConfig(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for releaseConfig. + */ + com.google.protobuf.ByteString getReleaseConfigBytes(); + + /** + * + * + *
+   * Optional. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the invocationConfig field is set. + */ + boolean hasInvocationConfig(); + /** + * + * + *
+   * Optional. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The invocationConfig. + */ + com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig(); + /** + * + * + *
+   * Optional. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder getInvocationConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic execution of
+   * this workflow config.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cronSchedule. + */ + java.lang.String getCronSchedule(); + /** + * + * + *
+   * Optional. Optional schedule (in cron format) for automatic execution of
+   * this workflow config.
+   * 
+ * + * string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cronSchedule. + */ + com.google.protobuf.ByteString getCronScheduleBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRecentScheduledExecutionRecordsList(); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + getRecentScheduledExecutionRecords(int index); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRecentScheduledExecutionRecordsCount(); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder> + getRecentScheduledExecutionRecordsOrBuilderList(); + /** + * + * + *
+   * 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 .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordOrBuilder + getRecentScheduledExecutionRecordsOrBuilder(int index); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java index 5ddd8600be9c..5a41c5b6af50 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java @@ -39,7 +39,6 @@ private WorkflowInvocation(com.google.protobuf.GeneratedMessageV3.Builder bui private WorkflowInvocation() { name_ = ""; - compilationResult_ = ""; state_ = 0; } @@ -291,1756 +290,53 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.WorkflowInvocation.State) } - public interface InvocationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) - com.google.protobuf.MessageOrBuilder { + private int compilationSourceCase_ = 0; - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - java.util.List getIncludedTargetsList(); - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index); - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - int getIncludedTargetsCount(); - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - java.util.List - getIncludedTargetsOrBuilderList(); - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder(int index); - - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return A list containing the includedTags. - */ - java.util.List getIncludedTagsList(); - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The count of includedTags. - */ - int getIncludedTagsCount(); - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index of the element to return. - * @return The includedTags at the given index. - */ - java.lang.String getIncludedTags(int index); - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index of the value to return. - * @return The bytes of the includedTags at the given index. - */ - com.google.protobuf.ByteString getIncludedTagsBytes(int index); - - /** - * - * - *
-     * Immutable. When set to true, transitive dependencies of included actions will be
-     * executed.
-     * 
- * - * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The transitiveDependenciesIncluded. - */ - boolean getTransitiveDependenciesIncluded(); - - /** - * - * - *
-     * Immutable. When set to true, transitive dependents of included actions will be
-     * executed.
-     * 
- * - * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The transitiveDependentsIncluded. - */ - boolean getTransitiveDependentsIncluded(); + @SuppressWarnings("serial") + private java.lang.Object compilationSource_; - /** - * - * - *
-     * Immutable. When set to true, any incremental tables will be fully refreshed.
-     * 
- * - * - * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The fullyRefreshIncrementalTablesEnabled. - */ - boolean getFullyRefreshIncrementalTablesEnabled(); - } - /** - * - * - *
-   * Includes various configuration options for this workflow invocation.
-   * If both `included_targets` and `included_tags` are unset, all actions
-   * will be included.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} - */ - public static final class InvocationConfig extends com.google.protobuf.GeneratedMessageV3 + public enum CompilationSourceCase implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) - InvocationConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use InvocationConfig.newBuilder() to construct. - private InvocationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InvocationConfig() { - includedTargets_ = java.util.Collections.emptyList(); - includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InvocationConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.class, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder.class); - } - - public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List includedTargets_; - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public java.util.List getIncludedTargetsList() { - return includedTargets_; - } - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public java.util.List - getIncludedTargetsOrBuilderList() { - return includedTargets_; - } - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public int getIncludedTargetsCount() { - return includedTargets_.size(); - } - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index) { - return includedTargets_.get(index); - } - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder( - int index) { - return includedTargets_.get(index); - } - - public static final int INCLUDED_TAGS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList includedTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return A list containing the includedTags. - */ - public com.google.protobuf.ProtocolStringList getIncludedTagsList() { - return includedTags_; - } - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The count of includedTags. - */ - public int getIncludedTagsCount() { - return includedTags_.size(); - } - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index of the element to return. - * @return The includedTags at the given index. - */ - public java.lang.String getIncludedTags(int index) { - return includedTags_.get(index); - } - /** - * - * - *
-     * Immutable. The set of tags to include.
-     * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index of the value to return. - * @return The bytes of the includedTags at the given index. - */ - public com.google.protobuf.ByteString getIncludedTagsBytes(int index) { - return includedTags_.getByteString(index); - } + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COMPILATION_RESULT(2), + WORKFLOW_CONFIG(6), + COMPILATIONSOURCE_NOT_SET(0); + private final int value; - public static final int TRANSITIVE_DEPENDENCIES_INCLUDED_FIELD_NUMBER = 3; - private boolean transitiveDependenciesIncluded_ = false; - /** - * - * - *
-     * Immutable. When set to true, transitive dependencies of included actions will be
-     * executed.
-     * 
- * - * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The transitiveDependenciesIncluded. - */ - @java.lang.Override - public boolean getTransitiveDependenciesIncluded() { - return transitiveDependenciesIncluded_; + private CompilationSourceCase(int value) { + this.value = value; } - - public static final int TRANSITIVE_DEPENDENTS_INCLUDED_FIELD_NUMBER = 4; - private boolean transitiveDependentsIncluded_ = false; /** - * - * - *
-     * Immutable. When set to true, transitive dependents of included actions will be
-     * executed.
-     * 
- * - * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The transitiveDependentsIncluded. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Override - public boolean getTransitiveDependentsIncluded() { - return transitiveDependentsIncluded_; + @java.lang.Deprecated + public static CompilationSourceCase valueOf(int value) { + return forNumber(value); } - public static final int FULLY_REFRESH_INCREMENTAL_TABLES_ENABLED_FIELD_NUMBER = 5; - private boolean fullyRefreshIncrementalTablesEnabled_ = false; - /** - * - * - *
-     * Immutable. When set to true, any incremental tables will be fully refreshed.
-     * 
- * - * - * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The fullyRefreshIncrementalTablesEnabled. - */ - @java.lang.Override - public boolean getFullyRefreshIncrementalTablesEnabled() { - return fullyRefreshIncrementalTablesEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < includedTargets_.size(); i++) { - output.writeMessage(1, includedTargets_.get(i)); - } - for (int i = 0; i < includedTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, includedTags_.getRaw(i)); - } - if (transitiveDependenciesIncluded_ != false) { - output.writeBool(3, transitiveDependenciesIncluded_); - } - if (transitiveDependentsIncluded_ != false) { - output.writeBool(4, transitiveDependentsIncluded_); - } - if (fullyRefreshIncrementalTablesEnabled_ != false) { - output.writeBool(5, fullyRefreshIncrementalTablesEnabled_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < includedTargets_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, includedTargets_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < includedTags_.size(); i++) { - dataSize += computeStringSizeNoTag(includedTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludedTagsList().size(); - } - if (transitiveDependenciesIncluded_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, transitiveDependenciesIncluded_); - } - if (transitiveDependentsIncluded_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(4, transitiveDependentsIncluded_); - } - if (fullyRefreshIncrementalTablesEnabled_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 5, fullyRefreshIncrementalTablesEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig other = - (com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) obj; - - if (!getIncludedTargetsList().equals(other.getIncludedTargetsList())) return false; - if (!getIncludedTagsList().equals(other.getIncludedTagsList())) return false; - if (getTransitiveDependenciesIncluded() != other.getTransitiveDependenciesIncluded()) - return false; - if (getTransitiveDependentsIncluded() != other.getTransitiveDependentsIncluded()) - return false; - if (getFullyRefreshIncrementalTablesEnabled() - != other.getFullyRefreshIncrementalTablesEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIncludedTargetsCount() > 0) { - hash = (37 * hash) + INCLUDED_TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getIncludedTargetsList().hashCode(); - } - if (getIncludedTagsCount() > 0) { - hash = (37 * hash) + INCLUDED_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getIncludedTagsList().hashCode(); - } - hash = (37 * hash) + TRANSITIVE_DEPENDENCIES_INCLUDED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getTransitiveDependenciesIncluded()); - hash = (37 * hash) + TRANSITIVE_DEPENDENTS_INCLUDED_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransitiveDependentsIncluded()); - hash = (37 * hash) + FULLY_REFRESH_INCREMENTAL_TABLES_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getFullyRefreshIncrementalTablesEnabled()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Includes various configuration options for this workflow invocation.
-     * If both `included_targets` and `included_tags` are unset, all actions
-     * will be included.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.class, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (includedTargetsBuilder_ == null) { - includedTargets_ = java.util.Collections.emptyList(); - } else { - includedTargets_ = null; - includedTargetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - transitiveDependenciesIncluded_ = false; - transitiveDependentsIncluded_ = false; - fullyRefreshIncrementalTablesEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1beta1.DataformProto - .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig build() { - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig buildPartial() { - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig result = - new com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig result) { - if (includedTargetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - includedTargets_ = java.util.Collections.unmodifiableList(includedTargets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.includedTargets_ = includedTargets_; - } else { - result.includedTargets_ = includedTargetsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - includedTags_.makeImmutable(); - result.includedTags_ = includedTags_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.transitiveDependenciesIncluded_ = transitiveDependenciesIncluded_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.transitiveDependentsIncluded_ = transitiveDependentsIncluded_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fullyRefreshIncrementalTablesEnabled_ = fullyRefreshIncrementalTablesEnabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) { - return mergeFrom( - (com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig other) { - if (other - == com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - .getDefaultInstance()) return this; - if (includedTargetsBuilder_ == null) { - if (!other.includedTargets_.isEmpty()) { - if (includedTargets_.isEmpty()) { - includedTargets_ = other.includedTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIncludedTargetsIsMutable(); - includedTargets_.addAll(other.includedTargets_); - } - onChanged(); - } - } else { - if (!other.includedTargets_.isEmpty()) { - if (includedTargetsBuilder_.isEmpty()) { - includedTargetsBuilder_.dispose(); - includedTargetsBuilder_ = null; - includedTargets_ = other.includedTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - includedTargetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIncludedTargetsFieldBuilder() - : null; - } else { - includedTargetsBuilder_.addAllMessages(other.includedTargets_); - } - } - } - if (!other.includedTags_.isEmpty()) { - if (includedTags_.isEmpty()) { - includedTags_ = other.includedTags_; - bitField0_ |= 0x00000002; - } else { - ensureIncludedTagsIsMutable(); - includedTags_.addAll(other.includedTags_); - } - onChanged(); - } - if (other.getTransitiveDependenciesIncluded() != false) { - setTransitiveDependenciesIncluded(other.getTransitiveDependenciesIncluded()); - } - if (other.getTransitiveDependentsIncluded() != false) { - setTransitiveDependentsIncluded(other.getTransitiveDependentsIncluded()); - } - if (other.getFullyRefreshIncrementalTablesEnabled() != false) { - setFullyRefreshIncrementalTablesEnabled(other.getFullyRefreshIncrementalTablesEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataform.v1beta1.Target m = - input.readMessage( - com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); - if (includedTargetsBuilder_ == null) { - ensureIncludedTargetsIsMutable(); - includedTargets_.add(m); - } else { - includedTargetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludedTagsIsMutable(); - includedTags_.add(s); - break; - } // case 18 - case 24: - { - transitiveDependenciesIncluded_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - transitiveDependentsIncluded_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - fullyRefreshIncrementalTablesEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List includedTargets_ = - java.util.Collections.emptyList(); - - private void ensureIncludedTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - includedTargets_ = - new java.util.ArrayList(includedTargets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1beta1.Target, - com.google.cloud.dataform.v1beta1.Target.Builder, - com.google.cloud.dataform.v1beta1.TargetOrBuilder> - includedTargetsBuilder_; - - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public java.util.List getIncludedTargetsList() { - if (includedTargetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(includedTargets_); - } else { - return includedTargetsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public int getIncludedTargetsCount() { - if (includedTargetsBuilder_ == null) { - return includedTargets_.size(); - } else { - return includedTargetsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index) { - if (includedTargetsBuilder_ == null) { - return includedTargets_.get(index); - } else { - return includedTargetsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setIncludedTargets(int index, com.google.cloud.dataform.v1beta1.Target value) { - if (includedTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedTargetsIsMutable(); - includedTargets_.set(index, value); - onChanged(); - } else { - includedTargetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setIncludedTargets( - int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { - if (includedTargetsBuilder_ == null) { - ensureIncludedTargetsIsMutable(); - includedTargets_.set(index, builderForValue.build()); - onChanged(); - } else { - includedTargetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets(com.google.cloud.dataform.v1beta1.Target value) { - if (includedTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedTargetsIsMutable(); - includedTargets_.add(value); - onChanged(); - } else { - includedTargetsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets(int index, com.google.cloud.dataform.v1beta1.Target value) { - if (includedTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedTargetsIsMutable(); - includedTargets_.add(index, value); - onChanged(); - } else { - includedTargetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets( - com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { - if (includedTargetsBuilder_ == null) { - ensureIncludedTargetsIsMutable(); - includedTargets_.add(builderForValue.build()); - onChanged(); - } else { - includedTargetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets( - int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { - if (includedTargetsBuilder_ == null) { - ensureIncludedTargetsIsMutable(); - includedTargets_.add(index, builderForValue.build()); - onChanged(); - } else { - includedTargetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addAllIncludedTargets( - java.lang.Iterable values) { - if (includedTargetsBuilder_ == null) { - ensureIncludedTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTargets_); - onChanged(); - } else { - includedTargetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder clearIncludedTargets() { - if (includedTargetsBuilder_ == null) { - includedTargets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - includedTargetsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder removeIncludedTargets(int index) { - if (includedTargetsBuilder_ == null) { - ensureIncludedTargetsIsMutable(); - includedTargets_.remove(index); - onChanged(); - } else { - includedTargetsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1beta1.Target.Builder getIncludedTargetsBuilder(int index) { - return getIncludedTargetsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder( - int index) { - if (includedTargetsBuilder_ == null) { - return includedTargets_.get(index); - } else { - return includedTargetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public java.util.List - getIncludedTargetsOrBuilderList() { - if (includedTargetsBuilder_ != null) { - return includedTargetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(includedTargets_); - } - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1beta1.Target.Builder addIncludedTargetsBuilder() { - return getIncludedTargetsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1beta1.Target.Builder addIncludedTargetsBuilder(int index) { - return getIncludedTargetsFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public java.util.List - getIncludedTargetsBuilderList() { - return getIncludedTargetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1beta1.Target, - com.google.cloud.dataform.v1beta1.Target.Builder, - com.google.cloud.dataform.v1beta1.TargetOrBuilder> - getIncludedTargetsFieldBuilder() { - if (includedTargetsBuilder_ == null) { - includedTargetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1beta1.Target, - com.google.cloud.dataform.v1beta1.Target.Builder, - com.google.cloud.dataform.v1beta1.TargetOrBuilder>( - includedTargets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - includedTargets_ = null; - } - return includedTargetsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList includedTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncludedTagsIsMutable() { - if (!includedTags_.isModifiable()) { - includedTags_ = new com.google.protobuf.LazyStringArrayList(includedTags_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return A list containing the includedTags. - */ - public com.google.protobuf.ProtocolStringList getIncludedTagsList() { - includedTags_.makeImmutable(); - return includedTags_; - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The count of includedTags. - */ - public int getIncludedTagsCount() { - return includedTags_.size(); - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index of the element to return. - * @return The includedTags at the given index. - */ - public java.lang.String getIncludedTags(int index) { - return includedTags_.get(index); - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index of the value to return. - * @return The bytes of the includedTags at the given index. - */ - public com.google.protobuf.ByteString getIncludedTagsBytes(int index) { - return includedTags_.getByteString(index); - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param index The index to set the value at. - * @param value The includedTags to set. - * @return This builder for chaining. - */ - public Builder setIncludedTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedTagsIsMutable(); - includedTags_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The includedTags to add. - * @return This builder for chaining. - */ - public Builder addIncludedTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedTagsIsMutable(); - includedTags_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param values The includedTags to add. - * @return This builder for chaining. - */ - public Builder addAllIncludedTags(java.lang.Iterable values) { - ensureIncludedTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTags_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearIncludedTags() { - includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The set of tags to include.
-       * 
- * - * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes of the includedTags to add. - * @return This builder for chaining. - */ - public Builder addIncludedTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncludedTagsIsMutable(); - includedTags_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean transitiveDependenciesIncluded_; - /** - * - * - *
-       * Immutable. When set to true, transitive dependencies of included actions will be
-       * executed.
-       * 
- * - * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The transitiveDependenciesIncluded. - */ - @java.lang.Override - public boolean getTransitiveDependenciesIncluded() { - return transitiveDependenciesIncluded_; - } - /** - * - * - *
-       * Immutable. When set to true, transitive dependencies of included actions will be
-       * executed.
-       * 
- * - * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The transitiveDependenciesIncluded to set. - * @return This builder for chaining. - */ - public Builder setTransitiveDependenciesIncluded(boolean value) { - - transitiveDependenciesIncluded_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. When set to true, transitive dependencies of included actions will be
-       * executed.
-       * 
- * - * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearTransitiveDependenciesIncluded() { - bitField0_ = (bitField0_ & ~0x00000004); - transitiveDependenciesIncluded_ = false; - onChanged(); - return this; - } - - private boolean transitiveDependentsIncluded_; - /** - * - * - *
-       * Immutable. When set to true, transitive dependents of included actions will be
-       * executed.
-       * 
- * - * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The transitiveDependentsIncluded. - */ - @java.lang.Override - public boolean getTransitiveDependentsIncluded() { - return transitiveDependentsIncluded_; - } - /** - * - * - *
-       * Immutable. When set to true, transitive dependents of included actions will be
-       * executed.
-       * 
- * - * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The transitiveDependentsIncluded to set. - * @return This builder for chaining. - */ - public Builder setTransitiveDependentsIncluded(boolean value) { - - transitiveDependentsIncluded_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. When set to true, transitive dependents of included actions will be
-       * executed.
-       * 
- * - * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearTransitiveDependentsIncluded() { - bitField0_ = (bitField0_ & ~0x00000008); - transitiveDependentsIncluded_ = false; - onChanged(); - return this; - } - - private boolean fullyRefreshIncrementalTablesEnabled_; - /** - * - * - *
-       * Immutable. When set to true, any incremental tables will be fully refreshed.
-       * 
- * - * - * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The fullyRefreshIncrementalTablesEnabled. - */ - @java.lang.Override - public boolean getFullyRefreshIncrementalTablesEnabled() { - return fullyRefreshIncrementalTablesEnabled_; - } - /** - * - * - *
-       * Immutable. When set to true, any incremental tables will be fully refreshed.
-       * 
- * - * - * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The fullyRefreshIncrementalTablesEnabled to set. - * @return This builder for chaining. - */ - public Builder setFullyRefreshIncrementalTablesEnabled(boolean value) { - - fullyRefreshIncrementalTablesEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. When set to true, any incremental tables will be fully refreshed.
-       * 
- * - * - * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearFullyRefreshIncrementalTablesEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - fullyRefreshIncrementalTablesEnabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) - private static final com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig(); - } - - public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InvocationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + public static CompilationSourceCase forNumber(int value) { + switch (value) { + case 2: + return COMPILATION_RESULT; + case 6: + return WORKFLOW_CONFIG; + case 0: + return COMPILATIONSOURCE_NOT_SET; + default: + return null; + } } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public int getNumber() { + return this.value; } + }; - @java.lang.Override - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public CompilationSourceCase getCompilationSourceCase() { + return CompilationSourceCase.forNumber(compilationSourceCase_); } public static final int NAME_FIELD_NUMBER = 1; @@ -2095,14 +391,30 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int COMPILATION_RESULT_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object compilationResult_ = ""; /** * * *
-   * Immutable. The name of the compilation result to compile. Must be in the format
+   * 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) = { ... } + * + * + * @return Whether the compilationResult field is set. + */ + public boolean hasCompilationResult() { + return compilationSourceCase_ == 2; + } + /** + * + * + *
+   * Immutable. The name of the compilation result to use for this invocation.
+   * Must be in the format
    * `projects/*/locations/*/repositories/*/compilationResults/*`.
    * 
* @@ -2112,15 +424,19 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The compilationResult. */ - @java.lang.Override public java.lang.String getCompilationResult() { - java.lang.Object ref = compilationResult_; + java.lang.Object ref = ""; + if (compilationSourceCase_ == 2) { + ref = compilationSource_; + } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - compilationResult_ = s; + if (compilationSourceCase_ == 2) { + compilationSource_ = s; + } return s; } } @@ -2128,7 +444,8 @@ public java.lang.String getCompilationResult() { * * *
-   * Immutable. The name of the compilation result to compile. Must be in the format
+   * Immutable. The name of the compilation result to use for this invocation.
+   * Must be in the format
    * `projects/*/locations/*/repositories/*/compilationResults/*`.
    * 
* @@ -2138,13 +455,96 @@ public java.lang.String getCompilationResult() { * * @return The bytes for compilationResult. */ - @java.lang.Override public com.google.protobuf.ByteString getCompilationResultBytes() { - java.lang.Object ref = compilationResult_; + java.lang.Object ref = ""; + if (compilationSourceCase_ == 2) { + ref = compilationSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (compilationSourceCase_ == 2) { + compilationSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_CONFIG_FIELD_NUMBER = 6; + /** + * + * + *
+   * 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) = { ... } + * + * + * @return Whether the workflowConfig field is set. + */ + public boolean hasWorkflowConfig() { + return compilationSourceCase_ == 6; + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The workflowConfig. + */ + public java.lang.String getWorkflowConfig() { + java.lang.Object ref = ""; + if (compilationSourceCase_ == 6) { + ref = compilationSource_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (compilationSourceCase_ == 6) { + compilationSource_ = s; + } + return s; + } + } + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for workflowConfig. + */ + public com.google.protobuf.ByteString getWorkflowConfigBytes() { + java.lang.Object ref = ""; + if (compilationSourceCase_ == 6) { + ref = compilationSource_; + } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilationResult_ = b; + if (compilationSourceCase_ == 6) { + compilationSource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2152,7 +552,7 @@ public com.google.protobuf.ByteString getCompilationResultBytes() { } public static final int INVOCATION_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocationConfig_; + private com.google.cloud.dataform.v1beta1.InvocationConfig invocationConfig_; /** * * @@ -2161,7 +561,7 @@ public com.google.protobuf.ByteString getCompilationResultBytes() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the invocationConfig field is set. @@ -2178,16 +578,15 @@ public boolean hasInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return The invocationConfig. */ @java.lang.Override - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - getInvocationConfig() { + public com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig() { return invocationConfig_ == null - ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.getDefaultInstance() + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() : invocationConfig_; } /** @@ -2198,14 +597,14 @@ public boolean hasInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder + public com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder getInvocationConfigOrBuilder() { return invocationConfig_ == null - ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.getDefaultInstance() + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() : invocationConfig_; } @@ -2320,8 +719,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compilationResult_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compilationResult_); + if (compilationSourceCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compilationSource_); } if (invocationConfig_ != null) { output.writeMessage(3, getInvocationConfig()); @@ -2334,6 +733,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (invocationTiming_ != null) { output.writeMessage(5, getInvocationTiming()); } + if (compilationSourceCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, compilationSource_); + } getUnknownFields().writeTo(output); } @@ -2346,8 +748,8 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compilationResult_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compilationResult_); + if (compilationSourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compilationSource_); } if (invocationConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvocationConfig()); @@ -2360,6 +762,9 @@ public int getSerializedSize() { if (invocationTiming_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming()); } + if (compilationSourceCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, compilationSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2377,7 +782,6 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataform.v1beta1.WorkflowInvocation) obj; if (!getName().equals(other.getName())) return false; - if (!getCompilationResult().equals(other.getCompilationResult())) return false; if (hasInvocationConfig() != other.hasInvocationConfig()) return false; if (hasInvocationConfig()) { if (!getInvocationConfig().equals(other.getInvocationConfig())) return false; @@ -2387,6 +791,17 @@ public boolean equals(final java.lang.Object obj) { if (hasInvocationTiming()) { if (!getInvocationTiming().equals(other.getInvocationTiming())) return false; } + if (!getCompilationSourceCase().equals(other.getCompilationSourceCase())) return false; + switch (compilationSourceCase_) { + case 2: + if (!getCompilationResult().equals(other.getCompilationResult())) return false; + break; + case 6: + if (!getWorkflowConfig().equals(other.getWorkflowConfig())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2400,8 +815,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; - hash = (53 * hash) + getCompilationResult().hashCode(); if (hasInvocationConfig()) { hash = (37 * hash) + INVOCATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getInvocationConfig().hashCode(); @@ -2412,6 +825,18 @@ public int hashCode() { hash = (37 * hash) + INVOCATION_TIMING_FIELD_NUMBER; hash = (53 * hash) + getInvocationTiming().hashCode(); } + switch (compilationSourceCase_) { + case 2: + hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCompilationResult().hashCode(); + break; + case 6: + hash = (37 * hash) + WORKFLOW_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowConfig().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2552,7 +977,6 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - compilationResult_ = ""; invocationConfig_ = null; if (invocationConfigBuilder_ != null) { invocationConfigBuilder_.dispose(); @@ -2564,6 +988,8 @@ public Builder clear() { invocationTimingBuilder_.dispose(); invocationTimingBuilder_ = null; } + compilationSourceCase_ = 0; + compilationSource_ = null; return this; } @@ -2594,6 +1020,7 @@ public com.google.cloud.dataform.v1beta1.WorkflowInvocation buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -2603,22 +1030,24 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.WorkflowInvocation if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.compilationResult_ = compilationResult_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.invocationConfig_ = invocationConfigBuilder_ == null ? invocationConfig_ : invocationConfigBuilder_.build(); } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.invocationTiming_ = invocationTimingBuilder_ == null ? invocationTiming_ : invocationTimingBuilder_.build(); } } + private void buildPartialOneofs(com.google.cloud.dataform.v1beta1.WorkflowInvocation result) { + result.compilationSourceCase_ = compilationSourceCase_; + result.compilationSource_ = this.compilationSource_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2670,11 +1099,6 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocation ot bitField0_ |= 0x00000001; onChanged(); } - if (!other.getCompilationResult().isEmpty()) { - compilationResult_ = other.compilationResult_; - bitField0_ |= 0x00000002; - onChanged(); - } if (other.hasInvocationConfig()) { mergeInvocationConfig(other.getInvocationConfig()); } @@ -2684,6 +1108,26 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocation ot if (other.hasInvocationTiming()) { mergeInvocationTiming(other.getInvocationTiming()); } + switch (other.getCompilationSourceCase()) { + case COMPILATION_RESULT: + { + compilationSourceCase_ = 2; + compilationSource_ = other.compilationSource_; + onChanged(); + break; + } + case WORKFLOW_CONFIG: + { + compilationSourceCase_ = 6; + compilationSource_ = other.compilationSource_; + onChanged(); + break; + } + case COMPILATIONSOURCE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2718,30 +1162,38 @@ public Builder mergeFrom( } // case 10 case 18: { - compilationResult_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + java.lang.String s = input.readStringRequireUtf8(); + compilationSourceCase_ = 2; + compilationSource_ = s; break; } // case 18 case 26: { input.readMessage( getInvocationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 32: { state_ = input.readEnum(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage( getInvocationTimingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + compilationSourceCase_ = 6; + compilationSource_ = s; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2759,6 +1211,20 @@ public Builder mergeFrom( return this; } + private int compilationSourceCase_ = 0; + private java.lang.Object compilationSource_; + + public CompilationSourceCase getCompilationSourceCase() { + return CompilationSourceCase.forNumber(compilationSourceCase_); + } + + public Builder clearCompilationSource() { + compilationSourceCase_ = 0; + compilationSource_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -2867,12 +1333,31 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object compilationResult_ = ""; /** * * *
-     * Immutable. The name of the compilation result to compile. Must be in the format
+     * 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) = { ... } + * + * + * @return Whether the compilationResult field is set. + */ + @java.lang.Override + public boolean hasCompilationResult() { + return compilationSourceCase_ == 2; + } + /** + * + * + *
+     * Immutable. The name of the compilation result to use for this invocation.
+     * Must be in the format
      * `projects/*/locations/*/repositories/*/compilationResults/*`.
      * 
* @@ -2882,12 +1367,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * @return The compilationResult. */ + @java.lang.Override public java.lang.String getCompilationResult() { - java.lang.Object ref = compilationResult_; + java.lang.Object ref = ""; + if (compilationSourceCase_ == 2) { + ref = compilationSource_; + } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - compilationResult_ = s; + if (compilationSourceCase_ == 2) { + compilationSource_ = s; + } return s; } else { return (java.lang.String) ref; @@ -2897,7 +1388,8 @@ public java.lang.String getCompilationResult() { * * *
-     * Immutable. The name of the compilation result to compile. Must be in the format
+     * Immutable. The name of the compilation result to use for this invocation.
+     * Must be in the format
      * `projects/*/locations/*/repositories/*/compilationResults/*`.
      * 
* @@ -2907,12 +1399,18 @@ public java.lang.String getCompilationResult() { * * @return The bytes for compilationResult. */ + @java.lang.Override public com.google.protobuf.ByteString getCompilationResultBytes() { - java.lang.Object ref = compilationResult_; + java.lang.Object ref = ""; + if (compilationSourceCase_ == 2) { + ref = compilationSource_; + } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilationResult_ = b; + if (compilationSourceCase_ == 2) { + compilationSource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2922,7 +1420,8 @@ public com.google.protobuf.ByteString getCompilationResultBytes() { * * *
-     * Immutable. The name of the compilation result to compile. Must be in the format
+     * Immutable. The name of the compilation result to use for this invocation.
+     * Must be in the format
      * `projects/*/locations/*/repositories/*/compilationResults/*`.
      * 
* @@ -2937,8 +1436,8 @@ public Builder setCompilationResult(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - compilationResult_ = value; - bitField0_ |= 0x00000002; + compilationSourceCase_ = 2; + compilationSource_ = value; onChanged(); return this; } @@ -2946,7 +1445,8 @@ public Builder setCompilationResult(java.lang.String value) { * * *
-     * Immutable. The name of the compilation result to compile. Must be in the format
+     * Immutable. The name of the compilation result to use for this invocation.
+     * Must be in the format
      * `projects/*/locations/*/repositories/*/compilationResults/*`.
      * 
* @@ -2957,16 +1457,19 @@ public Builder setCompilationResult(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCompilationResult() { - compilationResult_ = getDefaultInstance().getCompilationResult(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + if (compilationSourceCase_ == 2) { + compilationSourceCase_ = 0; + compilationSource_ = null; + onChanged(); + } return this; } /** * * *
-     * Immutable. The name of the compilation result to compile. Must be in the format
+     * Immutable. The name of the compilation result to use for this invocation.
+     * Must be in the format
      * `projects/*/locations/*/repositories/*/compilationResults/*`.
      * 
* @@ -2982,17 +1485,169 @@ public Builder setCompilationResultBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - compilationResult_ = value; - bitField0_ |= 0x00000002; + compilationSourceCase_ = 2; + compilationSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * 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) = { ... } + * + * + * @return Whether the workflowConfig field is set. + */ + @java.lang.Override + public boolean hasWorkflowConfig() { + return compilationSourceCase_ == 6; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The workflowConfig. + */ + @java.lang.Override + public java.lang.String getWorkflowConfig() { + java.lang.Object ref = ""; + if (compilationSourceCase_ == 6) { + ref = compilationSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (compilationSourceCase_ == 6) { + compilationSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return The bytes for workflowConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkflowConfigBytes() { + java.lang.Object ref = ""; + if (compilationSourceCase_ == 6) { + ref = compilationSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (compilationSourceCase_ == 6) { + compilationSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The workflowConfig to set. + * @return This builder for chaining. + */ + public Builder setWorkflowConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + compilationSourceCase_ = 6; + compilationSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWorkflowConfig() { + if (compilationSourceCase_ == 6) { + compilationSourceCase_ = 0; + compilationSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * 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) = { ... } + * + * + * @param value The bytes for workflowConfig to set. + * @return This builder for chaining. + */ + public Builder setWorkflowConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + compilationSourceCase_ = 6; + compilationSource_ = value; onChanged(); return this; } - private com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocationConfig_; + private com.google.cloud.dataform.v1beta1.InvocationConfig invocationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder> + com.google.cloud.dataform.v1beta1.InvocationConfig, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder> invocationConfigBuilder_; /** * @@ -3002,13 +1657,13 @@ public Builder setCompilationResultBytes(com.google.protobuf.ByteString value) { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the invocationConfig field is set. */ public boolean hasInvocationConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3018,17 +1673,15 @@ public boolean hasInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return The invocationConfig. */ - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - getInvocationConfig() { + public com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig() { if (invocationConfigBuilder_ == null) { return invocationConfig_ == null - ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - .getDefaultInstance() + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() : invocationConfig_; } else { return invocationConfigBuilder_.getMessage(); @@ -3042,11 +1695,10 @@ public boolean hasInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ - public Builder setInvocationConfig( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig value) { + public Builder setInvocationConfig(com.google.cloud.dataform.v1beta1.InvocationConfig value) { if (invocationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3055,7 +1707,7 @@ public Builder setInvocationConfig( } else { invocationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3067,18 +1719,17 @@ public Builder setInvocationConfig( *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setInvocationConfig( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder - builderForValue) { + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder builderForValue) { if (invocationConfigBuilder_ == null) { invocationConfig_ = builderForValue.build(); } else { invocationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3090,17 +1741,15 @@ public Builder setInvocationConfig( *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ - public Builder mergeInvocationConfig( - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig value) { + public Builder mergeInvocationConfig(com.google.cloud.dataform.v1beta1.InvocationConfig value) { if (invocationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && invocationConfig_ != null && invocationConfig_ - != com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - .getDefaultInstance()) { + != com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()) { getInvocationConfigBuilder().mergeFrom(value); } else { invocationConfig_ = value; @@ -3108,7 +1757,7 @@ public Builder mergeInvocationConfig( } else { invocationConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3120,11 +1769,11 @@ public Builder mergeInvocationConfig( *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder clearInvocationConfig() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); invocationConfig_ = null; if (invocationConfigBuilder_ != null) { invocationConfigBuilder_.dispose(); @@ -3141,12 +1790,11 @@ public Builder clearInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder - getInvocationConfigBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.dataform.v1beta1.InvocationConfig.Builder getInvocationConfigBuilder() { + bitField0_ |= 0x00000008; onChanged(); return getInvocationConfigFieldBuilder().getBuilder(); } @@ -3158,17 +1806,16 @@ public Builder clearInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ - public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder + public com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder getInvocationConfigOrBuilder() { if (invocationConfigBuilder_ != null) { return invocationConfigBuilder_.getMessageOrBuilder(); } else { return invocationConfig_ == null - ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig - .getDefaultInstance() + ? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance() : invocationConfig_; } } @@ -3180,20 +1827,20 @@ public Builder clearInvocationConfig() { *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder> + com.google.cloud.dataform.v1beta1.InvocationConfig, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder> getInvocationConfigFieldBuilder() { if (invocationConfigBuilder_ == null) { invocationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder, - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder>( + com.google.cloud.dataform.v1beta1.InvocationConfig, + com.google.cloud.dataform.v1beta1.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder>( getInvocationConfig(), getParentForChildren(), isClean()); invocationConfig_ = null; } @@ -3234,7 +1881,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3277,7 +1924,7 @@ public Builder setState(com.google.cloud.dataform.v1beta1.WorkflowInvocation.Sta if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; state_ = value.getNumber(); onChanged(); return this; @@ -3296,7 +1943,7 @@ public Builder setState(com.google.cloud.dataform.v1beta1.WorkflowInvocation.Sta * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; onChanged(); return this; @@ -3322,7 +1969,7 @@ public Builder clearState() { * @return Whether the invocationTiming field is set. */ public boolean hasInvocationTiming() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -3366,7 +2013,7 @@ public Builder setInvocationTiming(com.google.type.Interval value) { } else { invocationTimingBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3387,7 +2034,7 @@ public Builder setInvocationTiming(com.google.type.Interval.Builder builderForVa } else { invocationTimingBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3404,7 +2051,7 @@ public Builder setInvocationTiming(com.google.type.Interval.Builder builderForVa */ public Builder mergeInvocationTiming(com.google.type.Interval value) { if (invocationTimingBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && invocationTiming_ != null && invocationTiming_ != com.google.type.Interval.getDefaultInstance()) { getInvocationTimingBuilder().mergeFrom(value); @@ -3414,7 +2061,7 @@ public Builder mergeInvocationTiming(com.google.type.Interval value) { } else { invocationTimingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3430,7 +2077,7 @@ public Builder mergeInvocationTiming(com.google.type.Interval value) { * */ public Builder clearInvocationTiming() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); invocationTiming_ = null; if (invocationTimingBuilder_ != null) { invocationTimingBuilder_.dispose(); @@ -3451,7 +2098,7 @@ public Builder clearInvocationTiming() { * */ public com.google.type.Interval.Builder getInvocationTimingBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getInvocationTimingFieldBuilder().getBuilder(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java index 51abcd4990e7..e191d96569a5 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Represents the current state of an workflow invocation action.
+   * Represents the current state of a workflow invocation action.
    * 
* * Protobuf enum {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction.State} @@ -985,7 +985,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Output only. This action's identifier. Unique within the workflow invocation.
+   * Output only. This action's identifier. Unique within the workflow
+   * invocation.
    * 
* * @@ -1002,7 +1003,8 @@ public boolean hasTarget() { * * *
-   * Output only. This action's identifier. Unique within the workflow invocation.
+   * Output only. This action's identifier. Unique within the workflow
+   * invocation.
    * 
* * @@ -1021,7 +1023,8 @@ public com.google.cloud.dataform.v1beta1.Target getTarget() { * * *
-   * Output only. This action's identifier. Unique within the workflow invocation.
+   * Output only. This action's identifier. Unique within the workflow
+   * invocation.
    * 
* * @@ -1041,8 +1044,8 @@ public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { * * *
-   * 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.
    * 
* * @@ -1059,8 +1062,8 @@ public boolean hasCanonicalTarget() { * * *
-   * 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.
    * 
* * @@ -1079,8 +1082,8 @@ public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() { * * *
-   * 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.
    * 
* * @@ -1143,7 +1146,8 @@ public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State getState * * *
-   * 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]; @@ -1166,7 +1170,8 @@ public java.lang.String getFailureReason() { * * *
-   * 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]; @@ -1816,7 +1821,8 @@ public Builder mergeFrom( * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1832,7 +1838,8 @@ public boolean hasTarget() { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1854,7 +1861,8 @@ public com.google.cloud.dataform.v1beta1.Target getTarget() { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1878,7 +1886,8 @@ public Builder setTarget(com.google.cloud.dataform.v1beta1.Target value) { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1899,7 +1908,8 @@ public Builder setTarget(com.google.cloud.dataform.v1beta1.Target.Builder builde * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1926,7 +1936,8 @@ public Builder mergeTarget(com.google.cloud.dataform.v1beta1.Target value) { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1947,7 +1958,8 @@ public Builder clearTarget() { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1963,7 +1975,8 @@ public com.google.cloud.dataform.v1beta1.Target.Builder getTargetBuilder() { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -1983,7 +1996,8 @@ public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { * * *
-     * Output only. This action's identifier. Unique within the workflow invocation.
+     * Output only. This action's identifier. Unique within the workflow
+     * invocation.
      * 
* * @@ -2017,8 +2031,8 @@ public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { * * *
-     * 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.
      * 
* * @@ -2034,8 +2048,8 @@ public boolean hasCanonicalTarget() { * * *
-     * 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.
      * 
* * @@ -2057,8 +2071,8 @@ public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() { * * *
-     * 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.
      * 
* * @@ -2082,8 +2096,8 @@ public Builder setCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value * * *
-     * 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.
      * 
* * @@ -2105,8 +2119,8 @@ public Builder setCanonicalTarget( * * *
-     * 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.
      * 
* * @@ -2133,8 +2147,8 @@ public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1beta1.Target val * * *
-     * 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.
      * 
* * @@ -2155,8 +2169,8 @@ public Builder clearCanonicalTarget() { * * *
-     * 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.
      * 
* * @@ -2172,8 +2186,8 @@ public com.google.cloud.dataform.v1beta1.Target.Builder getCanonicalTargetBuilde * * *
-     * 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.
      * 
* * @@ -2193,8 +2207,8 @@ public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBui * * *
-     * 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.
      * 
* * @@ -2326,7 +2340,8 @@ public Builder clearState() { * * *
-     * 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]; @@ -2348,7 +2363,8 @@ public java.lang.String getFailureReason() { * * *
-     * 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]; @@ -2370,7 +2386,8 @@ public com.google.protobuf.ByteString getFailureReasonBytes() { * * *
-     * 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]; @@ -2391,7 +2408,8 @@ public Builder setFailureReason(java.lang.String value) { * * *
-     * 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]; @@ -2408,7 +2426,8 @@ public Builder clearFailureReason() { * * *
-     * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java index bdca3bf55db0..77dda3863bda 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java @@ -27,7 +27,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * Output only. This action's identifier. Unique within the workflow invocation.
+   * Output only. This action's identifier. Unique within the workflow
+   * invocation.
    * 
* * @@ -41,7 +42,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * Output only. This action's identifier. Unique within the workflow invocation.
+   * Output only. This action's identifier. Unique within the workflow
+   * invocation.
    * 
* * @@ -55,7 +57,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * Output only. This action's identifier. Unique within the workflow invocation.
+   * Output only. This action's identifier. Unique within the workflow
+   * invocation.
    * 
* * @@ -68,8 +71,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * 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.
    * 
* * @@ -83,8 +86,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * 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.
    * 
* * @@ -98,8 +101,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * 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.
    * 
* * @@ -141,7 +144,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * 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]; @@ -153,7 +157,8 @@ public interface WorkflowInvocationActionOrBuilder * * *
-   * 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]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java index 2e610ad9b129..b4225729aab2 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java @@ -52,7 +52,24 @@ public interface WorkflowInvocationOrBuilder * * *
-   * Immutable. The name of the compilation result to compile. Must be in the format
+   * 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) = { ... } + * + * + * @return Whether the compilationResult field is set. + */ + boolean hasCompilationResult(); + /** + * + * + *
+   * Immutable. The name of the compilation result to use for this invocation.
+   * Must be in the format
    * `projects/*/locations/*/repositories/*/compilationResults/*`.
    * 
* @@ -67,7 +84,8 @@ public interface WorkflowInvocationOrBuilder * * *
-   * Immutable. The name of the compilation result to compile. Must be in the format
+   * Immutable. The name of the compilation result to use for this invocation.
+   * Must be in the format
    * `projects/*/locations/*/repositories/*/compilationResults/*`.
    * 
* @@ -79,6 +97,52 @@ public interface WorkflowInvocationOrBuilder */ com.google.protobuf.ByteString getCompilationResultBytes(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return Whether the workflowConfig field is set. + */ + boolean hasWorkflowConfig(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The workflowConfig. + */ + java.lang.String getWorkflowConfig(); + /** + * + * + *
+   * 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) = { ... } + * + * + * @return The bytes for workflowConfig. + */ + com.google.protobuf.ByteString getWorkflowConfigBytes(); + /** * * @@ -87,7 +151,7 @@ public interface WorkflowInvocationOrBuilder *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the invocationConfig field is set. @@ -101,12 +165,12 @@ public interface WorkflowInvocationOrBuilder *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * * * @return The invocationConfig. */ - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig getInvocationConfig(); + com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig(); /** * * @@ -115,11 +179,10 @@ public interface WorkflowInvocationOrBuilder *
* * - * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * */ - com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder - getInvocationConfigOrBuilder(); + com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder getInvocationConfigOrBuilder(); /** * @@ -187,4 +250,7 @@ public interface WorkflowInvocationOrBuilder * */ com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder(); + + com.google.cloud.dataform.v1beta1.WorkflowInvocation.CompilationSourceCase + getCompilationSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto index 466459c30926..afdf707879d4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/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/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/commitrepositorychanges/AsyncCommitRepositoryChanges.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/commitrepositorychanges/AsyncCommitRepositoryChanges.java new file mode 100644 index 000000000000..af39107076d5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/commitrepositorychanges/AsyncCommitRepositoryChanges.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CommitMetadata; +import com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.protobuf.Empty; +import java.util.HashMap; + +public class AsyncCommitRepositoryChanges { + + public static void main(String[] args) throws Exception { + asyncCommitRepositoryChanges(); + } + + public static void asyncCommitRepositoryChanges() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CommitRepositoryChangesRequest request = + CommitRepositoryChangesRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitMetadata(CommitMetadata.newBuilder().build()) + .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + .putAllFileOperations( + new HashMap()) + .build(); + ApiFuture future = + dataformClient.commitRepositoryChangesCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/commitrepositorychanges/SyncCommitRepositoryChanges.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/commitrepositorychanges/SyncCommitRepositoryChanges.java new file mode 100644 index 000000000000..76dc7a82030b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/commitrepositorychanges/SyncCommitRepositoryChanges.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_sync] +import com.google.cloud.dataform.v1beta1.CommitMetadata; +import com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.protobuf.Empty; +import java.util.HashMap; + +public class SyncCommitRepositoryChanges { + + public static void main(String[] args) throws Exception { + syncCommitRepositoryChanges(); + } + + public static void syncCommitRepositoryChanges() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CommitRepositoryChangesRequest request = + CommitRepositoryChangesRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitMetadata(CommitMetadata.newBuilder().build()) + .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + .putAllFileOperations( + new HashMap()) + .build(); + dataformClient.commitRepositoryChanges(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/computerepositoryaccesstokenstatus/AsyncComputeRepositoryAccessTokenStatus.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/computerepositoryaccesstokenstatus/AsyncComputeRepositoryAccessTokenStatus.java new file mode 100644 index 000000000000..fee9659fa70c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/computerepositoryaccesstokenstatus/AsyncComputeRepositoryAccessTokenStatus.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncComputeRepositoryAccessTokenStatus { + + public static void main(String[] args) throws Exception { + asyncComputeRepositoryAccessTokenStatus(); + } + + public static void asyncComputeRepositoryAccessTokenStatus() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ComputeRepositoryAccessTokenStatusRequest request = + ComputeRepositoryAccessTokenStatusRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + ApiFuture future = + dataformClient.computeRepositoryAccessTokenStatusCallable().futureCall(request); + // Do something. + ComputeRepositoryAccessTokenStatusResponse response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/computerepositoryaccesstokenstatus/SyncComputeRepositoryAccessTokenStatus.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/computerepositoryaccesstokenstatus/SyncComputeRepositoryAccessTokenStatus.java new file mode 100644 index 000000000000..060206b8dc38 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/computerepositoryaccesstokenstatus/SyncComputeRepositoryAccessTokenStatus.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest; +import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncComputeRepositoryAccessTokenStatus { + + public static void main(String[] args) throws Exception { + syncComputeRepositoryAccessTokenStatus(); + } + + public static void syncComputeRepositoryAccessTokenStatus() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ComputeRepositoryAccessTokenStatusRequest request = + ComputeRepositoryAccessTokenStatusRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + ComputeRepositoryAccessTokenStatusResponse response = + dataformClient.computeRepositoryAccessTokenStatus(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/AsyncCreateReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/AsyncCreateReleaseConfig.java new file mode 100644 index 000000000000..3ce0d8bcffa7 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/AsyncCreateReleaseConfig.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncCreateReleaseConfig { + + public static void main(String[] args) throws Exception { + asyncCreateReleaseConfig(); + } + + public static void asyncCreateReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setReleaseConfig(ReleaseConfig.newBuilder().build()) + .setReleaseConfigId("releaseConfigId1350457636") + .build(); + ApiFuture future = + dataformClient.createReleaseConfigCallable().futureCall(request); + // Do something. + ReleaseConfig response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfig.java new file mode 100644 index 000000000000..055fc07803be --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfig.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_sync] +import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncCreateReleaseConfig { + + public static void main(String[] args) throws Exception { + syncCreateReleaseConfig(); + } + + public static void syncCreateReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setReleaseConfig(ReleaseConfig.newBuilder().build()) + .setReleaseConfigId("releaseConfigId1350457636") + .build(); + ReleaseConfig response = dataformClient.createReleaseConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfigRepositorynameReleaseconfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfigRepositorynameReleaseconfigString.java new file mode 100644 index 000000000000..a3d79347b7fc --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfigRepositorynameReleaseconfigString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_RepositorynameReleaseconfigString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncCreateReleaseConfigRepositorynameReleaseconfigString { + + public static void main(String[] args) throws Exception { + syncCreateReleaseConfigRepositorynameReleaseconfigString(); + } + + public static void syncCreateReleaseConfigRepositorynameReleaseconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + ReleaseConfig response = + dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_RepositorynameReleaseconfigString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfigStringReleaseconfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfigStringReleaseconfigString.java new file mode 100644 index 000000000000..244c1dc365de --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createreleaseconfig/SyncCreateReleaseConfigStringReleaseconfigString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_StringReleaseconfigString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncCreateReleaseConfigStringReleaseconfigString { + + public static void main(String[] args) throws Exception { + syncCreateReleaseConfigStringReleaseconfigString(); + } + + public static void syncCreateReleaseConfigStringReleaseconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + String releaseConfigId = "releaseConfigId1350457636"; + ReleaseConfig response = + dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_StringReleaseconfigString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/AsyncCreateWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/AsyncCreateWorkflowConfig.java new file mode 100644 index 000000000000..75227f10ea2f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/AsyncCreateWorkflowConfig.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class AsyncCreateWorkflowConfig { + + public static void main(String[] args) throws Exception { + asyncCreateWorkflowConfig(); + } + + public static void asyncCreateWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + .setWorkflowConfigId("workflowConfigId-1331048228") + .build(); + ApiFuture future = + dataformClient.createWorkflowConfigCallable().futureCall(request); + // Do something. + WorkflowConfig response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfig.java new file mode 100644 index 000000000000..d2df2dd48bd2 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfig.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_sync] +import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class SyncCreateWorkflowConfig { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowConfig(); + } + + public static void syncCreateWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + .setWorkflowConfigId("workflowConfigId-1331048228") + .build(); + WorkflowConfig response = dataformClient.createWorkflowConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfigRepositorynameWorkflowconfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfigRepositorynameWorkflowconfigString.java new file mode 100644 index 000000000000..559313579231 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfigRepositorynameWorkflowconfigString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_RepositorynameWorkflowconfigString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class SyncCreateWorkflowConfigRepositorynameWorkflowconfigString { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowConfigRepositorynameWorkflowconfigString(); + } + + public static void syncCreateWorkflowConfigRepositorynameWorkflowconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + WorkflowConfig response = + dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_RepositorynameWorkflowconfigString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfigStringWorkflowconfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfigStringWorkflowconfigString.java new file mode 100644 index 000000000000..93eebd09c280 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkflowconfig/SyncCreateWorkflowConfigStringWorkflowconfigString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_StringWorkflowconfigString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class SyncCreateWorkflowConfigStringWorkflowconfigString { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowConfigStringWorkflowconfigString(); + } + + public static void syncCreateWorkflowConfigStringWorkflowconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + String workflowConfigId = "workflowConfigId-1331048228"; + WorkflowConfig response = + dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_StringWorkflowconfigString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/AsyncDeleteReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/AsyncDeleteReleaseConfig.java new file mode 100644 index 000000000000..2156dee77831 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/AsyncDeleteReleaseConfig.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; +import com.google.protobuf.Empty; + +public class AsyncDeleteReleaseConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteReleaseConfig(); + } + + public static void asyncDeleteReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder() + .setName( + ReleaseConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .build(); + ApiFuture future = dataformClient.deleteReleaseConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfig.java new file mode 100644 index 000000000000..6339a75d564f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfig.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteReleaseConfig { + + public static void main(String[] args) throws Exception { + syncDeleteReleaseConfig(); + } + + public static void syncDeleteReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder() + .setName( + ReleaseConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .build(); + dataformClient.deleteReleaseConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfigReleaseconfigname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfigReleaseconfigname.java new file mode 100644 index 000000000000..45388c8512a5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfigReleaseconfigname.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_Releaseconfigname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteReleaseConfigReleaseconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteReleaseConfigReleaseconfigname(); + } + + public static void syncDeleteReleaseConfigReleaseconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + dataformClient.deleteReleaseConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_Releaseconfigname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfigString.java new file mode 100644 index 000000000000..f38f1b52b025 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletereleaseconfig/SyncDeleteReleaseConfigString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteReleaseConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteReleaseConfigString(); + } + + public static void syncDeleteReleaseConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString(); + dataformClient.deleteReleaseConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/AsyncDeleteWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/AsyncDeleteWorkflowConfig.java new file mode 100644 index 000000000000..2e995d2852a1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/AsyncDeleteWorkflowConfig.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; +import com.google.protobuf.Empty; + +public class AsyncDeleteWorkflowConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkflowConfig(); + } + + public static void asyncDeleteWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .build(); + ApiFuture future = dataformClient.deleteWorkflowConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfig.java new file mode 100644 index 000000000000..08a645d12e92 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfig.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkflowConfig { + + public static void main(String[] args) throws Exception { + syncDeleteWorkflowConfig(); + } + + public static void syncDeleteWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .build(); + dataformClient.deleteWorkflowConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfigString.java new file mode 100644 index 000000000000..9c58fc26387e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfigString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkflowConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkflowConfigString(); + } + + public static void syncDeleteWorkflowConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString(); + dataformClient.deleteWorkflowConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfigWorkflowconfigname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfigWorkflowconfigname.java new file mode 100644 index 000000000000..b95710f4ce1c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteworkflowconfig/SyncDeleteWorkflowConfigWorkflowconfigname.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_Workflowconfigname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteWorkflowConfigWorkflowconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteWorkflowConfigWorkflowconfigname(); + } + + public static void syncDeleteWorkflowConfigWorkflowconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + dataformClient.deleteWorkflowConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_Workflowconfigname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/AsyncFetchRepositoryHistory.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/AsyncFetchRepositoryHistory.java new file mode 100644 index 000000000000..386b89eaf42d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/AsyncFetchRepositoryHistory.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CommitLogEntry; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncFetchRepositoryHistory { + + public static void main(String[] args) throws Exception { + asyncFetchRepositoryHistory(); + } + + public static void asyncFetchRepositoryHistory() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataformClient.fetchRepositoryHistoryPagedCallable().futureCall(request); + // Do something. + for (CommitLogEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/AsyncFetchRepositoryHistoryPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/AsyncFetchRepositoryHistoryPaged.java new file mode 100644 index 000000000000..968db30e51b8 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/AsyncFetchRepositoryHistoryPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_Paged_async] +import com.google.cloud.dataform.v1beta1.CommitLogEntry; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.common.base.Strings; + +public class AsyncFetchRepositoryHistoryPaged { + + public static void main(String[] args) throws Exception { + asyncFetchRepositoryHistoryPaged(); + } + + public static void asyncFetchRepositoryHistoryPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchRepositoryHistoryResponse response = + dataformClient.fetchRepositoryHistoryCallable().call(request); + for (CommitLogEntry element : response.getCommitsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/SyncFetchRepositoryHistory.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/SyncFetchRepositoryHistory.java new file mode 100644 index 000000000000..429808489e4d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/fetchrepositoryhistory/SyncFetchRepositoryHistory.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_sync] +import com.google.cloud.dataform.v1beta1.CommitLogEntry; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncFetchRepositoryHistory { + + public static void main(String[] args) throws Exception { + syncFetchRepositoryHistory(); + } + + public static void syncFetchRepositoryHistory() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FetchRepositoryHistoryRequest request = + FetchRepositoryHistoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..3f0a9269f4e8 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetIamPolicy_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..37f3c4128b89 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetIamPolicy_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = dataformClient.getIamPolicy(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetIamPolicy_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/AsyncGetReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/AsyncGetReleaseConfig.java new file mode 100644 index 000000000000..5dbc1fba176b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/AsyncGetReleaseConfig.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetReleaseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; + +public class AsyncGetReleaseConfig { + + public static void main(String[] args) throws Exception { + asyncGetReleaseConfig(); + } + + public static void asyncGetReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetReleaseConfigRequest request = + GetReleaseConfigRequest.newBuilder() + .setName( + ReleaseConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .build(); + ApiFuture future = + dataformClient.getReleaseConfigCallable().futureCall(request); + // Do something. + ReleaseConfig response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfig.java new file mode 100644 index 000000000000..6797d1644f5c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfig.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetReleaseConfig_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; + +public class SyncGetReleaseConfig { + + public static void main(String[] args) throws Exception { + syncGetReleaseConfig(); + } + + public static void syncGetReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetReleaseConfigRequest request = + GetReleaseConfigRequest.newBuilder() + .setName( + ReleaseConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString()) + .build(); + ReleaseConfig response = dataformClient.getReleaseConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfigReleaseconfigname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfigReleaseconfigname.java new file mode 100644 index 000000000000..3a7d2cc8c533 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfigReleaseconfigname.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetReleaseConfig_Releaseconfigname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; + +public class SyncGetReleaseConfigReleaseconfigname { + + public static void main(String[] args) throws Exception { + syncGetReleaseConfigReleaseconfigname(); + } + + public static void syncGetReleaseConfigReleaseconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ReleaseConfigName name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + ReleaseConfig response = dataformClient.getReleaseConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_Releaseconfigname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfigString.java new file mode 100644 index 000000000000..e26cba81abb9 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getreleaseconfig/SyncGetReleaseConfigString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetReleaseConfig_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.ReleaseConfigName; + +public class SyncGetReleaseConfigString { + + public static void main(String[] args) throws Exception { + syncGetReleaseConfigString(); + } + + public static void syncGetReleaseConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = + ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + .toString(); + ReleaseConfig response = dataformClient.getReleaseConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/AsyncGetWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/AsyncGetWorkflowConfig.java new file mode 100644 index 000000000000..7d5c81374723 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/AsyncGetWorkflowConfig.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; + +public class AsyncGetWorkflowConfig { + + public static void main(String[] args) throws Exception { + asyncGetWorkflowConfig(); + } + + public static void asyncGetWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetWorkflowConfigRequest request = + GetWorkflowConfigRequest.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .build(); + ApiFuture future = + dataformClient.getWorkflowConfigCallable().futureCall(request); + // Do something. + WorkflowConfig response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfig.java new file mode 100644 index 000000000000..9386d6bdf065 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfig.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetWorkflowConfig_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; + +public class SyncGetWorkflowConfig { + + public static void main(String[] args) throws Exception { + syncGetWorkflowConfig(); + } + + public static void syncGetWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetWorkflowConfigRequest request = + GetWorkflowConfigRequest.newBuilder() + .setName( + WorkflowConfigName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString()) + .build(); + WorkflowConfig response = dataformClient.getWorkflowConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfigString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfigString.java new file mode 100644 index 000000000000..7feadd2fbf22 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfigString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetWorkflowConfig_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; + +public class SyncGetWorkflowConfigString { + + public static void main(String[] args) throws Exception { + syncGetWorkflowConfigString(); + } + + public static void syncGetWorkflowConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + .toString(); + WorkflowConfig response = dataformClient.getWorkflowConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfigWorkflowconfigname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfigWorkflowconfigname.java new file mode 100644 index 000000000000..bc7b6c4c2e3e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getworkflowconfig/SyncGetWorkflowConfigWorkflowconfigname.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetWorkflowConfig_Workflowconfigname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.cloud.dataform.v1beta1.WorkflowConfigName; + +public class SyncGetWorkflowConfigWorkflowconfigname { + + public static void main(String[] args) throws Exception { + syncGetWorkflowConfigWorkflowconfigname(); + } + + public static void syncGetWorkflowConfigWorkflowconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + WorkflowConfigName name = + WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + WorkflowConfig response = dataformClient.getWorkflowConfig(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_Workflowconfigname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/AsyncListReleaseConfigs.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/AsyncListReleaseConfigs.java new file mode 100644 index 000000000000..1bdd341a3796 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/AsyncListReleaseConfigs.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncListReleaseConfigs { + + public static void main(String[] args) throws Exception { + asyncListReleaseConfigs(); + } + + public static void asyncListReleaseConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataformClient.listReleaseConfigsPagedCallable().futureCall(request); + // Do something. + for (ReleaseConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/AsyncListReleaseConfigsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/AsyncListReleaseConfigsPaged.java new file mode 100644 index 000000000000..e7c6b3ffcb9a --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/AsyncListReleaseConfigsPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListReleaseConfigs_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.common.base.Strings; + +public class AsyncListReleaseConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListReleaseConfigsPaged(); + } + + public static void asyncListReleaseConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListReleaseConfigsResponse response = + dataformClient.listReleaseConfigsCallable().call(request); + for (ReleaseConfig element : response.getReleaseConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigs.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigs.java new file mode 100644 index 000000000000..ffac6a5ae096 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigs.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListReleaseConfigs_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncListReleaseConfigs { + + public static void main(String[] args) throws Exception { + syncListReleaseConfigs(); + } + + public static void syncListReleaseConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigsRepositoryname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigsRepositoryname.java new file mode 100644 index 000000000000..21ed32c29f5c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigsRepositoryname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListReleaseConfigs_Repositoryname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncListReleaseConfigsRepositoryname { + + public static void main(String[] args) throws Exception { + syncListReleaseConfigsRepositoryname(); + } + + public static void syncListReleaseConfigsRepositoryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_Repositoryname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigsString.java new file mode 100644 index 000000000000..3bf27dfdbac5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listreleaseconfigs/SyncListReleaseConfigsString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListReleaseConfigs_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncListReleaseConfigsString { + + public static void main(String[] args) throws Exception { + syncListReleaseConfigsString(); + } + + public static void syncListReleaseConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/AsyncListWorkflowConfigs.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/AsyncListWorkflowConfigs.java new file mode 100644 index 000000000000..e8536ade5fc9 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/AsyncListWorkflowConfigs.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class AsyncListWorkflowConfigs { + + public static void main(String[] args) throws Exception { + asyncListWorkflowConfigs(); + } + + public static void asyncListWorkflowConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataformClient.listWorkflowConfigsPagedCallable().futureCall(request); + // Do something. + for (WorkflowConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/AsyncListWorkflowConfigsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/AsyncListWorkflowConfigsPaged.java new file mode 100644 index 000000000000..8b4353a46b6f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/AsyncListWorkflowConfigsPaged.java @@ -0,0 +1,62 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.common.base.Strings; + +public class AsyncListWorkflowConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkflowConfigsPaged(); + } + + public static void asyncListWorkflowConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListWorkflowConfigsResponse response = + dataformClient.listWorkflowConfigsCallable().call(request); + for (WorkflowConfig element : response.getWorkflowConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigs.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigs.java new file mode 100644 index 000000000000..504ad146cea0 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigs.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class SyncListWorkflowConfigs { + + public static void main(String[] args) throws Exception { + syncListWorkflowConfigs(); + } + + public static void syncListWorkflowConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigsRepositoryname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigsRepositoryname.java new file mode 100644 index 000000000000..a3ae2b7fd815 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigsRepositoryname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_Repositoryname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class SyncListWorkflowConfigsRepositoryname { + + public static void main(String[] args) throws Exception { + syncListWorkflowConfigsRepositoryname(); + } + + public static void syncListWorkflowConfigsRepositoryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_Repositoryname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigsString.java new file mode 100644 index 000000000000..d03da76f783b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowconfigs/SyncListWorkflowConfigsString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; + +public class SyncListWorkflowConfigsString { + + public static void main(String[] args) throws Exception { + syncListWorkflowConfigsString(); + } + + public static void syncListWorkflowConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocations.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocations.java index a2946dd0f93a..c1151122823c 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocations.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocations.java @@ -41,6 +41,8 @@ public static void asyncListWorkflowInvocations() throws Exception { .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") .build(); ApiFuture future = dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocationsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocationsPaged.java index 32340004954c..3d6a8212e902 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocationsPaged.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/AsyncListWorkflowInvocationsPaged.java @@ -42,6 +42,8 @@ public static void asyncListWorkflowInvocationsPaged() throws Exception { .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") .build(); while (true) { ListWorkflowInvocationsResponse response = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/SyncListWorkflowInvocations.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/SyncListWorkflowInvocations.java index 1d8a38f88cbf..6c0b51722fe2 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/SyncListWorkflowInvocations.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/listworkflowinvocations/SyncListWorkflowInvocations.java @@ -40,6 +40,8 @@ public static void syncListWorkflowInvocations() throws Exception { .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") .build(); for (WorkflowInvocation element : dataformClient.listWorkflowInvocations(request).iterateAll()) { diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java index d9098104347d..18c59845067f 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java @@ -19,8 +19,8 @@ // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; -import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.WorkspaceName; public class AsyncQueryDirectoryContents { @@ -45,10 +45,10 @@ public static void asyncQueryDirectoryContents() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); - ApiFuture future = + ApiFuture future = dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); // Do something. - for (QueryDirectoryContentsResponse.DirectoryEntry element : future.get().iterateAll()) { + for (DirectoryEntry element : future.get().iterateAll()) { // doThingsWith(element); } } diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java index fe1507143581..6270e886375e 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java @@ -18,6 +18,7 @@ // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_Paged_async] import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.WorkspaceName; @@ -48,8 +49,7 @@ public static void asyncQueryDirectoryContentsPaged() throws Exception { while (true) { QueryDirectoryContentsResponse response = dataformClient.queryDirectoryContentsCallable().call(request); - for (QueryDirectoryContentsResponse.DirectoryEntry element : - response.getDirectoryEntriesList()) { + for (DirectoryEntry element : response.getDirectoryEntriesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java index 30586375ee2c..b6409cc3e7e3 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java @@ -18,8 +18,8 @@ // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_sync] import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; -import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; import com.google.cloud.dataform.v1beta1.WorkspaceName; public class SyncQueryDirectoryContents { @@ -44,8 +44,7 @@ public static void syncQueryDirectoryContents() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); - for (QueryDirectoryContentsResponse.DirectoryEntry element : - dataformClient.queryDirectoryContents(request).iterateAll()) { + for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { // doThingsWith(element); } } diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/AsyncQueryRepositoryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/AsyncQueryRepositoryDirectoryContents.java new file mode 100644 index 000000000000..f84d4d1d0a6d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/AsyncQueryRepositoryDirectoryContents.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncQueryRepositoryDirectoryContents { + + public static void main(String[] args) throws Exception { + asyncQueryRepositoryDirectoryContents(); + } + + public static void asyncQueryRepositoryDirectoryContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataformClient.queryRepositoryDirectoryContentsPagedCallable().futureCall(request); + // Do something. + for (DirectoryEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/AsyncQueryRepositoryDirectoryContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/AsyncQueryRepositoryDirectoryContentsPaged.java new file mode 100644 index 000000000000..a031de347624 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/AsyncQueryRepositoryDirectoryContentsPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.common.base.Strings; + +public class AsyncQueryRepositoryDirectoryContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryRepositoryDirectoryContentsPaged(); + } + + public static void asyncQueryRepositoryDirectoryContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + QueryRepositoryDirectoryContentsResponse response = + dataformClient.queryRepositoryDirectoryContentsCallable().call(request); + for (DirectoryEntry element : response.getDirectoryEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/SyncQueryRepositoryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/SyncQueryRepositoryDirectoryContents.java new file mode 100644 index 000000000000..609506f86f02 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryrepositorydirectorycontents/SyncQueryRepositoryDirectoryContents.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryEntry; +import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncQueryRepositoryDirectoryContents { + + public static void main(String[] args) throws Exception { + syncQueryRepositoryDirectoryContents(); + } + + public static void syncQueryRepositoryDirectoryContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryRepositoryDirectoryContentsRequest request = + QueryRepositoryDirectoryContentsRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DirectoryEntry element : + dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/readrepositoryfile/AsyncReadRepositoryFile.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/readrepositoryfile/AsyncReadRepositoryFile.java new file mode 100644 index 000000000000..1b0f394db65c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/readrepositoryfile/AsyncReadRepositoryFile.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncReadRepositoryFile { + + public static void main(String[] args) throws Exception { + asyncReadRepositoryFile(); + } + + public static void asyncReadRepositoryFile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ReadRepositoryFileRequest request = + ReadRepositoryFileRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .build(); + ApiFuture future = + dataformClient.readRepositoryFileCallable().futureCall(request); + // Do something. + ReadRepositoryFileResponse response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/readrepositoryfile/SyncReadRepositoryFile.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/readrepositoryfile/SyncReadRepositoryFile.java new file mode 100644 index 000000000000..9350864466dc --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/readrepositoryfile/SyncReadRepositoryFile.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_ReadRepositoryFile_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest; +import com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncReadRepositoryFile { + + public static void main(String[] args) throws Exception { + syncReadRepositoryFile(); + } + + public static void syncReadRepositoryFile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ReadRepositoryFileRequest request = + ReadRepositoryFileRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setCommitSha("commitSha-1491174411") + .setPath("path3433509") + .build(); + ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..afed039999a8 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_SetIamPolicy_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..e90c958fd476 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_SetIamPolicy_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = dataformClient.setIamPolicy(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_SetIamPolicy_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..3d80809a6e2d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + dataformClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_TestIamPermissions_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..897e9e3ecf10 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_TestIamPermissions_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = dataformClient.testIamPermissions(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_TestIamPermissions_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/AsyncUpdateReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/AsyncUpdateReleaseConfig.java new file mode 100644 index 000000000000..a4847c021be3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/AsyncUpdateReleaseConfig.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateReleaseConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateReleaseConfig(); + } + + public static void asyncUpdateReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateReleaseConfigRequest request = + UpdateReleaseConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setReleaseConfig(ReleaseConfig.newBuilder().build()) + .build(); + ApiFuture future = + dataformClient.updateReleaseConfigCallable().futureCall(request); + // Do something. + ReleaseConfig response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/SyncUpdateReleaseConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/SyncUpdateReleaseConfig.java new file mode 100644 index 000000000000..1f6a3c0c4310 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/SyncUpdateReleaseConfig.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReleaseConfig { + + public static void main(String[] args) throws Exception { + syncUpdateReleaseConfig(); + } + + public static void syncUpdateReleaseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateReleaseConfigRequest request = + UpdateReleaseConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setReleaseConfig(ReleaseConfig.newBuilder().build()) + .build(); + ReleaseConfig response = dataformClient.updateReleaseConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/SyncUpdateReleaseConfigReleaseconfigFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/SyncUpdateReleaseConfigReleaseconfigFieldmask.java new file mode 100644 index 000000000000..4acbd19aa6d1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatereleaseconfig/SyncUpdateReleaseConfigReleaseconfigFieldmask.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_ReleaseconfigFieldmask_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.ReleaseConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReleaseConfigReleaseconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateReleaseConfigReleaseconfigFieldmask(); + } + + public static void syncUpdateReleaseConfigReleaseconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_ReleaseconfigFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/AsyncUpdateWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/AsyncUpdateWorkflowConfig.java new file mode 100644 index 000000000000..106d6c023e5e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/AsyncUpdateWorkflowConfig.java @@ -0,0 +1,51 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkflowConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkflowConfig(); + } + + public static void asyncUpdateWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateWorkflowConfigRequest request = + UpdateWorkflowConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + .build(); + ApiFuture future = + dataformClient.updateWorkflowConfigCallable().futureCall(request); + // Do something. + WorkflowConfig response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/SyncUpdateWorkflowConfig.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/SyncUpdateWorkflowConfig.java new file mode 100644 index 000000000000..4b3d0c8c266d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/SyncUpdateWorkflowConfig.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkflowConfig { + + public static void main(String[] args) throws Exception { + syncUpdateWorkflowConfig(); + } + + public static void syncUpdateWorkflowConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateWorkflowConfigRequest request = + UpdateWorkflowConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + .build(); + WorkflowConfig response = dataformClient.updateWorkflowConfig(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/SyncUpdateWorkflowConfigWorkflowconfigFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/SyncUpdateWorkflowConfigWorkflowconfigFieldmask.java new file mode 100644 index 000000000000..1615a8337834 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateworkflowconfig/SyncUpdateWorkflowConfigWorkflowconfigFieldmask.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_WorkflowconfigFieldmask_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.WorkflowConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkflowConfigWorkflowconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWorkflowConfigWorkflowconfigFieldmask(); + } + + public static void syncUpdateWorkflowConfigWorkflowconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_WorkflowconfigFieldmask_sync]