diff --git a/generation_config.yaml b/generation_config.yaml index bd22d538875c..0e21c5b072ab 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -681,7 +681,6 @@ libraries: product_documentation: https://cloud.google.com/dataform/docs api_description: Help analytics teams manage data inside BigQuery using SQL. GAPICs: - - proto_path: google/cloud/dataform/v1alpha2 - proto_path: google/cloud/dataform/v1beta1 - api_shortname: datalabeling diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index 471d6cfb0c3a..80c1d4a49da3 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -29,21 +29,11 @@ google-cloud-dataform 0.59.0-SNAPSHOT - - com.google.api.grpc - grpc-google-cloud-dataform-v1alpha2 - 0.59.0-SNAPSHOT - com.google.api.grpc grpc-google-cloud-dataform-v1beta1 0.59.0-SNAPSHOT - - com.google.api.grpc - proto-google-cloud-dataform-v1alpha2 - 0.59.0-SNAPSHOT - com.google.api.grpc proto-google-cloud-dataform-v1beta1 diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index 159546795c17..34493d4842da 100644 --- a/java-dataform/google-cloud-dataform/pom.xml +++ b/java-dataform/google-cloud-dataform/pom.xml @@ -45,10 +45,6 @@ com.google.api.grpc proto-google-cloud-dataform-v1beta1 - - com.google.api.grpc - proto-google-cloud-dataform-v1alpha2 - com.google.guava guava @@ -92,11 +88,6 @@ test - - com.google.api.grpc - grpc-google-cloud-dataform-v1alpha2 - test - com.google.api diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java deleted file mode 100644 index 0a0fb998d3b3..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java +++ /dev/null @@ -1,5447 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataform.v1alpha2.stub.DataformStub; -import com.google.cloud.dataform.v1alpha2.stub.DataformStubSettings; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -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; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Dataform is a service to develop, create, document, test, and update curated - * tables in BigQuery. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@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 name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
- *   Repository response = dataformClient.getRepository(name);
- * }
- * }
- * - *

Note: close() needs to be called on the DataformClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Methods
MethodDescriptionMethod Variants

ListRepositories

Lists Repositories in a given project and location.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listRepositories(ListRepositoriesRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listRepositories(LocationName parent) - *

  • listRepositories(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listRepositoriesPagedCallable() - *

  • listRepositoriesCallable() - *

- *

GetRepository

Fetches a single Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getRepository(GetRepositoryRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getRepository(RepositoryName name) - *

  • getRepository(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getRepositoryCallable() - *

- *

CreateRepository

Creates a new Repository in a given project and location.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createRepository(CreateRepositoryRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createRepository(LocationName parent, Repository repository, String repositoryId) - *

  • createRepository(String parent, Repository repository, String repositoryId) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createRepositoryCallable() - *

- *

UpdateRepository

Updates a single Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateRepository(UpdateRepositoryRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • updateRepository(Repository repository, FieldMask updateMask) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateRepositoryCallable() - *

- *

DeleteRepository

Deletes a single Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteRepository(DeleteRepositoryRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteRepository(RepositoryName name) - *

  • deleteRepository(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteRepositoryCallable() - *

- *

FetchRemoteBranches

Fetches a Repository's remote branches.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • fetchRemoteBranches(FetchRemoteBranchesRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • fetchRemoteBranchesCallable() - *

- *

ListWorkspaces

Lists Workspaces in a given Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listWorkspaces(ListWorkspacesRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listWorkspaces(RepositoryName parent) - *

  • listWorkspaces(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listWorkspacesPagedCallable() - *

  • listWorkspacesCallable() - *

- *

GetWorkspace

Fetches a single Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getWorkspace(GetWorkspaceRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getWorkspace(WorkspaceName name) - *

  • getWorkspace(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getWorkspaceCallable() - *

- *

CreateWorkspace

Creates a new Workspace in a given Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createWorkspace(CreateWorkspaceRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createWorkspace(RepositoryName parent, Workspace workspace, String workspaceId) - *

  • createWorkspace(String parent, Workspace workspace, String workspaceId) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createWorkspaceCallable() - *

- *

DeleteWorkspace

Deletes a single Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteWorkspace(DeleteWorkspaceRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteWorkspace(WorkspaceName name) - *

  • deleteWorkspace(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteWorkspaceCallable() - *

- *

InstallNpmPackages

Installs dependency NPM packages (inside a Workspace).

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • installNpmPackages(InstallNpmPackagesRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • installNpmPackagesCallable() - *

- *

PullGitCommits

Pulls Git commits from the Repository's remote into a Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • pullGitCommits(PullGitCommitsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • pullGitCommitsCallable() - *

- *

PushGitCommits

Pushes Git commits from a Workspace to the Repository's remote.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • pushGitCommits(PushGitCommitsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • pushGitCommitsCallable() - *

- *

FetchFileGitStatuses

Fetches Git statuses for the files in a Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • fetchFileGitStatuses(FetchFileGitStatusesRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • fetchFileGitStatusesCallable() - *

- *

FetchGitAheadBehind

Fetches Git ahead/behind against a remote branch.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • fetchGitAheadBehind(FetchGitAheadBehindRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • fetchGitAheadBehindCallable() - *

- *

CommitWorkspaceChanges

Applies a Git commit for uncommitted files in a Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • commitWorkspaceChanges(CommitWorkspaceChangesRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • commitWorkspaceChangesCallable() - *

- *

ResetWorkspaceChanges

Performs a Git reset for uncommitted files in a Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • resetWorkspaceChanges(ResetWorkspaceChangesRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • resetWorkspaceChangesCallable() - *

- *

FetchFileDiff

Fetches Git diff for an uncommitted file in a Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • fetchFileDiff(FetchFileDiffRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • fetchFileDiffCallable() - *

- *

QueryDirectoryContents

Returns the contents of a given Workspace directory.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • queryDirectoryContents(QueryDirectoryContentsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • queryDirectoryContentsPagedCallable() - *

  • queryDirectoryContentsCallable() - *

- *

MakeDirectory

Creates a directory inside a Workspace.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • makeDirectory(MakeDirectoryRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • makeDirectoryCallable() - *

- *

RemoveDirectory

Deletes a directory (inside a Workspace) and all of its contents.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • removeDirectory(RemoveDirectoryRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • removeDirectoryCallable() - *

- *

MoveDirectory

Moves a directory (inside a Workspace), and all of its contents, to a new location.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • moveDirectory(MoveDirectoryRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • moveDirectoryCallable() - *

- *

ReadFile

Returns the contents of a file (inside a Workspace).

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • readFile(ReadFileRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • readFileCallable() - *

- *

RemoveFile

Deletes a file (inside a Workspace).

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • removeFile(RemoveFileRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • removeFileCallable() - *

- *

MoveFile

Moves a file (inside a Workspace) to a new location.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • moveFile(MoveFileRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • moveFileCallable() - *

- *

WriteFile

Writes to a file (inside a Workspace).

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • writeFile(WriteFileRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • writeFileCallable() - *

- *

ListCompilationResults

Lists CompilationResults in a given Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listCompilationResults(ListCompilationResultsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listCompilationResults(RepositoryName parent) - *

  • listCompilationResults(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listCompilationResultsPagedCallable() - *

  • listCompilationResultsCallable() - *

- *

GetCompilationResult

Fetches a single CompilationResult.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getCompilationResult(GetCompilationResultRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getCompilationResult(CompilationResultName name) - *

  • getCompilationResult(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getCompilationResultCallable() - *

- *

CreateCompilationResult

Creates a new CompilationResult in a given project and location.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createCompilationResult(CreateCompilationResultRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createCompilationResult(RepositoryName parent, CompilationResult compilationResult) - *

  • createCompilationResult(String parent, CompilationResult compilationResult) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createCompilationResultCallable() - *

- *

QueryCompilationResultActions

Returns CompilationResultActions in a given CompilationResult.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • queryCompilationResultActions(QueryCompilationResultActionsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • queryCompilationResultActionsPagedCallable() - *

  • queryCompilationResultActionsCallable() - *

- *

ListWorkflowInvocations

Lists WorkflowInvocations in a given Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listWorkflowInvocations(ListWorkflowInvocationsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listWorkflowInvocations(RepositoryName parent) - *

  • listWorkflowInvocations(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listWorkflowInvocationsPagedCallable() - *

  • listWorkflowInvocationsCallable() - *

- *

GetWorkflowInvocation

Fetches a single WorkflowInvocation.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getWorkflowInvocation(GetWorkflowInvocationRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getWorkflowInvocation(WorkflowInvocationName name) - *

  • getWorkflowInvocation(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getWorkflowInvocationCallable() - *

- *

CreateWorkflowInvocation

Creates a new WorkflowInvocation in a given Repository.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createWorkflowInvocation(CreateWorkflowInvocationRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createWorkflowInvocation(RepositoryName parent, WorkflowInvocation workflowInvocation) - *

  • createWorkflowInvocation(String parent, WorkflowInvocation workflowInvocation) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createWorkflowInvocationCallable() - *

- *

DeleteWorkflowInvocation

Deletes a single WorkflowInvocation.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteWorkflowInvocation(DeleteWorkflowInvocationRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteWorkflowInvocation(WorkflowInvocationName name) - *

  • deleteWorkflowInvocation(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteWorkflowInvocationCallable() - *

- *

CancelWorkflowInvocation

Requests cancellation of a running WorkflowInvocation.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • cancelWorkflowInvocation(CancelWorkflowInvocationRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • cancelWorkflowInvocationCallable() - *

- *

QueryWorkflowInvocationActions

Returns WorkflowInvocationActions in a given WorkflowInvocation.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • queryWorkflowInvocationActionsPagedCallable() - *

  • queryWorkflowInvocationActionsCallable() - *

- *

ListLocations

Lists information about the supported locations for this service.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listLocations(ListLocationsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listLocationsPagedCallable() - *

  • listLocationsCallable() - *

- *

GetLocation

Gets information about a location.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getLocation(GetLocationRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getLocationCallable() - *

- *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. - *

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

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • setIamPolicy(SetIamPolicyRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • setIamPolicyCallable() - *

- *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getIamPolicy(GetIamPolicyRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getIamPolicyCallable() - *

- *

TestIamPermissions

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.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • testIamPermissions(TestIamPermissionsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • testIamPermissionsCallable() - *

- *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of DataformSettings to create(). - * For example: - * - *

To customize credentials: - * - *

{@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
- * DataformSettings dataformSettings =
- *     DataformSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * DataformClient dataformClient = DataformClient.create(dataformSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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
- * DataformSettings dataformSettings =
- *     DataformSettings.newBuilder().setEndpoint(myEndpoint).build();
- * DataformClient dataformClient = DataformClient.create(dataformSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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
- * DataformSettings dataformSettings = DataformSettings.newHttpJsonBuilder().build();
- * DataformClient dataformClient = DataformClient.create(dataformSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataformClient implements BackgroundResource { - private final DataformSettings settings; - private final DataformStub stub; - - /** Constructs an instance of DataformClient with default settings. */ - public static final DataformClient create() throws IOException { - return create(DataformSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DataformClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final DataformClient create(DataformSettings settings) throws IOException { - return new DataformClient(settings); - } - - /** - * Constructs an instance of DataformClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(DataformSettings). - */ - public static final DataformClient create(DataformStub stub) { - return new DataformClient(stub); - } - - /** - * Constructs an instance of DataformClient, using the given settings. This is protected so that - * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected DataformClient(DataformSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DataformStubSettings) settings.getStubSettings()).createStub(); - } - - protected DataformClient(DataformStub stub) { - this.settings = null; - this.stub = stub; - } - - public final DataformSettings getSettings() { - return settings; - } - - public DataformStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories 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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Repository element : dataformClient.listRepositories(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { - ListRepositoriesRequest request = - ListRepositoriesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listRepositories(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories 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 = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Repository element : dataformClient.listRepositories(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRepositoriesPagedResponse listRepositories(String parent) { - ListRepositoriesRequest request = - ListRepositoriesRequest.newBuilder().setParent(parent).build(); - return listRepositories(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories 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()) {
-   *   ListRepositoriesRequest request =
-   *       ListRepositoriesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Repository element : dataformClient.listRepositories(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 ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequest request) { - return listRepositoriesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories 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()) {
-   *   ListRepositoriesRequest request =
-   *       ListRepositoriesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.listRepositoriesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Repository element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listRepositoriesPagedCallable() { - return stub.listRepositoriesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories 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()) {
-   *   ListRepositoriesRequest request =
-   *       ListRepositoriesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListRepositoriesResponse response = dataformClient.listRepositoriesCallable().call(request);
-   *     for (Repository element : response.getRepositoriesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listRepositoriesCallable() { - return stub.listRepositoriesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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 name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
-   *   Repository response = dataformClient.getRepository(name);
-   * }
-   * }
- * - * @param name Required. The repository's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Repository getRepository(RepositoryName name) { - GetRepositoryRequest request = - GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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 name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
-   *   Repository response = dataformClient.getRepository(name);
-   * }
-   * }
- * - * @param name Required. The repository's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Repository getRepository(String name) { - GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name).build(); - return getRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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()) {
-   *   GetRepositoryRequest request =
-   *       GetRepositoryRequest.newBuilder()
-   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .build();
-   *   Repository response = dataformClient.getRepository(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 Repository getRepository(GetRepositoryRequest request) { - return getRepositoryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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()) {
-   *   GetRepositoryRequest request =
-   *       GetRepositoryRequest.newBuilder()
-   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .build();
-   *   ApiFuture future = dataformClient.getRepositoryCallable().futureCall(request);
-   *   // Do something.
-   *   Repository response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getRepositoryCallable() { - return stub.getRepositoryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Repository 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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Repository repository = Repository.newBuilder().build();
-   *   String repositoryId = "repositoryId2113747461";
-   *   Repository response = dataformClient.createRepository(parent, repository, repositoryId);
-   * }
-   * }
- * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/*/locations/*`. - * @param repository Required. The repository to create. - * @param repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Repository createRepository( - LocationName parent, Repository repository, String repositoryId) { - CreateRepositoryRequest request = - CreateRepositoryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRepository(repository) - .setRepositoryId(repositoryId) - .build(); - return createRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Repository 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 = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Repository repository = Repository.newBuilder().build();
-   *   String repositoryId = "repositoryId2113747461";
-   *   Repository response = dataformClient.createRepository(parent, repository, repositoryId);
-   * }
-   * }
- * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/*/locations/*`. - * @param repository Required. The repository to create. - * @param repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Repository createRepository( - String parent, Repository repository, String repositoryId) { - CreateRepositoryRequest request = - CreateRepositoryRequest.newBuilder() - .setParent(parent) - .setRepository(repository) - .setRepositoryId(repositoryId) - .build(); - return createRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Repository 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()) {
-   *   CreateRepositoryRequest request =
-   *       CreateRepositoryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRepository(Repository.newBuilder().build())
-   *           .setRepositoryId("repositoryId2113747461")
-   *           .build();
-   *   Repository response = dataformClient.createRepository(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 Repository createRepository(CreateRepositoryRequest request) { - return createRepositoryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Repository 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()) {
-   *   CreateRepositoryRequest request =
-   *       CreateRepositoryRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setRepository(Repository.newBuilder().build())
-   *           .setRepositoryId("repositoryId2113747461")
-   *           .build();
-   *   ApiFuture future = dataformClient.createRepositoryCallable().futureCall(request);
-   *   // Do something.
-   *   Repository response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createRepositoryCallable() { - return stub.createRepositoryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a single 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()) {
-   *   Repository repository = Repository.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Repository response = dataformClient.updateRepository(repository, updateMask);
-   * }
-   * }
- * - * @param repository Required. The repository to update. - * @param updateMask Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Repository updateRepository(Repository repository, FieldMask updateMask) { - UpdateRepositoryRequest request = - UpdateRepositoryRequest.newBuilder() - .setRepository(repository) - .setUpdateMask(updateMask) - .build(); - return updateRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a single 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()) {
-   *   UpdateRepositoryRequest request =
-   *       UpdateRepositoryRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRepository(Repository.newBuilder().build())
-   *           .build();
-   *   Repository response = dataformClient.updateRepository(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 Repository updateRepository(UpdateRepositoryRequest request) { - return updateRepositoryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a single 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()) {
-   *   UpdateRepositoryRequest request =
-   *       UpdateRepositoryRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRepository(Repository.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataformClient.updateRepositoryCallable().futureCall(request);
-   *   // Do something.
-   *   Repository response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateRepositoryCallable() { - return stub.updateRepositoryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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 name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
-   *   dataformClient.deleteRepository(name);
-   * }
-   * }
- * - * @param name Required. The repository's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteRepository(RepositoryName name) { - DeleteRepositoryRequest request = - DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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 name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
-   *   dataformClient.deleteRepository(name);
-   * }
-   * }
- * - * @param name Required. The repository's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteRepository(String name) { - DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name).build(); - deleteRepository(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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()) {
-   *   DeleteRepositoryRequest request =
-   *       DeleteRepositoryRequest.newBuilder()
-   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataformClient.deleteRepository(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 deleteRepository(DeleteRepositoryRequest request) { - deleteRepositoryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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()) {
-   *   DeleteRepositoryRequest request =
-   *       DeleteRepositoryRequest.newBuilder()
-   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future = dataformClient.deleteRepositoryCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteRepositoryCallable() { - return stub.deleteRepositoryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a Repository's remote branches. - * - *

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()) {
-   *   FetchRemoteBranchesRequest request =
-   *       FetchRemoteBranchesRequest.newBuilder()
-   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .build();
-   *   FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(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); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a Repository's remote branches. - * - *

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()) {
-   *   FetchRemoteBranchesRequest request =
-   *       FetchRemoteBranchesRequest.newBuilder()
-   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.fetchRemoteBranchesCallable().futureCall(request);
-   *   // Do something.
-   *   FetchRemoteBranchesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - fetchRemoteBranchesCallable() { - return stub.fetchRemoteBranchesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Workspaces 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 (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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. - /** - * Lists Workspaces 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 (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Workspaces 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()) {
-   *   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 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); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Workspaces 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()) {
-   *   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.listWorkspacesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Workspace element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkspacesPagedCallable() { - return stub.listWorkspacesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Workspaces 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()) {
-   *   ListWorkspacesRequest request =
-   *       ListWorkspacesRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   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 - listWorkspacesCallable() { - return stub.listWorkspacesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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()) {
-   *   WorkspaceName name =
-   *       WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]");
-   *   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 Workspace getWorkspace(WorkspaceName name) { - GetWorkspaceRequest request = - GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getWorkspace(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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()) {
-   *   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 Workspace getWorkspace(String name) { - GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); - return getWorkspace(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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()) {
-   *   GetWorkspaceRequest request =
-   *       GetWorkspaceRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   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 Workspace getWorkspace(GetWorkspaceRequest request) { - return getWorkspaceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single 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()) {
-   *   GetWorkspaceRequest request =
-   *       GetWorkspaceRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request);
-   *   // Do something.
-   *   Workspace response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getWorkspaceCallable() { - return stub.getWorkspaceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Workspace 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]");
-   *   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 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. - /** - * Creates a new Workspace 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();
-   *   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 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. - /** - * Creates a new Workspace 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()) {
-   *   CreateWorkspaceRequest request =
-   *       CreateWorkspaceRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setWorkspace(Workspace.newBuilder().build())
-   *           .setWorkspaceId("workspaceId466560144")
-   *           .build();
-   *   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 Workspace createWorkspace(CreateWorkspaceRequest request) { - return createWorkspaceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Workspace 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()) {
-   *   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();
-   * }
-   * }
- */ - public final UnaryCallable createWorkspaceCallable() { - return stub.createWorkspaceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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()) {
-   *   WorkspaceName name =
-   *       WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]");
-   *   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 void deleteWorkspace(WorkspaceName name) { - DeleteWorkspaceRequest request = - DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteWorkspace(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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()) {
-   *   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 void deleteWorkspace(String name) { - DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); - deleteWorkspace(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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()) {
-   *   DeleteWorkspaceRequest request =
-   *       DeleteWorkspaceRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   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 deleteWorkspace(DeleteWorkspaceRequest request) { - deleteWorkspaceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single 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()) {
-   *   DeleteWorkspaceRequest request =
-   *       DeleteWorkspaceRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteWorkspaceCallable() { - return stub.deleteWorkspaceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Installs dependency NPM packages (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()) {
-   *   InstallNpmPackagesRequest request =
-   *       InstallNpmPackagesRequest.newBuilder()
-   *           .setWorkspace(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   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 InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { - return installNpmPackagesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Installs dependency NPM packages (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()) {
-   *   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();
-   * }
-   * }
- */ - public final UnaryCallable - installNpmPackagesCallable() { - return stub.installNpmPackagesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pulls Git commits from the Repository's remote into 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()) {
-   *   PullGitCommitsRequest request =
-   *       PullGitCommitsRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setRemoteBranch("remoteBranch-533119608")
-   *           .setAuthor(CommitAuthor.newBuilder().build())
-   *           .build();
-   *   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 void pullGitCommits(PullGitCommitsRequest request) { - pullGitCommitsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pulls Git commits from the Repository's remote into 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()) {
-   *   PullGitCommitsRequest request =
-   *       PullGitCommitsRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setRemoteBranch("remoteBranch-533119608")
-   *           .setAuthor(CommitAuthor.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataformClient.pullGitCommitsCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable pullGitCommitsCallable() { - return stub.pullGitCommitsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pushes Git commits from a Workspace to the Repository's remote. - * - *

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()) {
-   *   PushGitCommitsRequest request =
-   *       PushGitCommitsRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setRemoteBranch("remoteBranch-533119608")
-   *           .build();
-   *   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 void pushGitCommits(PushGitCommitsRequest request) { - pushGitCommitsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pushes Git commits from a Workspace to the Repository's remote. - * - *

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()) {
-   *   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();
-   * }
-   * }
- */ - public final UnaryCallable pushGitCommitsCallable() { - return stub.pushGitCommitsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches Git statuses for the files in 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()) {
-   *   FetchFileGitStatusesRequest request =
-   *       FetchFileGitStatusesRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(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); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches Git statuses for the files in 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()) {
-   *   FetchFileGitStatusesRequest request =
-   *       FetchFileGitStatusesRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .build();
-   *   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 FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { - return fetchGitAheadBehindCallable().call(request); - } - - // 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();
-   *   ApiFuture future =
-   *       dataformClient.fetchGitAheadBehindCallable().futureCall(request);
-   *   // Do something.
-   *   FetchGitAheadBehindResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - fetchGitAheadBehindCallable() { - return stub.fetchGitAheadBehindCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Applies a Git commit for uncommitted files in 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()) {
-   *   CommitWorkspaceChangesRequest request =
-   *       CommitWorkspaceChangesRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setAuthor(CommitAuthor.newBuilder().build())
-   *           .setCommitMessage("commitMessage2039804624")
-   *           .addAllPaths(new ArrayList())
-   *           .build();
-   *   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 commitWorkspaceChanges(CommitWorkspaceChangesRequest request) { - commitWorkspaceChangesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Applies a Git commit for uncommitted files in 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()) {
-   *   CommitWorkspaceChangesRequest request =
-   *       CommitWorkspaceChangesRequest.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);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - commitWorkspaceChangesCallable() { - return stub.commitWorkspaceChangesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Performs a Git reset for uncommitted files in 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()) {
-   *   ResetWorkspaceChangesRequest request =
-   *       ResetWorkspaceChangesRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .addAllPaths(new ArrayList())
-   *           .setClean(true)
-   *           .build();
-   *   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 void resetWorkspaceChanges(ResetWorkspaceChangesRequest request) { - resetWorkspaceChangesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Performs a Git reset for uncommitted files in 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()) {
-   *   ResetWorkspaceChangesRequest request =
-   *       ResetWorkspaceChangesRequest.newBuilder()
-   *           .setName(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .addAllPaths(new ArrayList())
-   *           .setClean(true)
-   *           .build();
-   *   ApiFuture future = dataformClient.resetWorkspaceChangesCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable resetWorkspaceChangesCallable() { - return stub.resetWorkspaceChangesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches Git diff for an uncommitted file in 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()) {
-   *   FetchFileDiffRequest request =
-   *       FetchFileDiffRequest.newBuilder()
-   *           .setWorkspace(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setPath("path3433509")
-   *           .build();
-   *   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 FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { - return fetchFileDiffCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches Git diff for an uncommitted file in 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()) {
-   *   FetchFileDiffRequest request =
-   *       FetchFileDiffRequest.newBuilder()
-   *           .setWorkspace(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setPath("path3433509")
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.fetchFileDiffCallable().futureCall(request);
-   *   // Do something.
-   *   FetchFileDiffResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable fetchFileDiffCallable() { - return stub.fetchFileDiffCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the contents of a given Workspace directory. - * - *

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()) {
-   *   QueryDirectoryContentsRequest request =
-   *       QueryDirectoryContentsRequest.newBuilder()
-   *           .setWorkspace(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setPath("path3433509")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (QueryDirectoryContentsResponse.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 QueryDirectoryContentsPagedResponse queryDirectoryContents( - QueryDirectoryContentsRequest request) { - return queryDirectoryContentsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the contents of a given Workspace directory. - * - *

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()) {
-   *   QueryDirectoryContentsRequest request =
-   *       QueryDirectoryContentsRequest.newBuilder()
-   *           .setWorkspace(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setPath("path3433509")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.queryDirectoryContentsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (QueryDirectoryContentsResponse.DirectoryEntry element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - queryDirectoryContentsPagedCallable() { - return stub.queryDirectoryContentsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the contents of a given Workspace directory. - * - *

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()) {
-   *   QueryDirectoryContentsRequest request =
-   *       QueryDirectoryContentsRequest.newBuilder()
-   *           .setWorkspace(
-   *               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;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - queryDirectoryContentsCallable() { - return stub.queryDirectoryContentsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a directory 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()) {
-   *   MakeDirectoryRequest request =
-   *       MakeDirectoryRequest.newBuilder()
-   *           .setWorkspace(
-   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
-   *                   .toString())
-   *           .setPath("path3433509")
-   *           .build();
-   *   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 MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { - return makeDirectoryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a directory 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()) {
-   *   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")
-   *           .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 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();
-   *   ApiFuture future =
-   *       dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (CompilationResultAction element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - return stub.queryCompilationResultActionsPagedCallable(); - } - - // 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();
-   *   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< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsCallable() { - return stub.queryCompilationResultActionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations 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 (WorkflowInvocation element :
-   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { - ListWorkflowInvocationsRequest request = - ListWorkflowInvocationsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowInvocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations 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 (WorkflowInvocation element :
-   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String parent) { - ListWorkflowInvocationsRequest request = - ListWorkflowInvocationsRequest.newBuilder().setParent(parent).build(); - return listWorkflowInvocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations 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()) {
-   *   ListWorkflowInvocationsRequest request =
-   *       ListWorkflowInvocationsRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (WorkflowInvocation element :
-   *       dataformClient.listWorkflowInvocations(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 ListWorkflowInvocationsPagedResponse listWorkflowInvocations( - ListWorkflowInvocationsRequest request) { - return listWorkflowInvocationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations 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()) {
-   *   ListWorkflowInvocationsRequest request =
-   *       ListWorkflowInvocationsRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (WorkflowInvocation element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkflowInvocationsPagedCallable() { - return stub.listWorkflowInvocationsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations 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()) {
-   *   ListWorkflowInvocationsRequest request =
-   *       ListWorkflowInvocationsRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListWorkflowInvocationsResponse response =
-   *         dataformClient.listWorkflowInvocationsCallable().call(request);
-   *     for (WorkflowInvocation element : response.getWorkflowInvocationsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkflowInvocationsCallable() { - return stub.listWorkflowInvocationsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single WorkflowInvocation. - * - *

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()) {
-   *   WorkflowInvocationName name =
-   *       WorkflowInvocationName.of(
-   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]");
-   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(name);
-   * }
-   * }
- * - * @param name Required. The workflow invocation resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { - GetWorkflowInvocationRequest request = - GetWorkflowInvocationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowInvocation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single WorkflowInvocation. - * - *

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 =
-   *       WorkflowInvocationName.of(
-   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *           .toString();
-   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(name);
-   * }
-   * }
- * - * @param name Required. The workflow invocation resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowInvocation getWorkflowInvocation(String name) { - GetWorkflowInvocationRequest request = - GetWorkflowInvocationRequest.newBuilder().setName(name).build(); - return getWorkflowInvocation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single WorkflowInvocation. - * - *

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()) {
-   *   GetWorkflowInvocationRequest request =
-   *       GetWorkflowInvocationRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .build();
-   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(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 WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationRequest request) { - return getWorkflowInvocationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches a single WorkflowInvocation. - * - *

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()) {
-   *   GetWorkflowInvocationRequest request =
-   *       GetWorkflowInvocationRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.getWorkflowInvocationCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowInvocation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getWorkflowInvocationCallable() { - return stub.getWorkflowInvocationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new WorkflowInvocation 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]");
-   *   WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build();
-   *   WorkflowInvocation response =
-   *       dataformClient.createWorkflowInvocation(parent, workflowInvocation);
-   * }
-   * }
- * - * @param parent Required. The parent resource of the WorkflowInvocation type. - * @param workflowInvocation Required. The workflow invocation resource to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowInvocation createWorkflowInvocation( - RepositoryName parent, WorkflowInvocation workflowInvocation) { - CreateWorkflowInvocationRequest request = - CreateWorkflowInvocationRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkflowInvocation(workflowInvocation) - .build(); - return createWorkflowInvocation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new WorkflowInvocation 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();
-   *   WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build();
-   *   WorkflowInvocation response =
-   *       dataformClient.createWorkflowInvocation(parent, workflowInvocation);
-   * }
-   * }
- * - * @param parent Required. The parent resource of the WorkflowInvocation type. - * @param workflowInvocation Required. The workflow invocation resource to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowInvocation createWorkflowInvocation( - String parent, WorkflowInvocation workflowInvocation) { - CreateWorkflowInvocationRequest request = - CreateWorkflowInvocationRequest.newBuilder() - .setParent(parent) - .setWorkflowInvocation(workflowInvocation) - .build(); - return createWorkflowInvocation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new WorkflowInvocation 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()) {
-   *   CreateWorkflowInvocationRequest request =
-   *       CreateWorkflowInvocationRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setWorkflowInvocation(WorkflowInvocation.newBuilder().build())
-   *           .build();
-   *   WorkflowInvocation response = dataformClient.createWorkflowInvocation(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 WorkflowInvocation createWorkflowInvocation( - CreateWorkflowInvocationRequest request) { - return createWorkflowInvocationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new WorkflowInvocation 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()) {
-   *   CreateWorkflowInvocationRequest request =
-   *       CreateWorkflowInvocationRequest.newBuilder()
-   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setWorkflowInvocation(WorkflowInvocation.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.createWorkflowInvocationCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowInvocation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createWorkflowInvocationCallable() { - return stub.createWorkflowInvocationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single WorkflowInvocation. - * - *

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()) {
-   *   WorkflowInvocationName name =
-   *       WorkflowInvocationName.of(
-   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]");
-   *   dataformClient.deleteWorkflowInvocation(name);
-   * }
-   * }
- * - * @param name Required. The workflow invocation resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowInvocation(WorkflowInvocationName name) { - DeleteWorkflowInvocationRequest request = - DeleteWorkflowInvocationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWorkflowInvocation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single WorkflowInvocation. - * - *

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 =
-   *       WorkflowInvocationName.of(
-   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *           .toString();
-   *   dataformClient.deleteWorkflowInvocation(name);
-   * }
-   * }
- * - * @param name Required. The workflow invocation resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowInvocation(String name) { - DeleteWorkflowInvocationRequest request = - DeleteWorkflowInvocationRequest.newBuilder().setName(name).build(); - deleteWorkflowInvocation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single WorkflowInvocation. - * - *

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()) {
-   *   DeleteWorkflowInvocationRequest request =
-   *       DeleteWorkflowInvocationRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .build();
-   *   dataformClient.deleteWorkflowInvocation(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 deleteWorkflowInvocation(DeleteWorkflowInvocationRequest request) { - deleteWorkflowInvocationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single WorkflowInvocation. - * - *

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()) {
-   *   DeleteWorkflowInvocationRequest request =
-   *       DeleteWorkflowInvocationRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.deleteWorkflowInvocationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteWorkflowInvocationCallable() { - return stub.deleteWorkflowInvocationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Requests cancellation of a running WorkflowInvocation. - * - *

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()) {
-   *   CancelWorkflowInvocationRequest request =
-   *       CancelWorkflowInvocationRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .build();
-   *   dataformClient.cancelWorkflowInvocation(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 cancelWorkflowInvocation(CancelWorkflowInvocationRequest request) { - cancelWorkflowInvocationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Requests cancellation of a running WorkflowInvocation. - * - *

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()) {
-   *   CancelWorkflowInvocationRequest request =
-   *       CancelWorkflowInvocationRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.cancelWorkflowInvocationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - cancelWorkflowInvocationCallable() { - return stub.cancelWorkflowInvocationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. - * - *

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()) {
-   *   QueryWorkflowInvocationActionsRequest request =
-   *       QueryWorkflowInvocationActionsRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (WorkflowInvocationAction element :
-   *       dataformClient.queryWorkflowInvocationActions(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 QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocationActions( - QueryWorkflowInvocationActionsRequest request) { - return queryWorkflowInvocationActionsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. - * - *

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()) {
-   *   QueryWorkflowInvocationActionsRequest request =
-   *       QueryWorkflowInvocationActionsRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataformClient.queryWorkflowInvocationActionsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (WorkflowInvocationAction element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable() { - return stub.queryWorkflowInvocationActionsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. - * - *

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()) {
-   *   QueryWorkflowInvocationActionsRequest request =
-   *       QueryWorkflowInvocationActionsRequest.newBuilder()
-   *           .setName(
-   *               WorkflowInvocationName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     QueryWorkflowInvocationActionsResponse response =
-   *         dataformClient.queryWorkflowInvocationActionsCallable().call(request);
-   *     for (WorkflowInvocationAction element : response.getWorkflowInvocationActionsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - 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. - /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

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

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               CompilationResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   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 Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

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

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               CompilationResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. - * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   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 Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. - * - *

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()) {
-   *   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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - // 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();
-   *   ApiFuture future =
-   *       dataformClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListRepositoriesPagedResponse - extends AbstractPagedListResponse< - ListRepositoriesRequest, - ListRepositoriesResponse, - Repository, - ListRepositoriesPage, - ListRepositoriesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRepositoriesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListRepositoriesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListRepositoriesPagedResponse(ListRepositoriesPage page) { - super(page, ListRepositoriesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRepositoriesPage - extends AbstractPage< - ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { - - private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { - super(context, response); - } - - private static ListRepositoriesPage createEmptyPage() { - return new ListRepositoriesPage(null, null); - } - - @Override - protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { - return new ListRepositoriesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRepositoriesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRepositoriesRequest, - ListRepositoriesResponse, - Repository, - ListRepositoriesPage, - ListRepositoriesFixedSizeCollection> { - - private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRepositoriesFixedSizeCollection createEmptyCollection() { - return new ListRepositoriesFixedSizeCollection(null, 0); - } - - @Override - protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRepositoriesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListWorkspacesPagedResponse - extends AbstractPagedListResponse< - ListWorkspacesRequest, - ListWorkspacesResponse, - Workspace, - ListWorkspacesPage, - ListWorkspacesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListWorkspacesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListWorkspacesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListWorkspacesPagedResponse(ListWorkspacesPage page) { - super(page, ListWorkspacesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListWorkspacesPage - extends AbstractPage< - ListWorkspacesRequest, ListWorkspacesResponse, Workspace, ListWorkspacesPage> { - - private ListWorkspacesPage( - PageContext context, - ListWorkspacesResponse response) { - super(context, response); - } - - private static ListWorkspacesPage createEmptyPage() { - return new ListWorkspacesPage(null, null); - } - - @Override - protected ListWorkspacesPage createPage( - PageContext context, - ListWorkspacesResponse response) { - return new ListWorkspacesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListWorkspacesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListWorkspacesRequest, - ListWorkspacesResponse, - Workspace, - ListWorkspacesPage, - ListWorkspacesFixedSizeCollection> { - - private ListWorkspacesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListWorkspacesFixedSizeCollection createEmptyCollection() { - return new ListWorkspacesFixedSizeCollection(null, 0); - } - - @Override - protected ListWorkspacesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListWorkspacesFixedSizeCollection(pages, collectionSize); - } - } - - public static class QueryDirectoryContentsPagedResponse - extends AbstractPagedListResponse< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry, - QueryDirectoryContentsPage, - QueryDirectoryContentsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - QueryDirectoryContentsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new QueryDirectoryContentsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private QueryDirectoryContentsPagedResponse(QueryDirectoryContentsPage page) { - super(page, QueryDirectoryContentsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class QueryDirectoryContentsPage - extends AbstractPage< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry, - QueryDirectoryContentsPage> { - - private QueryDirectoryContentsPage( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> - context, - QueryDirectoryContentsResponse response) { - super(context, response); - } - - private static QueryDirectoryContentsPage createEmptyPage() { - return new QueryDirectoryContentsPage(null, null); - } - - @Override - protected QueryDirectoryContentsPage createPage( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> - context, - QueryDirectoryContentsResponse response) { - return new QueryDirectoryContentsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class QueryDirectoryContentsFixedSizeCollection - extends AbstractFixedSizeCollection< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry, - QueryDirectoryContentsPage, - QueryDirectoryContentsFixedSizeCollection> { - - private QueryDirectoryContentsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static QueryDirectoryContentsFixedSizeCollection createEmptyCollection() { - return new QueryDirectoryContentsFixedSizeCollection(null, 0); - } - - @Override - protected QueryDirectoryContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new QueryDirectoryContentsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListCompilationResultsPagedResponse - extends AbstractPagedListResponse< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - CompilationResult, - ListCompilationResultsPage, - ListCompilationResultsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCompilationResultsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListCompilationResultsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListCompilationResultsPagedResponse(ListCompilationResultsPage page) { - super(page, ListCompilationResultsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCompilationResultsPage - extends AbstractPage< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - CompilationResult, - ListCompilationResultsPage> { - - private ListCompilationResultsPage( - PageContext< - ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> - context, - ListCompilationResultsResponse response) { - super(context, response); - } - - private static ListCompilationResultsPage createEmptyPage() { - return new ListCompilationResultsPage(null, null); - } - - @Override - protected ListCompilationResultsPage createPage( - PageContext< - ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> - context, - ListCompilationResultsResponse response) { - return new ListCompilationResultsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCompilationResultsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - CompilationResult, - ListCompilationResultsPage, - ListCompilationResultsFixedSizeCollection> { - - private ListCompilationResultsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCompilationResultsFixedSizeCollection createEmptyCollection() { - return new ListCompilationResultsFixedSizeCollection(null, 0); - } - - @Override - protected ListCompilationResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCompilationResultsFixedSizeCollection(pages, collectionSize); - } - } - - public static class QueryCompilationResultActionsPagedResponse - extends AbstractPagedListResponse< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction, - QueryCompilationResultActionsPage, - QueryCompilationResultActionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - QueryCompilationResultActionsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new QueryCompilationResultActionsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private QueryCompilationResultActionsPagedResponse(QueryCompilationResultActionsPage page) { - super(page, QueryCompilationResultActionsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class QueryCompilationResultActionsPage - extends AbstractPage< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction, - QueryCompilationResultActionsPage> { - - private QueryCompilationResultActionsPage( - PageContext< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction> - context, - QueryCompilationResultActionsResponse response) { - super(context, response); - } - - private static QueryCompilationResultActionsPage createEmptyPage() { - return new QueryCompilationResultActionsPage(null, null); - } - - @Override - protected QueryCompilationResultActionsPage createPage( - PageContext< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction> - context, - QueryCompilationResultActionsResponse response) { - return new QueryCompilationResultActionsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class QueryCompilationResultActionsFixedSizeCollection - extends AbstractFixedSizeCollection< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction, - QueryCompilationResultActionsPage, - QueryCompilationResultActionsFixedSizeCollection> { - - private QueryCompilationResultActionsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static QueryCompilationResultActionsFixedSizeCollection createEmptyCollection() { - return new QueryCompilationResultActionsFixedSizeCollection(null, 0); - } - - @Override - protected QueryCompilationResultActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new QueryCompilationResultActionsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListWorkflowInvocationsPagedResponse - extends AbstractPagedListResponse< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - WorkflowInvocation, - ListWorkflowInvocationsPage, - ListWorkflowInvocationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListWorkflowInvocationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListWorkflowInvocationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListWorkflowInvocationsPagedResponse(ListWorkflowInvocationsPage page) { - super(page, ListWorkflowInvocationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListWorkflowInvocationsPage - extends AbstractPage< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - WorkflowInvocation, - ListWorkflowInvocationsPage> { - - private ListWorkflowInvocationsPage( - PageContext< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> - context, - ListWorkflowInvocationsResponse response) { - super(context, response); - } - - private static ListWorkflowInvocationsPage createEmptyPage() { - return new ListWorkflowInvocationsPage(null, null); - } - - @Override - protected ListWorkflowInvocationsPage createPage( - PageContext< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> - context, - ListWorkflowInvocationsResponse response) { - return new ListWorkflowInvocationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListWorkflowInvocationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - WorkflowInvocation, - ListWorkflowInvocationsPage, - ListWorkflowInvocationsFixedSizeCollection> { - - private ListWorkflowInvocationsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListWorkflowInvocationsFixedSizeCollection createEmptyCollection() { - return new ListWorkflowInvocationsFixedSizeCollection(null, 0); - } - - @Override - protected ListWorkflowInvocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListWorkflowInvocationsFixedSizeCollection(pages, collectionSize); - } - } - - public static class QueryWorkflowInvocationActionsPagedResponse - extends AbstractPagedListResponse< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction, - QueryWorkflowInvocationActionsPage, - QueryWorkflowInvocationActionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - QueryWorkflowInvocationActionsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new QueryWorkflowInvocationActionsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private QueryWorkflowInvocationActionsPagedResponse(QueryWorkflowInvocationActionsPage page) { - super(page, QueryWorkflowInvocationActionsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class QueryWorkflowInvocationActionsPage - extends AbstractPage< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction, - QueryWorkflowInvocationActionsPage> { - - private QueryWorkflowInvocationActionsPage( - PageContext< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction> - context, - QueryWorkflowInvocationActionsResponse response) { - super(context, response); - } - - private static QueryWorkflowInvocationActionsPage createEmptyPage() { - return new QueryWorkflowInvocationActionsPage(null, null); - } - - @Override - protected QueryWorkflowInvocationActionsPage createPage( - PageContext< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction> - context, - QueryWorkflowInvocationActionsResponse response) { - return new QueryWorkflowInvocationActionsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class QueryWorkflowInvocationActionsFixedSizeCollection - extends AbstractFixedSizeCollection< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction, - QueryWorkflowInvocationActionsPage, - QueryWorkflowInvocationActionsFixedSizeCollection> { - - private QueryWorkflowInvocationActionsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static QueryWorkflowInvocationActionsFixedSizeCollection createEmptyCollection() { - return new QueryWorkflowInvocationActionsFixedSizeCollection(null, 0); - } - - @Override - protected QueryWorkflowInvocationActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new QueryWorkflowInvocationActionsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListLocationsPagedResponse - extends AbstractPagedListResponse< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListLocationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListLocationsPagedResponse(ListLocationsPage page) { - super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLocationsPage - extends AbstractPage< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { - - private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { - super(context, response); - } - - private static ListLocationsPage createEmptyPage() { - return new ListLocationsPage(null, null); - } - - @Override - protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { - return new ListLocationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLocationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLocationsFixedSizeCollection createEmptyCollection() { - return new ListLocationsFixedSizeCollection(null, 0); - } - - @Override - protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLocationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformSettings.java deleted file mode 100644 index 280e8ba1bcb5..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformSettings.java +++ /dev/null @@ -1,714 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryWorkflowInvocationActionsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataform.v1alpha2.stub.DataformStubSettings; -import com.google.cloud.location.GetLocationRequest; -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; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DataformClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (dataform.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the - * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getRepository: - * - *

{@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
- * DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
- * dataformSettingsBuilder
- *     .getRepositorySettings()
- *     .setRetrySettings(
- *         dataformSettingsBuilder
- *             .getRepositorySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
- *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
- *             .setMaxAttempts(5)
- *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
- *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
- *             .setRetryDelayMultiplier(1.3)
- *             .setRpcTimeoutMultiplier(1.5)
- *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
- *             .build());
- * DataformSettings dataformSettings = dataformSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataformSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listRepositories. */ - public PagedCallSettings< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - listRepositoriesSettings() { - return ((DataformStubSettings) getStubSettings()).listRepositoriesSettings(); - } - - /** Returns the object with the settings used for calls to getRepository. */ - public UnaryCallSettings getRepositorySettings() { - return ((DataformStubSettings) getStubSettings()).getRepositorySettings(); - } - - /** Returns the object with the settings used for calls to createRepository. */ - public UnaryCallSettings createRepositorySettings() { - return ((DataformStubSettings) getStubSettings()).createRepositorySettings(); - } - - /** Returns the object with the settings used for calls to updateRepository. */ - public UnaryCallSettings updateRepositorySettings() { - return ((DataformStubSettings) getStubSettings()).updateRepositorySettings(); - } - - /** Returns the object with the settings used for calls to deleteRepository. */ - public UnaryCallSettings deleteRepositorySettings() { - return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings(); - } - - /** Returns the object with the settings used for calls to fetchRemoteBranches. */ - public UnaryCallSettings - fetchRemoteBranchesSettings() { - return ((DataformStubSettings) getStubSettings()).fetchRemoteBranchesSettings(); - } - - /** Returns the object with the settings used for calls to listWorkspaces. */ - public PagedCallSettings< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - listWorkspacesSettings() { - return ((DataformStubSettings) getStubSettings()).listWorkspacesSettings(); - } - - /** Returns the object with the settings used for calls to getWorkspace. */ - public UnaryCallSettings getWorkspaceSettings() { - return ((DataformStubSettings) getStubSettings()).getWorkspaceSettings(); - } - - /** Returns the object with the settings used for calls to createWorkspace. */ - public UnaryCallSettings createWorkspaceSettings() { - return ((DataformStubSettings) getStubSettings()).createWorkspaceSettings(); - } - - /** Returns the object with the settings used for calls to deleteWorkspace. */ - public UnaryCallSettings deleteWorkspaceSettings() { - return ((DataformStubSettings) getStubSettings()).deleteWorkspaceSettings(); - } - - /** Returns the object with the settings used for calls to installNpmPackages. */ - public UnaryCallSettings - installNpmPackagesSettings() { - return ((DataformStubSettings) getStubSettings()).installNpmPackagesSettings(); - } - - /** Returns the object with the settings used for calls to pullGitCommits. */ - public UnaryCallSettings pullGitCommitsSettings() { - return ((DataformStubSettings) getStubSettings()).pullGitCommitsSettings(); - } - - /** Returns the object with the settings used for calls to pushGitCommits. */ - public UnaryCallSettings pushGitCommitsSettings() { - return ((DataformStubSettings) getStubSettings()).pushGitCommitsSettings(); - } - - /** Returns the object with the settings used for calls to fetchFileGitStatuses. */ - public UnaryCallSettings - fetchFileGitStatusesSettings() { - return ((DataformStubSettings) getStubSettings()).fetchFileGitStatusesSettings(); - } - - /** Returns the object with the settings used for calls to fetchGitAheadBehind. */ - public UnaryCallSettings - fetchGitAheadBehindSettings() { - return ((DataformStubSettings) getStubSettings()).fetchGitAheadBehindSettings(); - } - - /** Returns the object with the settings used for calls to commitWorkspaceChanges. */ - public UnaryCallSettings commitWorkspaceChangesSettings() { - return ((DataformStubSettings) getStubSettings()).commitWorkspaceChangesSettings(); - } - - /** Returns the object with the settings used for calls to resetWorkspaceChanges. */ - public UnaryCallSettings resetWorkspaceChangesSettings() { - return ((DataformStubSettings) getStubSettings()).resetWorkspaceChangesSettings(); - } - - /** Returns the object with the settings used for calls to fetchFileDiff. */ - public UnaryCallSettings fetchFileDiffSettings() { - return ((DataformStubSettings) getStubSettings()).fetchFileDiffSettings(); - } - - /** Returns the object with the settings used for calls to queryDirectoryContents. */ - public PagedCallSettings< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - queryDirectoryContentsSettings() { - return ((DataformStubSettings) getStubSettings()).queryDirectoryContentsSettings(); - } - - /** Returns the object with the settings used for calls to makeDirectory. */ - public UnaryCallSettings makeDirectorySettings() { - return ((DataformStubSettings) getStubSettings()).makeDirectorySettings(); - } - - /** Returns the object with the settings used for calls to removeDirectory. */ - public UnaryCallSettings removeDirectorySettings() { - return ((DataformStubSettings) getStubSettings()).removeDirectorySettings(); - } - - /** Returns the object with the settings used for calls to moveDirectory. */ - public UnaryCallSettings moveDirectorySettings() { - return ((DataformStubSettings) getStubSettings()).moveDirectorySettings(); - } - - /** Returns the object with the settings used for calls to readFile. */ - public UnaryCallSettings readFileSettings() { - return ((DataformStubSettings) getStubSettings()).readFileSettings(); - } - - /** Returns the object with the settings used for calls to removeFile. */ - public UnaryCallSettings removeFileSettings() { - return ((DataformStubSettings) getStubSettings()).removeFileSettings(); - } - - /** Returns the object with the settings used for calls to moveFile. */ - public UnaryCallSettings moveFileSettings() { - return ((DataformStubSettings) getStubSettings()).moveFileSettings(); - } - - /** Returns the object with the settings used for calls to writeFile. */ - public UnaryCallSettings writeFileSettings() { - return ((DataformStubSettings) getStubSettings()).writeFileSettings(); - } - - /** Returns the object with the settings used for calls to listCompilationResults. */ - public PagedCallSettings< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - listCompilationResultsSettings() { - return ((DataformStubSettings) getStubSettings()).listCompilationResultsSettings(); - } - - /** Returns the object with the settings used for calls to getCompilationResult. */ - public UnaryCallSettings - getCompilationResultSettings() { - return ((DataformStubSettings) getStubSettings()).getCompilationResultSettings(); - } - - /** Returns the object with the settings used for calls to createCompilationResult. */ - public UnaryCallSettings - createCompilationResultSettings() { - return ((DataformStubSettings) getStubSettings()).createCompilationResultSettings(); - } - - /** Returns the object with the settings used for calls to queryCompilationResultActions. */ - public PagedCallSettings< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsSettings() { - return ((DataformStubSettings) getStubSettings()).queryCompilationResultActionsSettings(); - } - - /** Returns the object with the settings used for calls to listWorkflowInvocations. */ - public PagedCallSettings< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - listWorkflowInvocationsSettings() { - return ((DataformStubSettings) getStubSettings()).listWorkflowInvocationsSettings(); - } - - /** Returns the object with the settings used for calls to getWorkflowInvocation. */ - public UnaryCallSettings - getWorkflowInvocationSettings() { - return ((DataformStubSettings) getStubSettings()).getWorkflowInvocationSettings(); - } - - /** Returns the object with the settings used for calls to createWorkflowInvocation. */ - public UnaryCallSettings - createWorkflowInvocationSettings() { - return ((DataformStubSettings) getStubSettings()).createWorkflowInvocationSettings(); - } - - /** Returns the object with the settings used for calls to deleteWorkflowInvocation. */ - public UnaryCallSettings - deleteWorkflowInvocationSettings() { - return ((DataformStubSettings) getStubSettings()).deleteWorkflowInvocationSettings(); - } - - /** Returns the object with the settings used for calls to cancelWorkflowInvocation. */ - public UnaryCallSettings - cancelWorkflowInvocationSettings() { - return ((DataformStubSettings) getStubSettings()).cancelWorkflowInvocationSettings(); - } - - /** Returns the object with the settings used for calls to queryWorkflowInvocationActions. */ - public PagedCallSettings< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsSettings() { - return ((DataformStubSettings) getStubSettings()).queryWorkflowInvocationActionsSettings(); - } - - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return ((DataformStubSettings) getStubSettings()).listLocationsSettings(); - } - - /** Returns the object with the settings used for calls to getLocation. */ - 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(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DataformStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DataformStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DataformStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DataformStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DataformStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DataformStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DataformStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataformStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DataformSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DataformSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(DataformStubSettings.newBuilder(clientContext)); - } - - protected Builder(DataformSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DataformStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DataformStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(DataformStubSettings.newHttpJsonBuilder()); - } - - public DataformStubSettings.Builder getStubSettingsBuilder() { - return ((DataformStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listRepositories. */ - public PagedCallSettings.Builder< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - listRepositoriesSettings() { - return getStubSettingsBuilder().listRepositoriesSettings(); - } - - /** Returns the builder for the settings used for calls to getRepository. */ - public UnaryCallSettings.Builder getRepositorySettings() { - return getStubSettingsBuilder().getRepositorySettings(); - } - - /** Returns the builder for the settings used for calls to createRepository. */ - public UnaryCallSettings.Builder - createRepositorySettings() { - return getStubSettingsBuilder().createRepositorySettings(); - } - - /** Returns the builder for the settings used for calls to updateRepository. */ - public UnaryCallSettings.Builder - updateRepositorySettings() { - return getStubSettingsBuilder().updateRepositorySettings(); - } - - /** Returns the builder for the settings used for calls to deleteRepository. */ - public UnaryCallSettings.Builder deleteRepositorySettings() { - return getStubSettingsBuilder().deleteRepositorySettings(); - } - - /** Returns the builder for the settings used for calls to fetchRemoteBranches. */ - public UnaryCallSettings.Builder - fetchRemoteBranchesSettings() { - return getStubSettingsBuilder().fetchRemoteBranchesSettings(); - } - - /** Returns the builder for the settings used for calls to listWorkspaces. */ - public PagedCallSettings.Builder< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - listWorkspacesSettings() { - return getStubSettingsBuilder().listWorkspacesSettings(); - } - - /** Returns the builder for the settings used for calls to getWorkspace. */ - public UnaryCallSettings.Builder getWorkspaceSettings() { - return getStubSettingsBuilder().getWorkspaceSettings(); - } - - /** Returns the builder for the settings used for calls to createWorkspace. */ - public UnaryCallSettings.Builder createWorkspaceSettings() { - return getStubSettingsBuilder().createWorkspaceSettings(); - } - - /** Returns the builder for the settings used for calls to deleteWorkspace. */ - public UnaryCallSettings.Builder deleteWorkspaceSettings() { - return getStubSettingsBuilder().deleteWorkspaceSettings(); - } - - /** Returns the builder for the settings used for calls to installNpmPackages. */ - public UnaryCallSettings.Builder - installNpmPackagesSettings() { - return getStubSettingsBuilder().installNpmPackagesSettings(); - } - - /** Returns the builder for the settings used for calls to pullGitCommits. */ - public UnaryCallSettings.Builder pullGitCommitsSettings() { - return getStubSettingsBuilder().pullGitCommitsSettings(); - } - - /** Returns the builder for the settings used for calls to pushGitCommits. */ - public UnaryCallSettings.Builder pushGitCommitsSettings() { - return getStubSettingsBuilder().pushGitCommitsSettings(); - } - - /** Returns the builder for the settings used for calls to fetchFileGitStatuses. */ - public UnaryCallSettings.Builder - fetchFileGitStatusesSettings() { - return getStubSettingsBuilder().fetchFileGitStatusesSettings(); - } - - /** Returns the builder for the settings used for calls to fetchGitAheadBehind. */ - public UnaryCallSettings.Builder - fetchGitAheadBehindSettings() { - return getStubSettingsBuilder().fetchGitAheadBehindSettings(); - } - - /** Returns the builder for the settings used for calls to commitWorkspaceChanges. */ - public UnaryCallSettings.Builder - commitWorkspaceChangesSettings() { - return getStubSettingsBuilder().commitWorkspaceChangesSettings(); - } - - /** Returns the builder for the settings used for calls to resetWorkspaceChanges. */ - public UnaryCallSettings.Builder - resetWorkspaceChangesSettings() { - return getStubSettingsBuilder().resetWorkspaceChangesSettings(); - } - - /** Returns the builder for the settings used for calls to fetchFileDiff. */ - public UnaryCallSettings.Builder - fetchFileDiffSettings() { - return getStubSettingsBuilder().fetchFileDiffSettings(); - } - - /** Returns the builder for the settings used for calls to queryDirectoryContents. */ - public PagedCallSettings.Builder< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - queryDirectoryContentsSettings() { - return getStubSettingsBuilder().queryDirectoryContentsSettings(); - } - - /** Returns the builder for the settings used for calls to makeDirectory. */ - public UnaryCallSettings.Builder - makeDirectorySettings() { - return getStubSettingsBuilder().makeDirectorySettings(); - } - - /** Returns the builder for the settings used for calls to removeDirectory. */ - public UnaryCallSettings.Builder removeDirectorySettings() { - return getStubSettingsBuilder().removeDirectorySettings(); - } - - /** Returns the builder for the settings used for calls to moveDirectory. */ - public UnaryCallSettings.Builder - moveDirectorySettings() { - return getStubSettingsBuilder().moveDirectorySettings(); - } - - /** Returns the builder for the settings used for calls to readFile. */ - public UnaryCallSettings.Builder readFileSettings() { - return getStubSettingsBuilder().readFileSettings(); - } - - /** Returns the builder for the settings used for calls to removeFile. */ - public UnaryCallSettings.Builder removeFileSettings() { - return getStubSettingsBuilder().removeFileSettings(); - } - - /** Returns the builder for the settings used for calls to moveFile. */ - public UnaryCallSettings.Builder moveFileSettings() { - return getStubSettingsBuilder().moveFileSettings(); - } - - /** Returns the builder for the settings used for calls to writeFile. */ - public UnaryCallSettings.Builder writeFileSettings() { - return getStubSettingsBuilder().writeFileSettings(); - } - - /** Returns the builder for the settings used for calls to listCompilationResults. */ - public PagedCallSettings.Builder< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - listCompilationResultsSettings() { - return getStubSettingsBuilder().listCompilationResultsSettings(); - } - - /** Returns the builder for the settings used for calls to getCompilationResult. */ - public UnaryCallSettings.Builder - getCompilationResultSettings() { - return getStubSettingsBuilder().getCompilationResultSettings(); - } - - /** Returns the builder for the settings used for calls to createCompilationResult. */ - public UnaryCallSettings.Builder - createCompilationResultSettings() { - return getStubSettingsBuilder().createCompilationResultSettings(); - } - - /** Returns the builder for the settings used for calls to queryCompilationResultActions. */ - public PagedCallSettings.Builder< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsSettings() { - return getStubSettingsBuilder().queryCompilationResultActionsSettings(); - } - - /** Returns the builder for the settings used for calls to listWorkflowInvocations. */ - public PagedCallSettings.Builder< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - listWorkflowInvocationsSettings() { - return getStubSettingsBuilder().listWorkflowInvocationsSettings(); - } - - /** Returns the builder for the settings used for calls to getWorkflowInvocation. */ - public UnaryCallSettings.Builder - getWorkflowInvocationSettings() { - return getStubSettingsBuilder().getWorkflowInvocationSettings(); - } - - /** Returns the builder for the settings used for calls to createWorkflowInvocation. */ - public UnaryCallSettings.Builder - createWorkflowInvocationSettings() { - return getStubSettingsBuilder().createWorkflowInvocationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteWorkflowInvocation. */ - public UnaryCallSettings.Builder - deleteWorkflowInvocationSettings() { - return getStubSettingsBuilder().deleteWorkflowInvocationSettings(); - } - - /** Returns the builder for the settings used for calls to cancelWorkflowInvocation. */ - public UnaryCallSettings.Builder - cancelWorkflowInvocationSettings() { - return getStubSettingsBuilder().cancelWorkflowInvocationSettings(); - } - - /** Returns the builder for the settings used for calls to queryWorkflowInvocationActions. */ - public PagedCallSettings.Builder< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsSettings() { - return getStubSettingsBuilder().queryWorkflowInvocationActionsSettings(); - } - - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return getStubSettingsBuilder().listLocationsSettings(); - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - 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/v1alpha2/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/gapic_metadata.json deleted file mode 100644 index 54aede70c3ce..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/gapic_metadata.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.dataform.v1alpha2", - "libraryPackage": "com.google.cloud.dataform.v1alpha2", - "services": { - "Dataform": { - "clients": { - "grpc": { - "libraryClient": "DataformClient", - "rpcs": { - "CancelWorkflowInvocation": { - "methods": ["cancelWorkflowInvocation", "cancelWorkflowInvocationCallable"] - }, - "CommitWorkspaceChanges": { - "methods": ["commitWorkspaceChanges", "commitWorkspaceChangesCallable"] - }, - "CreateCompilationResult": { - "methods": ["createCompilationResult", "createCompilationResult", "createCompilationResult", "createCompilationResultCallable"] - }, - "CreateRepository": { - "methods": ["createRepository", "createRepository", "createRepository", "createRepositoryCallable"] - }, - "CreateWorkflowInvocation": { - "methods": ["createWorkflowInvocation", "createWorkflowInvocation", "createWorkflowInvocation", "createWorkflowInvocationCallable"] - }, - "CreateWorkspace": { - "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] - }, - "DeleteRepository": { - "methods": ["deleteRepository", "deleteRepository", "deleteRepository", "deleteRepositoryCallable"] - }, - "DeleteWorkflowInvocation": { - "methods": ["deleteWorkflowInvocation", "deleteWorkflowInvocation", "deleteWorkflowInvocation", "deleteWorkflowInvocationCallable"] - }, - "DeleteWorkspace": { - "methods": ["deleteWorkspace", "deleteWorkspace", "deleteWorkspace", "deleteWorkspaceCallable"] - }, - "FetchFileDiff": { - "methods": ["fetchFileDiff", "fetchFileDiffCallable"] - }, - "FetchFileGitStatuses": { - "methods": ["fetchFileGitStatuses", "fetchFileGitStatusesCallable"] - }, - "FetchGitAheadBehind": { - "methods": ["fetchGitAheadBehind", "fetchGitAheadBehindCallable"] - }, - "FetchRemoteBranches": { - "methods": ["fetchRemoteBranches", "fetchRemoteBranchesCallable"] - }, - "GetCompilationResult": { - "methods": ["getCompilationResult", "getCompilationResult", "getCompilationResult", "getCompilationResultCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "GetRepository": { - "methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"] - }, - "GetWorkflowInvocation": { - "methods": ["getWorkflowInvocation", "getWorkflowInvocation", "getWorkflowInvocation", "getWorkflowInvocationCallable"] - }, - "GetWorkspace": { - "methods": ["getWorkspace", "getWorkspace", "getWorkspace", "getWorkspaceCallable"] - }, - "InstallNpmPackages": { - "methods": ["installNpmPackages", "installNpmPackagesCallable"] - }, - "ListCompilationResults": { - "methods": ["listCompilationResults", "listCompilationResults", "listCompilationResults", "listCompilationResultsPagedCallable", "listCompilationResultsCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "ListRepositories": { - "methods": ["listRepositories", "listRepositories", "listRepositories", "listRepositoriesPagedCallable", "listRepositoriesCallable"] - }, - "ListWorkflowInvocations": { - "methods": ["listWorkflowInvocations", "listWorkflowInvocations", "listWorkflowInvocations", "listWorkflowInvocationsPagedCallable", "listWorkflowInvocationsCallable"] - }, - "ListWorkspaces": { - "methods": ["listWorkspaces", "listWorkspaces", "listWorkspaces", "listWorkspacesPagedCallable", "listWorkspacesCallable"] - }, - "MakeDirectory": { - "methods": ["makeDirectory", "makeDirectoryCallable"] - }, - "MoveDirectory": { - "methods": ["moveDirectory", "moveDirectoryCallable"] - }, - "MoveFile": { - "methods": ["moveFile", "moveFileCallable"] - }, - "PullGitCommits": { - "methods": ["pullGitCommits", "pullGitCommitsCallable"] - }, - "PushGitCommits": { - "methods": ["pushGitCommits", "pushGitCommitsCallable"] - }, - "QueryCompilationResultActions": { - "methods": ["queryCompilationResultActions", "queryCompilationResultActionsPagedCallable", "queryCompilationResultActionsCallable"] - }, - "QueryDirectoryContents": { - "methods": ["queryDirectoryContents", "queryDirectoryContentsPagedCallable", "queryDirectoryContentsCallable"] - }, - "QueryWorkflowInvocationActions": { - "methods": ["queryWorkflowInvocationActions", "queryWorkflowInvocationActionsPagedCallable", "queryWorkflowInvocationActionsCallable"] - }, - "ReadFile": { - "methods": ["readFile", "readFileCallable"] - }, - "RemoveDirectory": { - "methods": ["removeDirectory", "removeDirectoryCallable"] - }, - "RemoveFile": { - "methods": ["removeFile", "removeFileCallable"] - }, - "ResetWorkspaceChanges": { - "methods": ["resetWorkspaceChanges", "resetWorkspaceChangesCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateRepository": { - "methods": ["updateRepository", "updateRepository", "updateRepositoryCallable"] - }, - "WriteFile": { - "methods": ["writeFile", "writeFileCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/package-info.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/package-info.java deleted file mode 100644 index af10f25e9873..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/package-info.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2025 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. - */ - -/** - * A client to Dataform API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= DataformClient ======================= - * - *

Service Description: Dataform is a service to develop, create, document, test, and update - * curated tables in BigQuery. - * - *

Sample for DataformClient: - * - *

{@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 name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
- *   Repository response = dataformClient.getRepository(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.dataform.v1alpha2; - -import javax.annotation.Generated; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStub.java deleted file mode 100644 index 19a7823941e0..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStub.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2.stub; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.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.v1alpha2.CancelWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.CompilationResult; -import com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse; -import com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.GetRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveFileRequest; -import com.google.cloud.dataform.v1alpha2.MoveFileResponse; -import com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse; -import com.google.cloud.dataform.v1alpha2.ReadFileRequest; -import com.google.cloud.dataform.v1alpha2.ReadFileResponse; -import com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.RemoveFileRequest; -import com.google.cloud.dataform.v1alpha2.Repository; -import com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.WorkflowInvocation; -import com.google.cloud.dataform.v1alpha2.Workspace; -import com.google.cloud.dataform.v1alpha2.WriteFileRequest; -import com.google.cloud.dataform.v1alpha2.WriteFileResponse; -import com.google.cloud.location.GetLocationRequest; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the Dataform service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class DataformStub implements BackgroundResource { - - public UnaryCallable - listRepositoriesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRepositoriesPagedCallable()"); - } - - public UnaryCallable - listRepositoriesCallable() { - throw new UnsupportedOperationException("Not implemented: listRepositoriesCallable()"); - } - - public UnaryCallable getRepositoryCallable() { - throw new UnsupportedOperationException("Not implemented: getRepositoryCallable()"); - } - - public UnaryCallable createRepositoryCallable() { - throw new UnsupportedOperationException("Not implemented: createRepositoryCallable()"); - } - - public UnaryCallable updateRepositoryCallable() { - throw new UnsupportedOperationException("Not implemented: updateRepositoryCallable()"); - } - - public UnaryCallable deleteRepositoryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRepositoryCallable()"); - } - - public UnaryCallable - fetchRemoteBranchesCallable() { - throw new UnsupportedOperationException("Not implemented: fetchRemoteBranchesCallable()"); - } - - public UnaryCallable - listWorkspacesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listWorkspacesPagedCallable()"); - } - - public UnaryCallable listWorkspacesCallable() { - throw new UnsupportedOperationException("Not implemented: listWorkspacesCallable()"); - } - - public UnaryCallable getWorkspaceCallable() { - throw new UnsupportedOperationException("Not implemented: getWorkspaceCallable()"); - } - - public UnaryCallable createWorkspaceCallable() { - throw new UnsupportedOperationException("Not implemented: createWorkspaceCallable()"); - } - - public UnaryCallable deleteWorkspaceCallable() { - throw new UnsupportedOperationException("Not implemented: deleteWorkspaceCallable()"); - } - - public UnaryCallable - installNpmPackagesCallable() { - throw new UnsupportedOperationException("Not implemented: installNpmPackagesCallable()"); - } - - public UnaryCallable pullGitCommitsCallable() { - throw new UnsupportedOperationException("Not implemented: pullGitCommitsCallable()"); - } - - public UnaryCallable pushGitCommitsCallable() { - throw new UnsupportedOperationException("Not implemented: pushGitCommitsCallable()"); - } - - public UnaryCallable - fetchFileGitStatusesCallable() { - throw new UnsupportedOperationException("Not implemented: fetchFileGitStatusesCallable()"); - } - - public UnaryCallable - fetchGitAheadBehindCallable() { - throw new UnsupportedOperationException("Not implemented: fetchGitAheadBehindCallable()"); - } - - public UnaryCallable commitWorkspaceChangesCallable() { - throw new UnsupportedOperationException("Not implemented: commitWorkspaceChangesCallable()"); - } - - public UnaryCallable resetWorkspaceChangesCallable() { - throw new UnsupportedOperationException("Not implemented: resetWorkspaceChangesCallable()"); - } - - public UnaryCallable fetchFileDiffCallable() { - throw new UnsupportedOperationException("Not implemented: fetchFileDiffCallable()"); - } - - public UnaryCallable - queryDirectoryContentsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: queryDirectoryContentsPagedCallable()"); - } - - public UnaryCallable - queryDirectoryContentsCallable() { - throw new UnsupportedOperationException("Not implemented: queryDirectoryContentsCallable()"); - } - - public UnaryCallable makeDirectoryCallable() { - throw new UnsupportedOperationException("Not implemented: makeDirectoryCallable()"); - } - - public UnaryCallable removeDirectoryCallable() { - throw new UnsupportedOperationException("Not implemented: removeDirectoryCallable()"); - } - - public UnaryCallable moveDirectoryCallable() { - throw new UnsupportedOperationException("Not implemented: moveDirectoryCallable()"); - } - - public UnaryCallable readFileCallable() { - throw new UnsupportedOperationException("Not implemented: readFileCallable()"); - } - - public UnaryCallable removeFileCallable() { - throw new UnsupportedOperationException("Not implemented: removeFileCallable()"); - } - - public UnaryCallable moveFileCallable() { - throw new UnsupportedOperationException("Not implemented: moveFileCallable()"); - } - - public UnaryCallable writeFileCallable() { - throw new UnsupportedOperationException("Not implemented: writeFileCallable()"); - } - - public UnaryCallable - listCompilationResultsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listCompilationResultsPagedCallable()"); - } - - public UnaryCallable - listCompilationResultsCallable() { - throw new UnsupportedOperationException("Not implemented: listCompilationResultsCallable()"); - } - - public UnaryCallable - getCompilationResultCallable() { - throw new UnsupportedOperationException("Not implemented: getCompilationResultCallable()"); - } - - public UnaryCallable - createCompilationResultCallable() { - throw new UnsupportedOperationException("Not implemented: createCompilationResultCallable()"); - } - - public UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: queryCompilationResultActionsPagedCallable()"); - } - - public UnaryCallable - queryCompilationResultActionsCallable() { - throw new UnsupportedOperationException( - "Not implemented: queryCompilationResultActionsCallable()"); - } - - public UnaryCallable - listWorkflowInvocationsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listWorkflowInvocationsPagedCallable()"); - } - - public UnaryCallable - listWorkflowInvocationsCallable() { - throw new UnsupportedOperationException("Not implemented: listWorkflowInvocationsCallable()"); - } - - public UnaryCallable - getWorkflowInvocationCallable() { - throw new UnsupportedOperationException("Not implemented: getWorkflowInvocationCallable()"); - } - - public UnaryCallable - createWorkflowInvocationCallable() { - throw new UnsupportedOperationException("Not implemented: createWorkflowInvocationCallable()"); - } - - public UnaryCallable deleteWorkflowInvocationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteWorkflowInvocationCallable()"); - } - - public UnaryCallable cancelWorkflowInvocationCallable() { - throw new UnsupportedOperationException("Not implemented: cancelWorkflowInvocationCallable()"); - } - - public UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: queryWorkflowInvocationActionsPagedCallable()"); - } - - public UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable() { - throw new UnsupportedOperationException( - "Not implemented: queryWorkflowInvocationActionsCallable()"); - } - - public UnaryCallable - listLocationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); - } - - public UnaryCallable listLocationsCallable() { - throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); - } - - 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/v1alpha2/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStubSettings.java deleted file mode 100644 index 9e05bf688d9a..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/DataformStubSettings.java +++ /dev/null @@ -1,1999 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2.stub; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryWorkflowInvocationActionsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.core.ObsoleteApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.CompilationResult; -import com.google.cloud.dataform.v1alpha2.CompilationResultAction; -import com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse; -import com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.GetRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveFileRequest; -import com.google.cloud.dataform.v1alpha2.MoveFileResponse; -import com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse; -import com.google.cloud.dataform.v1alpha2.ReadFileRequest; -import com.google.cloud.dataform.v1alpha2.ReadFileResponse; -import com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.RemoveFileRequest; -import com.google.cloud.dataform.v1alpha2.Repository; -import com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.WorkflowInvocation; -import com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction; -import com.google.cloud.dataform.v1alpha2.Workspace; -import com.google.cloud.dataform.v1alpha2.WriteFileRequest; -import com.google.cloud.dataform.v1alpha2.WriteFileResponse; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.ImmutableList; -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; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link DataformStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (dataform.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the - * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getRepository: - * - *

{@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
- * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
- * dataformSettingsBuilder
- *     .getRepositorySettings()
- *     .setRetrySettings(
- *         dataformSettingsBuilder
- *             .getRepositorySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
- *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
- *             .setMaxAttempts(5)
- *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
- *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
- *             .setRetryDelayMultiplier(1.3)
- *             .setRpcTimeoutMultiplier(1.5)
- *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
- *             .build());
- * DataformStubSettings dataformSettings = dataformSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class DataformStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - listRepositoriesSettings; - private final UnaryCallSettings getRepositorySettings; - private final UnaryCallSettings createRepositorySettings; - private final UnaryCallSettings updateRepositorySettings; - private final UnaryCallSettings deleteRepositorySettings; - private final UnaryCallSettings - fetchRemoteBranchesSettings; - private final PagedCallSettings< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - listWorkspacesSettings; - private final UnaryCallSettings getWorkspaceSettings; - private final UnaryCallSettings createWorkspaceSettings; - private final UnaryCallSettings deleteWorkspaceSettings; - private final UnaryCallSettings - installNpmPackagesSettings; - private final UnaryCallSettings pullGitCommitsSettings; - private final UnaryCallSettings pushGitCommitsSettings; - private final UnaryCallSettings - fetchFileGitStatusesSettings; - private final UnaryCallSettings - fetchGitAheadBehindSettings; - private final UnaryCallSettings - commitWorkspaceChangesSettings; - private final UnaryCallSettings - resetWorkspaceChangesSettings; - private final UnaryCallSettings - fetchFileDiffSettings; - private final PagedCallSettings< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - queryDirectoryContentsSettings; - private final UnaryCallSettings - makeDirectorySettings; - private final UnaryCallSettings removeDirectorySettings; - private final UnaryCallSettings - moveDirectorySettings; - private final UnaryCallSettings readFileSettings; - private final UnaryCallSettings removeFileSettings; - private final UnaryCallSettings moveFileSettings; - private final UnaryCallSettings writeFileSettings; - private final PagedCallSettings< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - listCompilationResultsSettings; - private final UnaryCallSettings - getCompilationResultSettings; - private final UnaryCallSettings - createCompilationResultSettings; - private final PagedCallSettings< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsSettings; - private final PagedCallSettings< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - listWorkflowInvocationsSettings; - private final UnaryCallSettings - getWorkflowInvocationSettings; - private final UnaryCallSettings - createWorkflowInvocationSettings; - private final UnaryCallSettings - deleteWorkflowInvocationSettings; - private final UnaryCallSettings - cancelWorkflowInvocationSettings; - private final PagedCallSettings< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsSettings; - private final PagedCallSettings< - 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> - LIST_REPOSITORIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRepositoriesRequest injectToken( - ListRepositoriesRequest payload, String token) { - return ListRepositoriesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRepositoriesRequest injectPageSize( - ListRepositoriesRequest payload, int pageSize) { - return ListRepositoriesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRepositoriesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRepositoriesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRepositoriesResponse payload) { - return payload.getRepositoriesList(); - } - }; - - private static final PagedListDescriptor - LIST_WORKSPACES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWorkspacesRequest injectToken(ListWorkspacesRequest payload, String token) { - return ListWorkspacesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWorkspacesRequest injectPageSize( - ListWorkspacesRequest payload, int pageSize) { - return ListWorkspacesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListWorkspacesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWorkspacesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListWorkspacesResponse payload) { - return payload.getWorkspacesList(); - } - }; - - private static final PagedListDescriptor< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> - QUERY_DIRECTORY_CONTENTS_PAGE_STR_DESC = - new PagedListDescriptor< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public QueryDirectoryContentsRequest injectToken( - QueryDirectoryContentsRequest payload, String token) { - return QueryDirectoryContentsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public QueryDirectoryContentsRequest injectPageSize( - QueryDirectoryContentsRequest payload, int pageSize) { - return QueryDirectoryContentsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(QueryDirectoryContentsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(QueryDirectoryContentsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - QueryDirectoryContentsResponse payload) { - return payload.getDirectoryEntriesList(); - } - }; - - private static final PagedListDescriptor< - ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> - LIST_COMPILATION_RESULTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCompilationResultsRequest injectToken( - ListCompilationResultsRequest payload, String token) { - return ListCompilationResultsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListCompilationResultsRequest injectPageSize( - ListCompilationResultsRequest payload, int pageSize) { - return ListCompilationResultsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListCompilationResultsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCompilationResultsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListCompilationResultsResponse payload) { - return payload.getCompilationResultsList(); - } - }; - - private static final PagedListDescriptor< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction> - QUERY_COMPILATION_RESULT_ACTIONS_PAGE_STR_DESC = - new PagedListDescriptor< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public QueryCompilationResultActionsRequest injectToken( - QueryCompilationResultActionsRequest payload, String token) { - return QueryCompilationResultActionsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public QueryCompilationResultActionsRequest injectPageSize( - QueryCompilationResultActionsRequest payload, int pageSize) { - return QueryCompilationResultActionsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(QueryCompilationResultActionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(QueryCompilationResultActionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - QueryCompilationResultActionsResponse payload) { - return payload.getCompilationResultActionsList(); - } - }; - - private static final PagedListDescriptor< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> - LIST_WORKFLOW_INVOCATIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - WorkflowInvocation>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWorkflowInvocationsRequest injectToken( - ListWorkflowInvocationsRequest payload, String token) { - return ListWorkflowInvocationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWorkflowInvocationsRequest injectPageSize( - ListWorkflowInvocationsRequest payload, int pageSize) { - return ListWorkflowInvocationsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListWorkflowInvocationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWorkflowInvocationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListWorkflowInvocationsResponse payload) { - return payload.getWorkflowInvocationsList(); - } - }; - - private static final PagedListDescriptor< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction> - QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_DESC = - new PagedListDescriptor< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public QueryWorkflowInvocationActionsRequest injectToken( - QueryWorkflowInvocationActionsRequest payload, String token) { - return QueryWorkflowInvocationActionsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public QueryWorkflowInvocationActionsRequest injectPageSize( - QueryWorkflowInvocationActionsRequest payload, int pageSize) { - return QueryWorkflowInvocationActionsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(QueryWorkflowInvocationActionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(QueryWorkflowInvocationActionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - QueryWorkflowInvocationActionsResponse payload) { - return payload.getWorkflowInvocationActionsList(); - } - }; - - private static final PagedListDescriptor - LIST_LOCATIONS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { - return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { - return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListLocationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListLocationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListLocationsResponse payload) { - return payload.getLocationsList(); - } - }; - - private static final PagedListResponseFactory< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - LIST_REPOSITORIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRepositoriesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_REPOSITORIES_PAGE_STR_DESC, request, context); - return ListRepositoriesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - LIST_WORKSPACES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListWorkspacesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_WORKSPACES_PAGE_STR_DESC, request, context); - return ListWorkspacesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - QUERY_DIRECTORY_CONTENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - QueryDirectoryContentsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsResponse.DirectoryEntry> - pageContext = - PageContext.create( - callable, QUERY_DIRECTORY_CONTENTS_PAGE_STR_DESC, request, context); - return QueryDirectoryContentsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - LIST_COMPILATION_RESULTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListCompilationResultsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - CompilationResult> - pageContext = - PageContext.create( - callable, LIST_COMPILATION_RESULTS_PAGE_STR_DESC, request, context); - return ListCompilationResultsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - QUERY_COMPILATION_RESULT_ACTIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - callable, - QueryCompilationResultActionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - CompilationResultAction> - pageContext = - PageContext.create( - callable, - QUERY_COMPILATION_RESULT_ACTIONS_PAGE_STR_DESC, - request, - context); - return QueryCompilationResultActionsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - LIST_WORKFLOW_INVOCATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListWorkflowInvocationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - WorkflowInvocation> - pageContext = - PageContext.create( - callable, LIST_WORKFLOW_INVOCATIONS_PAGE_STR_DESC, request, context); - return ListWorkflowInvocationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse> - callable, - QueryWorkflowInvocationActionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - WorkflowInvocationAction> - pageContext = - PageContext.create( - callable, - QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_DESC, - request, - context); - return QueryWorkflowInvocationActionsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - LIST_LOCATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLocationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); - return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listRepositories. */ - public PagedCallSettings< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - listRepositoriesSettings() { - return listRepositoriesSettings; - } - - /** Returns the object with the settings used for calls to getRepository. */ - public UnaryCallSettings getRepositorySettings() { - return getRepositorySettings; - } - - /** Returns the object with the settings used for calls to createRepository. */ - public UnaryCallSettings createRepositorySettings() { - return createRepositorySettings; - } - - /** Returns the object with the settings used for calls to updateRepository. */ - public UnaryCallSettings updateRepositorySettings() { - return updateRepositorySettings; - } - - /** Returns the object with the settings used for calls to deleteRepository. */ - public UnaryCallSettings deleteRepositorySettings() { - return deleteRepositorySettings; - } - - /** Returns the object with the settings used for calls to fetchRemoteBranches. */ - public UnaryCallSettings - fetchRemoteBranchesSettings() { - return fetchRemoteBranchesSettings; - } - - /** Returns the object with the settings used for calls to listWorkspaces. */ - public PagedCallSettings< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - listWorkspacesSettings() { - return listWorkspacesSettings; - } - - /** Returns the object with the settings used for calls to getWorkspace. */ - public UnaryCallSettings getWorkspaceSettings() { - return getWorkspaceSettings; - } - - /** Returns the object with the settings used for calls to createWorkspace. */ - public UnaryCallSettings createWorkspaceSettings() { - return createWorkspaceSettings; - } - - /** Returns the object with the settings used for calls to deleteWorkspace. */ - public UnaryCallSettings deleteWorkspaceSettings() { - return deleteWorkspaceSettings; - } - - /** Returns the object with the settings used for calls to installNpmPackages. */ - public UnaryCallSettings - installNpmPackagesSettings() { - return installNpmPackagesSettings; - } - - /** Returns the object with the settings used for calls to pullGitCommits. */ - public UnaryCallSettings pullGitCommitsSettings() { - return pullGitCommitsSettings; - } - - /** Returns the object with the settings used for calls to pushGitCommits. */ - public UnaryCallSettings pushGitCommitsSettings() { - return pushGitCommitsSettings; - } - - /** Returns the object with the settings used for calls to fetchFileGitStatuses. */ - public UnaryCallSettings - fetchFileGitStatusesSettings() { - return fetchFileGitStatusesSettings; - } - - /** Returns the object with the settings used for calls to fetchGitAheadBehind. */ - public UnaryCallSettings - fetchGitAheadBehindSettings() { - return fetchGitAheadBehindSettings; - } - - /** Returns the object with the settings used for calls to commitWorkspaceChanges. */ - public UnaryCallSettings commitWorkspaceChangesSettings() { - return commitWorkspaceChangesSettings; - } - - /** Returns the object with the settings used for calls to resetWorkspaceChanges. */ - public UnaryCallSettings resetWorkspaceChangesSettings() { - return resetWorkspaceChangesSettings; - } - - /** Returns the object with the settings used for calls to fetchFileDiff. */ - public UnaryCallSettings fetchFileDiffSettings() { - return fetchFileDiffSettings; - } - - /** Returns the object with the settings used for calls to queryDirectoryContents. */ - public PagedCallSettings< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - queryDirectoryContentsSettings() { - return queryDirectoryContentsSettings; - } - - /** Returns the object with the settings used for calls to makeDirectory. */ - public UnaryCallSettings makeDirectorySettings() { - return makeDirectorySettings; - } - - /** Returns the object with the settings used for calls to removeDirectory. */ - public UnaryCallSettings removeDirectorySettings() { - return removeDirectorySettings; - } - - /** Returns the object with the settings used for calls to moveDirectory. */ - public UnaryCallSettings moveDirectorySettings() { - return moveDirectorySettings; - } - - /** Returns the object with the settings used for calls to readFile. */ - public UnaryCallSettings readFileSettings() { - return readFileSettings; - } - - /** Returns the object with the settings used for calls to removeFile. */ - public UnaryCallSettings removeFileSettings() { - return removeFileSettings; - } - - /** Returns the object with the settings used for calls to moveFile. */ - public UnaryCallSettings moveFileSettings() { - return moveFileSettings; - } - - /** Returns the object with the settings used for calls to writeFile. */ - public UnaryCallSettings writeFileSettings() { - return writeFileSettings; - } - - /** Returns the object with the settings used for calls to listCompilationResults. */ - public PagedCallSettings< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - listCompilationResultsSettings() { - return listCompilationResultsSettings; - } - - /** Returns the object with the settings used for calls to getCompilationResult. */ - public UnaryCallSettings - getCompilationResultSettings() { - return getCompilationResultSettings; - } - - /** Returns the object with the settings used for calls to createCompilationResult. */ - public UnaryCallSettings - createCompilationResultSettings() { - return createCompilationResultSettings; - } - - /** Returns the object with the settings used for calls to queryCompilationResultActions. */ - public PagedCallSettings< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsSettings() { - return queryCompilationResultActionsSettings; - } - - /** Returns the object with the settings used for calls to listWorkflowInvocations. */ - public PagedCallSettings< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - listWorkflowInvocationsSettings() { - return listWorkflowInvocationsSettings; - } - - /** Returns the object with the settings used for calls to getWorkflowInvocation. */ - public UnaryCallSettings - getWorkflowInvocationSettings() { - return getWorkflowInvocationSettings; - } - - /** Returns the object with the settings used for calls to createWorkflowInvocation. */ - public UnaryCallSettings - createWorkflowInvocationSettings() { - return createWorkflowInvocationSettings; - } - - /** Returns the object with the settings used for calls to deleteWorkflowInvocation. */ - public UnaryCallSettings - deleteWorkflowInvocationSettings() { - return deleteWorkflowInvocationSettings; - } - - /** Returns the object with the settings used for calls to cancelWorkflowInvocation. */ - public UnaryCallSettings - cancelWorkflowInvocationSettings() { - return cancelWorkflowInvocationSettings; - } - - /** Returns the object with the settings used for calls to queryWorkflowInvocationActions. */ - public PagedCallSettings< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsSettings() { - return queryWorkflowInvocationActionsSettings; - } - - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the object with the settings used for calls to getLocation. */ - 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() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDataformStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDataformStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "dataform"; - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - @ObsoleteApi("Use getEndpoint() instead") - public static String getDefaultEndpoint() { - return "dataform.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataform.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DataformStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DataformStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataformStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected DataformStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listRepositoriesSettings = settingsBuilder.listRepositoriesSettings().build(); - getRepositorySettings = settingsBuilder.getRepositorySettings().build(); - createRepositorySettings = settingsBuilder.createRepositorySettings().build(); - updateRepositorySettings = settingsBuilder.updateRepositorySettings().build(); - deleteRepositorySettings = settingsBuilder.deleteRepositorySettings().build(); - fetchRemoteBranchesSettings = settingsBuilder.fetchRemoteBranchesSettings().build(); - listWorkspacesSettings = settingsBuilder.listWorkspacesSettings().build(); - getWorkspaceSettings = settingsBuilder.getWorkspaceSettings().build(); - createWorkspaceSettings = settingsBuilder.createWorkspaceSettings().build(); - deleteWorkspaceSettings = settingsBuilder.deleteWorkspaceSettings().build(); - installNpmPackagesSettings = settingsBuilder.installNpmPackagesSettings().build(); - pullGitCommitsSettings = settingsBuilder.pullGitCommitsSettings().build(); - pushGitCommitsSettings = settingsBuilder.pushGitCommitsSettings().build(); - fetchFileGitStatusesSettings = settingsBuilder.fetchFileGitStatusesSettings().build(); - fetchGitAheadBehindSettings = settingsBuilder.fetchGitAheadBehindSettings().build(); - commitWorkspaceChangesSettings = settingsBuilder.commitWorkspaceChangesSettings().build(); - resetWorkspaceChangesSettings = settingsBuilder.resetWorkspaceChangesSettings().build(); - fetchFileDiffSettings = settingsBuilder.fetchFileDiffSettings().build(); - queryDirectoryContentsSettings = settingsBuilder.queryDirectoryContentsSettings().build(); - makeDirectorySettings = settingsBuilder.makeDirectorySettings().build(); - removeDirectorySettings = settingsBuilder.removeDirectorySettings().build(); - moveDirectorySettings = settingsBuilder.moveDirectorySettings().build(); - readFileSettings = settingsBuilder.readFileSettings().build(); - removeFileSettings = settingsBuilder.removeFileSettings().build(); - moveFileSettings = settingsBuilder.moveFileSettings().build(); - writeFileSettings = settingsBuilder.writeFileSettings().build(); - listCompilationResultsSettings = settingsBuilder.listCompilationResultsSettings().build(); - getCompilationResultSettings = settingsBuilder.getCompilationResultSettings().build(); - createCompilationResultSettings = settingsBuilder.createCompilationResultSettings().build(); - queryCompilationResultActionsSettings = - settingsBuilder.queryCompilationResultActionsSettings().build(); - listWorkflowInvocationsSettings = settingsBuilder.listWorkflowInvocationsSettings().build(); - getWorkflowInvocationSettings = settingsBuilder.getWorkflowInvocationSettings().build(); - createWorkflowInvocationSettings = settingsBuilder.createWorkflowInvocationSettings().build(); - deleteWorkflowInvocationSettings = settingsBuilder.deleteWorkflowInvocationSettings().build(); - cancelWorkflowInvocationSettings = settingsBuilder.cancelWorkflowInvocationSettings().build(); - queryWorkflowInvocationActionsSettings = - 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. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - listRepositoriesSettings; - private final UnaryCallSettings.Builder getRepositorySettings; - private final UnaryCallSettings.Builder - createRepositorySettings; - private final UnaryCallSettings.Builder - updateRepositorySettings; - private final UnaryCallSettings.Builder - deleteRepositorySettings; - private final UnaryCallSettings.Builder - fetchRemoteBranchesSettings; - private final PagedCallSettings.Builder< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - listWorkspacesSettings; - private final UnaryCallSettings.Builder getWorkspaceSettings; - private final UnaryCallSettings.Builder - createWorkspaceSettings; - private final UnaryCallSettings.Builder deleteWorkspaceSettings; - private final UnaryCallSettings.Builder - installNpmPackagesSettings; - private final UnaryCallSettings.Builder pullGitCommitsSettings; - private final UnaryCallSettings.Builder pushGitCommitsSettings; - private final UnaryCallSettings.Builder< - FetchFileGitStatusesRequest, FetchFileGitStatusesResponse> - fetchFileGitStatusesSettings; - private final UnaryCallSettings.Builder - fetchGitAheadBehindSettings; - private final UnaryCallSettings.Builder - commitWorkspaceChangesSettings; - private final UnaryCallSettings.Builder - resetWorkspaceChangesSettings; - private final UnaryCallSettings.Builder - fetchFileDiffSettings; - private final PagedCallSettings.Builder< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - queryDirectoryContentsSettings; - private final UnaryCallSettings.Builder - makeDirectorySettings; - private final UnaryCallSettings.Builder removeDirectorySettings; - private final UnaryCallSettings.Builder - moveDirectorySettings; - private final UnaryCallSettings.Builder readFileSettings; - private final UnaryCallSettings.Builder removeFileSettings; - private final UnaryCallSettings.Builder moveFileSettings; - private final UnaryCallSettings.Builder writeFileSettings; - private final PagedCallSettings.Builder< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - listCompilationResultsSettings; - private final UnaryCallSettings.Builder - getCompilationResultSettings; - private final UnaryCallSettings.Builder - createCompilationResultSettings; - private final PagedCallSettings.Builder< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsSettings; - private final PagedCallSettings.Builder< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - listWorkflowInvocationsSettings; - private final UnaryCallSettings.Builder - getWorkflowInvocationSettings; - private final UnaryCallSettings.Builder - createWorkflowInvocationSettings; - private final UnaryCallSettings.Builder - deleteWorkflowInvocationSettings; - private final UnaryCallSettings.Builder - cancelWorkflowInvocationSettings; - private final PagedCallSettings.Builder< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsSettings; - private final PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - 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; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listRepositoriesSettings = PagedCallSettings.newBuilder(LIST_REPOSITORIES_PAGE_STR_FACT); - getRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - fetchRemoteBranchesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listWorkspacesSettings = PagedCallSettings.newBuilder(LIST_WORKSPACES_PAGE_STR_FACT); - getWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - installNpmPackagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - pullGitCommitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - pushGitCommitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - fetchFileGitStatusesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - fetchGitAheadBehindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - commitWorkspaceChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resetWorkspaceChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - fetchFileDiffSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - queryDirectoryContentsSettings = - PagedCallSettings.newBuilder(QUERY_DIRECTORY_CONTENTS_PAGE_STR_FACT); - makeDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - removeDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - moveDirectorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - readFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - removeFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - moveFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - writeFileSettings = 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); - listWorkflowInvocationsSettings = - PagedCallSettings.newBuilder(LIST_WORKFLOW_INVOCATIONS_PAGE_STR_FACT); - getWorkflowInvocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createWorkflowInvocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteWorkflowInvocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - cancelWorkflowInvocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - queryWorkflowInvocationActionsSettings = - 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( - listRepositoriesSettings, - getRepositorySettings, - createRepositorySettings, - updateRepositorySettings, - deleteRepositorySettings, - fetchRemoteBranchesSettings, - listWorkspacesSettings, - getWorkspaceSettings, - createWorkspaceSettings, - deleteWorkspaceSettings, - installNpmPackagesSettings, - pullGitCommitsSettings, - pushGitCommitsSettings, - fetchFileGitStatusesSettings, - fetchGitAheadBehindSettings, - commitWorkspaceChangesSettings, - resetWorkspaceChangesSettings, - fetchFileDiffSettings, - queryDirectoryContentsSettings, - makeDirectorySettings, - removeDirectorySettings, - moveDirectorySettings, - readFileSettings, - removeFileSettings, - moveFileSettings, - writeFileSettings, - listCompilationResultsSettings, - getCompilationResultSettings, - createCompilationResultSettings, - queryCompilationResultActionsSettings, - listWorkflowInvocationsSettings, - getWorkflowInvocationSettings, - createWorkflowInvocationSettings, - deleteWorkflowInvocationSettings, - cancelWorkflowInvocationSettings, - queryWorkflowInvocationActionsSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings); - initDefaults(this); - } - - protected Builder(DataformStubSettings settings) { - super(settings); - - listRepositoriesSettings = settings.listRepositoriesSettings.toBuilder(); - getRepositorySettings = settings.getRepositorySettings.toBuilder(); - createRepositorySettings = settings.createRepositorySettings.toBuilder(); - updateRepositorySettings = settings.updateRepositorySettings.toBuilder(); - deleteRepositorySettings = settings.deleteRepositorySettings.toBuilder(); - fetchRemoteBranchesSettings = settings.fetchRemoteBranchesSettings.toBuilder(); - listWorkspacesSettings = settings.listWorkspacesSettings.toBuilder(); - getWorkspaceSettings = settings.getWorkspaceSettings.toBuilder(); - createWorkspaceSettings = settings.createWorkspaceSettings.toBuilder(); - deleteWorkspaceSettings = settings.deleteWorkspaceSettings.toBuilder(); - installNpmPackagesSettings = settings.installNpmPackagesSettings.toBuilder(); - pullGitCommitsSettings = settings.pullGitCommitsSettings.toBuilder(); - pushGitCommitsSettings = settings.pushGitCommitsSettings.toBuilder(); - fetchFileGitStatusesSettings = settings.fetchFileGitStatusesSettings.toBuilder(); - fetchGitAheadBehindSettings = settings.fetchGitAheadBehindSettings.toBuilder(); - commitWorkspaceChangesSettings = settings.commitWorkspaceChangesSettings.toBuilder(); - resetWorkspaceChangesSettings = settings.resetWorkspaceChangesSettings.toBuilder(); - fetchFileDiffSettings = settings.fetchFileDiffSettings.toBuilder(); - queryDirectoryContentsSettings = settings.queryDirectoryContentsSettings.toBuilder(); - makeDirectorySettings = settings.makeDirectorySettings.toBuilder(); - removeDirectorySettings = settings.removeDirectorySettings.toBuilder(); - moveDirectorySettings = settings.moveDirectorySettings.toBuilder(); - readFileSettings = settings.readFileSettings.toBuilder(); - removeFileSettings = settings.removeFileSettings.toBuilder(); - moveFileSettings = settings.moveFileSettings.toBuilder(); - writeFileSettings = settings.writeFileSettings.toBuilder(); - listCompilationResultsSettings = settings.listCompilationResultsSettings.toBuilder(); - getCompilationResultSettings = settings.getCompilationResultSettings.toBuilder(); - createCompilationResultSettings = settings.createCompilationResultSettings.toBuilder(); - queryCompilationResultActionsSettings = - settings.queryCompilationResultActionsSettings.toBuilder(); - listWorkflowInvocationsSettings = settings.listWorkflowInvocationsSettings.toBuilder(); - getWorkflowInvocationSettings = settings.getWorkflowInvocationSettings.toBuilder(); - createWorkflowInvocationSettings = settings.createWorkflowInvocationSettings.toBuilder(); - deleteWorkflowInvocationSettings = settings.deleteWorkflowInvocationSettings.toBuilder(); - cancelWorkflowInvocationSettings = settings.cancelWorkflowInvocationSettings.toBuilder(); - queryWorkflowInvocationActionsSettings = - 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( - listRepositoriesSettings, - getRepositorySettings, - createRepositorySettings, - updateRepositorySettings, - deleteRepositorySettings, - fetchRemoteBranchesSettings, - listWorkspacesSettings, - getWorkspaceSettings, - createWorkspaceSettings, - deleteWorkspaceSettings, - installNpmPackagesSettings, - pullGitCommitsSettings, - pushGitCommitsSettings, - fetchFileGitStatusesSettings, - fetchGitAheadBehindSettings, - commitWorkspaceChangesSettings, - resetWorkspaceChangesSettings, - fetchFileDiffSettings, - queryDirectoryContentsSettings, - makeDirectorySettings, - removeDirectorySettings, - moveDirectorySettings, - readFileSettings, - removeFileSettings, - moveFileSettings, - writeFileSettings, - listCompilationResultsSettings, - getCompilationResultSettings, - createCompilationResultSettings, - queryCompilationResultActionsSettings, - listWorkflowInvocationsSettings, - getWorkflowInvocationSettings, - createWorkflowInvocationSettings, - deleteWorkflowInvocationSettings, - cancelWorkflowInvocationSettings, - queryWorkflowInvocationActionsSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listRepositoriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getRepositorySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createRepositorySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateRepositorySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteRepositorySettings() - .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")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listWorkspacesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getWorkspaceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createWorkspaceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteWorkspaceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .installNpmPackagesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .pullGitCommitsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .pushGitCommitsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .fetchFileGitStatusesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .fetchGitAheadBehindSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .commitWorkspaceChangesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .resetWorkspaceChangesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .fetchFileDiffSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .queryDirectoryContentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .makeDirectorySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .removeDirectorySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .moveDirectorySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .readFileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .removeFileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .moveFileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .writeFileSettings() - .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")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getCompilationResultSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createCompilationResultSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .queryCompilationResultActionsSettings() - .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")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getWorkflowInvocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createWorkflowInvocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteWorkflowInvocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .cancelWorkflowInvocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .queryWorkflowInvocationActionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getLocationSettings() - .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; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listRepositories. */ - public PagedCallSettings.Builder< - ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> - listRepositoriesSettings() { - return listRepositoriesSettings; - } - - /** Returns the builder for the settings used for calls to getRepository. */ - public UnaryCallSettings.Builder getRepositorySettings() { - return getRepositorySettings; - } - - /** Returns the builder for the settings used for calls to createRepository. */ - public UnaryCallSettings.Builder - createRepositorySettings() { - return createRepositorySettings; - } - - /** Returns the builder for the settings used for calls to updateRepository. */ - public UnaryCallSettings.Builder - updateRepositorySettings() { - return updateRepositorySettings; - } - - /** Returns the builder for the settings used for calls to deleteRepository. */ - public UnaryCallSettings.Builder deleteRepositorySettings() { - return deleteRepositorySettings; - } - - /** Returns the builder for the settings used for calls to fetchRemoteBranches. */ - public UnaryCallSettings.Builder - fetchRemoteBranchesSettings() { - return fetchRemoteBranchesSettings; - } - - /** Returns the builder for the settings used for calls to listWorkspaces. */ - public PagedCallSettings.Builder< - ListWorkspacesRequest, ListWorkspacesResponse, ListWorkspacesPagedResponse> - listWorkspacesSettings() { - return listWorkspacesSettings; - } - - /** Returns the builder for the settings used for calls to getWorkspace. */ - public UnaryCallSettings.Builder getWorkspaceSettings() { - return getWorkspaceSettings; - } - - /** Returns the builder for the settings used for calls to createWorkspace. */ - public UnaryCallSettings.Builder createWorkspaceSettings() { - return createWorkspaceSettings; - } - - /** Returns the builder for the settings used for calls to deleteWorkspace. */ - public UnaryCallSettings.Builder deleteWorkspaceSettings() { - return deleteWorkspaceSettings; - } - - /** Returns the builder for the settings used for calls to installNpmPackages. */ - public UnaryCallSettings.Builder - installNpmPackagesSettings() { - return installNpmPackagesSettings; - } - - /** Returns the builder for the settings used for calls to pullGitCommits. */ - public UnaryCallSettings.Builder pullGitCommitsSettings() { - return pullGitCommitsSettings; - } - - /** Returns the builder for the settings used for calls to pushGitCommits. */ - public UnaryCallSettings.Builder pushGitCommitsSettings() { - return pushGitCommitsSettings; - } - - /** Returns the builder for the settings used for calls to fetchFileGitStatuses. */ - public UnaryCallSettings.Builder - fetchFileGitStatusesSettings() { - return fetchFileGitStatusesSettings; - } - - /** Returns the builder for the settings used for calls to fetchGitAheadBehind. */ - public UnaryCallSettings.Builder - fetchGitAheadBehindSettings() { - return fetchGitAheadBehindSettings; - } - - /** Returns the builder for the settings used for calls to commitWorkspaceChanges. */ - public UnaryCallSettings.Builder - commitWorkspaceChangesSettings() { - return commitWorkspaceChangesSettings; - } - - /** Returns the builder for the settings used for calls to resetWorkspaceChanges. */ - public UnaryCallSettings.Builder - resetWorkspaceChangesSettings() { - return resetWorkspaceChangesSettings; - } - - /** Returns the builder for the settings used for calls to fetchFileDiff. */ - public UnaryCallSettings.Builder - fetchFileDiffSettings() { - return fetchFileDiffSettings; - } - - /** Returns the builder for the settings used for calls to queryDirectoryContents. */ - public PagedCallSettings.Builder< - QueryDirectoryContentsRequest, - QueryDirectoryContentsResponse, - QueryDirectoryContentsPagedResponse> - queryDirectoryContentsSettings() { - return queryDirectoryContentsSettings; - } - - /** Returns the builder for the settings used for calls to makeDirectory. */ - public UnaryCallSettings.Builder - makeDirectorySettings() { - return makeDirectorySettings; - } - - /** Returns the builder for the settings used for calls to removeDirectory. */ - public UnaryCallSettings.Builder removeDirectorySettings() { - return removeDirectorySettings; - } - - /** Returns the builder for the settings used for calls to moveDirectory. */ - public UnaryCallSettings.Builder - moveDirectorySettings() { - return moveDirectorySettings; - } - - /** Returns the builder for the settings used for calls to readFile. */ - public UnaryCallSettings.Builder readFileSettings() { - return readFileSettings; - } - - /** Returns the builder for the settings used for calls to removeFile. */ - public UnaryCallSettings.Builder removeFileSettings() { - return removeFileSettings; - } - - /** Returns the builder for the settings used for calls to moveFile. */ - public UnaryCallSettings.Builder moveFileSettings() { - return moveFileSettings; - } - - /** Returns the builder for the settings used for calls to writeFile. */ - public UnaryCallSettings.Builder writeFileSettings() { - return writeFileSettings; - } - - /** Returns the builder for the settings used for calls to listCompilationResults. */ - public PagedCallSettings.Builder< - ListCompilationResultsRequest, - ListCompilationResultsResponse, - ListCompilationResultsPagedResponse> - listCompilationResultsSettings() { - return listCompilationResultsSettings; - } - - /** Returns the builder for the settings used for calls to getCompilationResult. */ - public UnaryCallSettings.Builder - getCompilationResultSettings() { - return getCompilationResultSettings; - } - - /** Returns the builder for the settings used for calls to createCompilationResult. */ - public UnaryCallSettings.Builder - createCompilationResultSettings() { - return createCompilationResultSettings; - } - - /** Returns the builder for the settings used for calls to queryCompilationResultActions. */ - public PagedCallSettings.Builder< - QueryCompilationResultActionsRequest, - QueryCompilationResultActionsResponse, - QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsSettings() { - return queryCompilationResultActionsSettings; - } - - /** Returns the builder for the settings used for calls to listWorkflowInvocations. */ - public PagedCallSettings.Builder< - ListWorkflowInvocationsRequest, - ListWorkflowInvocationsResponse, - ListWorkflowInvocationsPagedResponse> - listWorkflowInvocationsSettings() { - return listWorkflowInvocationsSettings; - } - - /** Returns the builder for the settings used for calls to getWorkflowInvocation. */ - public UnaryCallSettings.Builder - getWorkflowInvocationSettings() { - return getWorkflowInvocationSettings; - } - - /** Returns the builder for the settings used for calls to createWorkflowInvocation. */ - public UnaryCallSettings.Builder - createWorkflowInvocationSettings() { - return createWorkflowInvocationSettings; - } - - /** Returns the builder for the settings used for calls to deleteWorkflowInvocation. */ - public UnaryCallSettings.Builder - deleteWorkflowInvocationSettings() { - return deleteWorkflowInvocationSettings; - } - - /** Returns the builder for the settings used for calls to cancelWorkflowInvocation. */ - public UnaryCallSettings.Builder - cancelWorkflowInvocationSettings() { - return cancelWorkflowInvocationSettings; - } - - /** Returns the builder for the settings used for calls to queryWorkflowInvocationActions. */ - public PagedCallSettings.Builder< - QueryWorkflowInvocationActionsRequest, - QueryWorkflowInvocationActionsResponse, - QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsSettings() { - return queryWorkflowInvocationActionsSettings; - } - - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - 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/v1alpha2/stub/GrpcDataformCallableFactory.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/GrpcDataformCallableFactory.java deleted file mode 100644 index 5c533ac147e5..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/GrpcDataformCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the Dataform service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataformCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/GrpcDataformStub.java deleted file mode 100644 index a70dd0ef7011..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/GrpcDataformStub.java +++ /dev/null @@ -1,1610 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2.stub; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryWorkflowInvocationActionsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.CompilationResult; -import com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse; -import com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.GetRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveFileRequest; -import com.google.cloud.dataform.v1alpha2.MoveFileResponse; -import com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse; -import com.google.cloud.dataform.v1alpha2.ReadFileRequest; -import com.google.cloud.dataform.v1alpha2.ReadFileResponse; -import com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.RemoveFileRequest; -import com.google.cloud.dataform.v1alpha2.Repository; -import com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.WorkflowInvocation; -import com.google.cloud.dataform.v1alpha2.Workspace; -import com.google.cloud.dataform.v1alpha2.WriteFileRequest; -import com.google.cloud.dataform.v1alpha2.WriteFileResponse; -import com.google.cloud.location.GetLocationRequest; -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; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the Dataform service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataformStub extends DataformStub { - private static final MethodDescriptor - listRepositoriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListRepositories") - .setRequestMarshaller( - ProtoUtils.marshaller(ListRepositoriesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListRepositoriesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getRepositoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetRepository") - .setRequestMarshaller( - ProtoUtils.marshaller(GetRepositoryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Repository.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createRepositoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CreateRepository") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateRepositoryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Repository.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateRepositoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/UpdateRepository") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateRepositoryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Repository.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteRepositoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/DeleteRepository") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteRepositoryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - fetchRemoteBranchesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchRemoteBranches") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchRemoteBranchesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchRemoteBranchesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listWorkspacesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListWorkspaces") - .setRequestMarshaller( - ProtoUtils.marshaller(ListWorkspacesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListWorkspacesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getWorkspaceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetWorkspace") - .setRequestMarshaller(ProtoUtils.marshaller(GetWorkspaceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Workspace.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createWorkspaceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CreateWorkspace") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWorkspaceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Workspace.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteWorkspaceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/DeleteWorkspace") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteWorkspaceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - installNpmPackagesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/InstallNpmPackages") - .setRequestMarshaller( - ProtoUtils.marshaller(InstallNpmPackagesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(InstallNpmPackagesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - pullGitCommitsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/PullGitCommits") - .setRequestMarshaller( - ProtoUtils.marshaller(PullGitCommitsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - pushGitCommitsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/PushGitCommits") - .setRequestMarshaller( - ProtoUtils.marshaller(PushGitCommitsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - fetchFileGitStatusesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchFileGitStatuses") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchFileGitStatusesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchFileGitStatusesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - fetchGitAheadBehindMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchGitAheadBehind") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchGitAheadBehindRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchGitAheadBehindResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - commitWorkspaceChangesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CommitWorkspaceChanges") - .setRequestMarshaller( - ProtoUtils.marshaller(CommitWorkspaceChangesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - resetWorkspaceChangesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ResetWorkspaceChanges") - .setRequestMarshaller( - ProtoUtils.marshaller(ResetWorkspaceChangesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - fetchFileDiffMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchFileDiff") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchFileDiffRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchFileDiffResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - QueryDirectoryContentsRequest, QueryDirectoryContentsResponse> - queryDirectoryContentsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/QueryDirectoryContents") - .setRequestMarshaller( - ProtoUtils.marshaller(QueryDirectoryContentsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(QueryDirectoryContentsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - makeDirectoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/MakeDirectory") - .setRequestMarshaller( - ProtoUtils.marshaller(MakeDirectoryRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MakeDirectoryResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - removeDirectoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/RemoveDirectory") - .setRequestMarshaller( - ProtoUtils.marshaller(RemoveDirectoryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - moveDirectoryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/MoveDirectory") - .setRequestMarshaller( - ProtoUtils.marshaller(MoveDirectoryRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MoveDirectoryResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - readFileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ReadFile") - .setRequestMarshaller(ProtoUtils.marshaller(ReadFileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ReadFileResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor removeFileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/RemoveFile") - .setRequestMarshaller(ProtoUtils.marshaller(RemoveFileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - moveFileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/MoveFile") - .setRequestMarshaller(ProtoUtils.marshaller(MoveFileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(MoveFileResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - writeFileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/WriteFile") - .setRequestMarshaller(ProtoUtils.marshaller(WriteFileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WriteFileResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListCompilationResultsRequest, ListCompilationResultsResponse> - listCompilationResultsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListCompilationResults") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCompilationResultsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCompilationResultsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getCompilationResultMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetCompilationResult") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCompilationResultRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CompilationResult.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createCompilationResultMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CreateCompilationResult") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCompilationResultRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CompilationResult.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataform.v1alpha2.Dataform/QueryCompilationResultActions") - .setRequestMarshaller( - ProtoUtils.marshaller(QueryCompilationResultActionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(QueryCompilationResultActionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse> - listWorkflowInvocationsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListWorkflowInvocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListWorkflowInvocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListWorkflowInvocationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getWorkflowInvocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetWorkflowInvocation") - .setRequestMarshaller( - ProtoUtils.marshaller(GetWorkflowInvocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowInvocation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createWorkflowInvocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CreateWorkflowInvocation") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWorkflowInvocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowInvocation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteWorkflowInvocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/DeleteWorkflowInvocation") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteWorkflowInvocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - cancelWorkflowInvocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CancelWorkflowInvocation") - .setRequestMarshaller( - ProtoUtils.marshaller(CancelWorkflowInvocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataform.v1alpha2.Dataform/QueryWorkflowInvocationActions") - .setRequestMarshaller( - ProtoUtils.marshaller(QueryWorkflowInvocationActionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - QueryWorkflowInvocationActionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getLocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) - .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 - listRepositoriesPagedCallable; - private final UnaryCallable getRepositoryCallable; - private final UnaryCallable createRepositoryCallable; - private final UnaryCallable updateRepositoryCallable; - private final UnaryCallable deleteRepositoryCallable; - private final UnaryCallable - fetchRemoteBranchesCallable; - private final UnaryCallable listWorkspacesCallable; - private final UnaryCallable - listWorkspacesPagedCallable; - private final UnaryCallable getWorkspaceCallable; - private final UnaryCallable createWorkspaceCallable; - private final UnaryCallable deleteWorkspaceCallable; - private final UnaryCallable - installNpmPackagesCallable; - private final UnaryCallable pullGitCommitsCallable; - private final UnaryCallable pushGitCommitsCallable; - private final UnaryCallable - fetchFileGitStatusesCallable; - private final UnaryCallable - fetchGitAheadBehindCallable; - private final UnaryCallable commitWorkspaceChangesCallable; - private final UnaryCallable resetWorkspaceChangesCallable; - private final UnaryCallable fetchFileDiffCallable; - private final UnaryCallable - queryDirectoryContentsCallable; - private final UnaryCallable - queryDirectoryContentsPagedCallable; - private final UnaryCallable makeDirectoryCallable; - private final UnaryCallable removeDirectoryCallable; - private final UnaryCallable moveDirectoryCallable; - private final UnaryCallable readFileCallable; - private final UnaryCallable removeFileCallable; - private final UnaryCallable moveFileCallable; - private final UnaryCallable writeFileCallable; - private final UnaryCallable - listCompilationResultsCallable; - private final UnaryCallable - listCompilationResultsPagedCallable; - private final UnaryCallable - getCompilationResultCallable; - private final UnaryCallable - createCompilationResultCallable; - private final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsCallable; - private final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable; - private final UnaryCallable - listWorkflowInvocationsCallable; - private final UnaryCallable - listWorkflowInvocationsPagedCallable; - private final UnaryCallable - getWorkflowInvocationCallable; - private final UnaryCallable - createWorkflowInvocationCallable; - private final UnaryCallable - deleteWorkflowInvocationCallable; - private final UnaryCallable - cancelWorkflowInvocationCallable; - private final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable; - private final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable; - private final UnaryCallable listLocationsCallable; - 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; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDataformStub create(DataformStubSettings settings) throws IOException { - return new GrpcDataformStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDataformStub create(ClientContext clientContext) throws IOException { - return new GrpcDataformStub(DataformStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDataformStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDataformStub( - DataformStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDataformStub, using the given settings. This is protected so that - * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected GrpcDataformStub(DataformStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDataformCallableFactory()); - } - - /** - * Constructs an instance of GrpcDataformStub, using the given settings. This is protected so that - * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected GrpcDataformStub( - DataformStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listRepositoriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRepositoriesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getRepositoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRepositoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createRepositoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createRepositoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateRepositoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateRepositoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("repository.name", String.valueOf(request.getRepository().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteRepositoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRepositoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - fetchRemoteBranchesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(fetchRemoteBranchesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listWorkspacesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listWorkspacesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getWorkspaceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWorkspaceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createWorkspaceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWorkspaceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteWorkspaceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkspaceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - installNpmPackagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(installNpmPackagesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings pullGitCommitsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(pullGitCommitsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings pushGitCommitsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(pushGitCommitsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - fetchFileGitStatusesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(fetchFileGitStatusesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - fetchGitAheadBehindTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(fetchGitAheadBehindMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings commitWorkspaceChangesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(commitWorkspaceChangesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings resetWorkspaceChangesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resetWorkspaceChangesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings fetchFileDiffTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(fetchFileDiffMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings - queryDirectoryContentsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(queryDirectoryContentsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings makeDirectoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(makeDirectoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings removeDirectoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(removeDirectoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings moveDirectoryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(moveDirectoryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings readFileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(readFileMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings removeFileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(removeFileMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings moveFileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(moveFileMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings writeFileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(writeFileMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listCompilationResultsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listCompilationResultsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getCompilationResultTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCompilationResultMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createCompilationResultTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCompilationResultMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - queryCompilationResultActionsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(queryCompilationResultActionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listWorkflowInvocationsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listWorkflowInvocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getWorkflowInvocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowInvocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createWorkflowInvocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowInvocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteWorkflowInvocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkflowInvocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - cancelWorkflowInvocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelWorkflowInvocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - queryWorkflowInvocationActionsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(queryWorkflowInvocationActionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - 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( - listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); - this.listRepositoriesPagedCallable = - callableFactory.createPagedCallable( - listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); - this.getRepositoryCallable = - callableFactory.createUnaryCallable( - getRepositoryTransportSettings, settings.getRepositorySettings(), clientContext); - this.createRepositoryCallable = - callableFactory.createUnaryCallable( - createRepositoryTransportSettings, settings.createRepositorySettings(), clientContext); - this.updateRepositoryCallable = - callableFactory.createUnaryCallable( - updateRepositoryTransportSettings, settings.updateRepositorySettings(), clientContext); - this.deleteRepositoryCallable = - callableFactory.createUnaryCallable( - deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); - this.fetchRemoteBranchesCallable = - callableFactory.createUnaryCallable( - fetchRemoteBranchesTransportSettings, - settings.fetchRemoteBranchesSettings(), - clientContext); - this.listWorkspacesCallable = - callableFactory.createUnaryCallable( - listWorkspacesTransportSettings, settings.listWorkspacesSettings(), clientContext); - this.listWorkspacesPagedCallable = - callableFactory.createPagedCallable( - listWorkspacesTransportSettings, settings.listWorkspacesSettings(), clientContext); - this.getWorkspaceCallable = - callableFactory.createUnaryCallable( - getWorkspaceTransportSettings, settings.getWorkspaceSettings(), clientContext); - this.createWorkspaceCallable = - callableFactory.createUnaryCallable( - createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); - this.deleteWorkspaceCallable = - callableFactory.createUnaryCallable( - deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); - this.installNpmPackagesCallable = - callableFactory.createUnaryCallable( - installNpmPackagesTransportSettings, - settings.installNpmPackagesSettings(), - clientContext); - this.pullGitCommitsCallable = - callableFactory.createUnaryCallable( - pullGitCommitsTransportSettings, settings.pullGitCommitsSettings(), clientContext); - this.pushGitCommitsCallable = - callableFactory.createUnaryCallable( - pushGitCommitsTransportSettings, settings.pushGitCommitsSettings(), clientContext); - this.fetchFileGitStatusesCallable = - callableFactory.createUnaryCallable( - fetchFileGitStatusesTransportSettings, - settings.fetchFileGitStatusesSettings(), - clientContext); - this.fetchGitAheadBehindCallable = - callableFactory.createUnaryCallable( - fetchGitAheadBehindTransportSettings, - settings.fetchGitAheadBehindSettings(), - clientContext); - this.commitWorkspaceChangesCallable = - callableFactory.createUnaryCallable( - commitWorkspaceChangesTransportSettings, - settings.commitWorkspaceChangesSettings(), - clientContext); - this.resetWorkspaceChangesCallable = - callableFactory.createUnaryCallable( - resetWorkspaceChangesTransportSettings, - settings.resetWorkspaceChangesSettings(), - clientContext); - this.fetchFileDiffCallable = - callableFactory.createUnaryCallable( - fetchFileDiffTransportSettings, settings.fetchFileDiffSettings(), clientContext); - this.queryDirectoryContentsCallable = - callableFactory.createUnaryCallable( - queryDirectoryContentsTransportSettings, - settings.queryDirectoryContentsSettings(), - clientContext); - this.queryDirectoryContentsPagedCallable = - callableFactory.createPagedCallable( - queryDirectoryContentsTransportSettings, - settings.queryDirectoryContentsSettings(), - clientContext); - this.makeDirectoryCallable = - callableFactory.createUnaryCallable( - makeDirectoryTransportSettings, settings.makeDirectorySettings(), clientContext); - this.removeDirectoryCallable = - callableFactory.createUnaryCallable( - removeDirectoryTransportSettings, settings.removeDirectorySettings(), clientContext); - this.moveDirectoryCallable = - callableFactory.createUnaryCallable( - moveDirectoryTransportSettings, settings.moveDirectorySettings(), clientContext); - this.readFileCallable = - callableFactory.createUnaryCallable( - readFileTransportSettings, settings.readFileSettings(), clientContext); - this.removeFileCallable = - callableFactory.createUnaryCallable( - removeFileTransportSettings, settings.removeFileSettings(), clientContext); - this.moveFileCallable = - callableFactory.createUnaryCallable( - moveFileTransportSettings, settings.moveFileSettings(), clientContext); - this.writeFileCallable = - callableFactory.createUnaryCallable( - writeFileTransportSettings, settings.writeFileSettings(), clientContext); - this.listCompilationResultsCallable = - callableFactory.createUnaryCallable( - listCompilationResultsTransportSettings, - settings.listCompilationResultsSettings(), - clientContext); - this.listCompilationResultsPagedCallable = - callableFactory.createPagedCallable( - listCompilationResultsTransportSettings, - settings.listCompilationResultsSettings(), - clientContext); - this.getCompilationResultCallable = - callableFactory.createUnaryCallable( - getCompilationResultTransportSettings, - settings.getCompilationResultSettings(), - clientContext); - this.createCompilationResultCallable = - callableFactory.createUnaryCallable( - createCompilationResultTransportSettings, - settings.createCompilationResultSettings(), - clientContext); - this.queryCompilationResultActionsCallable = - callableFactory.createUnaryCallable( - queryCompilationResultActionsTransportSettings, - settings.queryCompilationResultActionsSettings(), - clientContext); - this.queryCompilationResultActionsPagedCallable = - callableFactory.createPagedCallable( - queryCompilationResultActionsTransportSettings, - settings.queryCompilationResultActionsSettings(), - clientContext); - this.listWorkflowInvocationsCallable = - callableFactory.createUnaryCallable( - listWorkflowInvocationsTransportSettings, - settings.listWorkflowInvocationsSettings(), - clientContext); - this.listWorkflowInvocationsPagedCallable = - callableFactory.createPagedCallable( - listWorkflowInvocationsTransportSettings, - settings.listWorkflowInvocationsSettings(), - clientContext); - this.getWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - getWorkflowInvocationTransportSettings, - settings.getWorkflowInvocationSettings(), - clientContext); - this.createWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - createWorkflowInvocationTransportSettings, - settings.createWorkflowInvocationSettings(), - clientContext); - this.deleteWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - deleteWorkflowInvocationTransportSettings, - settings.deleteWorkflowInvocationSettings(), - clientContext); - this.cancelWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - cancelWorkflowInvocationTransportSettings, - settings.cancelWorkflowInvocationSettings(), - clientContext); - this.queryWorkflowInvocationActionsCallable = - callableFactory.createUnaryCallable( - queryWorkflowInvocationActionsTransportSettings, - settings.queryWorkflowInvocationActionsSettings(), - clientContext); - this.queryWorkflowInvocationActionsPagedCallable = - callableFactory.createPagedCallable( - queryWorkflowInvocationActionsTransportSettings, - settings.queryWorkflowInvocationActionsSettings(), - clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - 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()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - listRepositoriesCallable() { - return listRepositoriesCallable; - } - - @Override - public UnaryCallable - listRepositoriesPagedCallable() { - return listRepositoriesPagedCallable; - } - - @Override - public UnaryCallable getRepositoryCallable() { - return getRepositoryCallable; - } - - @Override - public UnaryCallable createRepositoryCallable() { - return createRepositoryCallable; - } - - @Override - public UnaryCallable updateRepositoryCallable() { - return updateRepositoryCallable; - } - - @Override - public UnaryCallable deleteRepositoryCallable() { - return deleteRepositoryCallable; - } - - @Override - public UnaryCallable - fetchRemoteBranchesCallable() { - return fetchRemoteBranchesCallable; - } - - @Override - public UnaryCallable listWorkspacesCallable() { - return listWorkspacesCallable; - } - - @Override - public UnaryCallable - listWorkspacesPagedCallable() { - return listWorkspacesPagedCallable; - } - - @Override - public UnaryCallable getWorkspaceCallable() { - return getWorkspaceCallable; - } - - @Override - public UnaryCallable createWorkspaceCallable() { - return createWorkspaceCallable; - } - - @Override - public UnaryCallable deleteWorkspaceCallable() { - return deleteWorkspaceCallable; - } - - @Override - public UnaryCallable - installNpmPackagesCallable() { - return installNpmPackagesCallable; - } - - @Override - public UnaryCallable pullGitCommitsCallable() { - return pullGitCommitsCallable; - } - - @Override - public UnaryCallable pushGitCommitsCallable() { - return pushGitCommitsCallable; - } - - @Override - public UnaryCallable - fetchFileGitStatusesCallable() { - return fetchFileGitStatusesCallable; - } - - @Override - public UnaryCallable - fetchGitAheadBehindCallable() { - return fetchGitAheadBehindCallable; - } - - @Override - public UnaryCallable commitWorkspaceChangesCallable() { - return commitWorkspaceChangesCallable; - } - - @Override - public UnaryCallable resetWorkspaceChangesCallable() { - return resetWorkspaceChangesCallable; - } - - @Override - public UnaryCallable fetchFileDiffCallable() { - return fetchFileDiffCallable; - } - - @Override - public UnaryCallable - queryDirectoryContentsCallable() { - return queryDirectoryContentsCallable; - } - - @Override - public UnaryCallable - queryDirectoryContentsPagedCallable() { - return queryDirectoryContentsPagedCallable; - } - - @Override - public UnaryCallable makeDirectoryCallable() { - return makeDirectoryCallable; - } - - @Override - public UnaryCallable removeDirectoryCallable() { - return removeDirectoryCallable; - } - - @Override - public UnaryCallable moveDirectoryCallable() { - return moveDirectoryCallable; - } - - @Override - public UnaryCallable readFileCallable() { - return readFileCallable; - } - - @Override - public UnaryCallable removeFileCallable() { - return removeFileCallable; - } - - @Override - public UnaryCallable moveFileCallable() { - return moveFileCallable; - } - - @Override - public UnaryCallable writeFileCallable() { - return writeFileCallable; - } - - @Override - public UnaryCallable - listCompilationResultsCallable() { - return listCompilationResultsCallable; - } - - @Override - public UnaryCallable - listCompilationResultsPagedCallable() { - return listCompilationResultsPagedCallable; - } - - @Override - public UnaryCallable - getCompilationResultCallable() { - return getCompilationResultCallable; - } - - @Override - public UnaryCallable - createCompilationResultCallable() { - return createCompilationResultCallable; - } - - @Override - public UnaryCallable - queryCompilationResultActionsCallable() { - return queryCompilationResultActionsCallable; - } - - @Override - public UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - return queryCompilationResultActionsPagedCallable; - } - - @Override - public UnaryCallable - listWorkflowInvocationsCallable() { - return listWorkflowInvocationsCallable; - } - - @Override - public UnaryCallable - listWorkflowInvocationsPagedCallable() { - return listWorkflowInvocationsPagedCallable; - } - - @Override - public UnaryCallable - getWorkflowInvocationCallable() { - return getWorkflowInvocationCallable; - } - - @Override - public UnaryCallable - createWorkflowInvocationCallable() { - return createWorkflowInvocationCallable; - } - - @Override - public UnaryCallable deleteWorkflowInvocationCallable() { - return deleteWorkflowInvocationCallable; - } - - @Override - public UnaryCallable cancelWorkflowInvocationCallable() { - return cancelWorkflowInvocationCallable; - } - - @Override - public UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable() { - return queryWorkflowInvocationActionsCallable; - } - - @Override - public UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable() { - return queryWorkflowInvocationActionsPagedCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; - } - - @Override - 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 { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformCallableFactory.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformCallableFactory.java deleted file mode 100644 index def18572c1e5..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformCallableFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the Dataform service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataformCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java deleted file mode 100644 index a02e2a0c0f91..000000000000 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java +++ /dev/null @@ -1,2795 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2.stub; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryWorkflowInvocationActionsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.CompilationResult; -import com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest; -import com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest; -import com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest; -import com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse; -import com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest; -import com.google.cloud.dataform.v1alpha2.GetRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest; -import com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest; -import com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest; -import com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest; -import com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest; -import com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse; -import com.google.cloud.dataform.v1alpha2.MoveFileRequest; -import com.google.cloud.dataform.v1alpha2.MoveFileResponse; -import com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest; -import com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest; -import com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse; -import com.google.cloud.dataform.v1alpha2.ReadFileRequest; -import com.google.cloud.dataform.v1alpha2.ReadFileResponse; -import com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest; -import com.google.cloud.dataform.v1alpha2.RemoveFileRequest; -import com.google.cloud.dataform.v1alpha2.Repository; -import com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest; -import com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest; -import com.google.cloud.dataform.v1alpha2.WorkflowInvocation; -import com.google.cloud.dataform.v1alpha2.Workspace; -import com.google.cloud.dataform.v1alpha2.WriteFileRequest; -import com.google.cloud.dataform.v1alpha2.WriteFileResponse; -import com.google.cloud.location.GetLocationRequest; -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; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the Dataform service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataformStub extends DataformStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - listRepositoriesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListRepositories") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*}/repositories", - 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(ListRepositoriesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getRepositoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetRepository") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*}", - 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(Repository.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createRepositoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CreateRepository") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*}/repositories", - 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, "repositoryId", request.getRepositoryId()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("repository", request.getRepository(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Repository.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateRepositoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/UpdateRepository") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{repository.name=projects/*/locations/*/repositories/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "repository.name", request.getRepository().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("repository", request.getRepository(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Repository.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteRepositoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/DeleteRepository") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*}", - 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, "force", request.getForce()); - 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 - fetchRemoteBranchesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchRemoteBranches") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches", - 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(FetchRemoteBranchesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listWorkspacesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListWorkspaces") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/workspaces", - 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(ListWorkspacesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getWorkspaceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetWorkspace") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}", - 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(Workspace.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createWorkspaceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CreateWorkspace") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/workspaces", - 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, "workspaceId", request.getWorkspaceId()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("workspace", request.getWorkspace(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Workspace.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteWorkspaceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/DeleteWorkspace") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}", - 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 - installNpmPackagesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/InstallNpmPackages") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(InstallNpmPackagesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - pullGitCommitsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/PullGitCommits") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull", - 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 - pushGitCommitsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/PushGitCommits") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:push", - 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< - FetchFileGitStatusesRequest, FetchFileGitStatusesResponse> - fetchFileGitStatusesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchFileGitStatuses") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses", - 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(FetchFileGitStatusesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - fetchGitAheadBehindMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchGitAheadBehind") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind", - 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, "remoteBranch", request.getRemoteBranch()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(FetchGitAheadBehindResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - commitWorkspaceChangesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CommitWorkspaceChanges") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}: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 - resetWorkspaceChangesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ResetWorkspaceChanges") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset", - 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 - fetchFileDiffMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/FetchFileDiff") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "path", request.getPath()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(FetchFileDiffResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - QueryDirectoryContentsRequest, QueryDirectoryContentsResponse> - queryDirectoryContentsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/QueryDirectoryContents") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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, "path", request.getPath()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(QueryDirectoryContentsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - makeDirectoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/MakeDirectory") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MakeDirectoryResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - removeDirectoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/RemoveDirectory") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - moveDirectoryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/MoveDirectory") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MoveDirectoryResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - readFileMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ReadFile") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "path", request.getPath()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ReadFileResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor removeFileMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/RemoveFile") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - moveFileMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/MoveFile") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MoveFileResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - writeFileMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/WriteFile") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "workspace", request.getWorkspace()); - 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().clearWorkspace().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(WriteFileResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListCompilationResultsRequest, ListCompilationResultsResponse> - listCompilationResultsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListCompilationResults") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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, "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(ListCompilationResultsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getCompilationResultMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/GetCompilationResult") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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.v1alpha2.Dataform/CreateCompilationResult") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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.v1alpha2.Dataform/QueryCompilationResultActions") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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< - ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse> - listWorkflowInvocationsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/ListWorkflowInvocations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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, "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.v1alpha2.Dataform/GetWorkflowInvocation") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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.v1alpha2.Dataform/CreateWorkflowInvocation") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "workflowInvocation", request.getWorkflowInvocation(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(WorkflowInvocation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteWorkflowInvocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/DeleteWorkflowInvocation") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{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(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - cancelWorkflowInvocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataform.v1alpha2.Dataform/CancelWorkflowInvocation") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel", - 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< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.cloud.dataform.v1alpha2.Dataform/QueryWorkflowInvocationActions") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}: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, "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( - QueryWorkflowInvocationActionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*}/locations", - 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(ListLocationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha2/{name=projects/*/locations/*}", - 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(Location.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .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( - "/v1alpha2/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1alpha2/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy", - "/v1alpha2/{resource=projects/*/locations/*/repositories/*/compilationResults/*}: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( - "/v1alpha2/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1alpha2/{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( - "/v1alpha2/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1alpha2/{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 - listRepositoriesPagedCallable; - private final UnaryCallable getRepositoryCallable; - private final UnaryCallable createRepositoryCallable; - private final UnaryCallable updateRepositoryCallable; - private final UnaryCallable deleteRepositoryCallable; - private final UnaryCallable - fetchRemoteBranchesCallable; - private final UnaryCallable listWorkspacesCallable; - private final UnaryCallable - listWorkspacesPagedCallable; - private final UnaryCallable getWorkspaceCallable; - private final UnaryCallable createWorkspaceCallable; - private final UnaryCallable deleteWorkspaceCallable; - private final UnaryCallable - installNpmPackagesCallable; - private final UnaryCallable pullGitCommitsCallable; - private final UnaryCallable pushGitCommitsCallable; - private final UnaryCallable - fetchFileGitStatusesCallable; - private final UnaryCallable - fetchGitAheadBehindCallable; - private final UnaryCallable commitWorkspaceChangesCallable; - private final UnaryCallable resetWorkspaceChangesCallable; - private final UnaryCallable fetchFileDiffCallable; - private final UnaryCallable - queryDirectoryContentsCallable; - private final UnaryCallable - queryDirectoryContentsPagedCallable; - private final UnaryCallable makeDirectoryCallable; - private final UnaryCallable removeDirectoryCallable; - private final UnaryCallable moveDirectoryCallable; - private final UnaryCallable readFileCallable; - private final UnaryCallable removeFileCallable; - private final UnaryCallable moveFileCallable; - private final UnaryCallable writeFileCallable; - private final UnaryCallable - listCompilationResultsCallable; - private final UnaryCallable - listCompilationResultsPagedCallable; - private final UnaryCallable - getCompilationResultCallable; - private final UnaryCallable - createCompilationResultCallable; - private final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsCallable; - private final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable; - private final UnaryCallable - listWorkflowInvocationsCallable; - private final UnaryCallable - listWorkflowInvocationsPagedCallable; - private final UnaryCallable - getWorkflowInvocationCallable; - private final UnaryCallable - createWorkflowInvocationCallable; - private final UnaryCallable - deleteWorkflowInvocationCallable; - private final UnaryCallable - cancelWorkflowInvocationCallable; - private final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable; - private final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable; - private final UnaryCallable listLocationsCallable; - 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; - - public static final HttpJsonDataformStub create(DataformStubSettings settings) - throws IOException { - return new HttpJsonDataformStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDataformStub create(ClientContext clientContext) throws IOException { - return new HttpJsonDataformStub( - DataformStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDataformStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDataformStub( - DataformStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDataformStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonDataformStub(DataformStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonDataformCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDataformStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonDataformStub( - DataformStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings - listRepositoriesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listRepositoriesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - 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 - fetchRemoteBranchesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(fetchRemoteBranchesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listWorkspacesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listWorkspacesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getWorkspaceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getWorkspaceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createWorkspaceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createWorkspaceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteWorkspaceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkspaceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - installNpmPackagesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(installNpmPackagesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings pullGitCommitsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(pullGitCommitsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings pushGitCommitsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(pushGitCommitsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - fetchFileGitStatusesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(fetchFileGitStatusesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - fetchGitAheadBehindTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(fetchGitAheadBehindMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - commitWorkspaceChangesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(commitWorkspaceChangesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - resetWorkspaceChangesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resetWorkspaceChangesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - fetchFileDiffTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(fetchFileDiffMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - queryDirectoryContentsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(queryDirectoryContentsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - makeDirectoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(makeDirectoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings removeDirectoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(removeDirectoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - moveDirectoryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(moveDirectoryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings readFileTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(readFileMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings removeFileTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(removeFileMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings moveFileTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(moveFileMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings writeFileTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(writeFileMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("workspace", String.valueOf(request.getWorkspace())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listCompilationResultsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listCompilationResultsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - getCompilationResultTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getCompilationResultMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - createCompilationResultTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCompilationResultMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(queryCompilationResultActionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listWorkflowInvocationsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listWorkflowInvocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - getWorkflowInvocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowInvocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - createWorkflowInvocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowInvocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - deleteWorkflowInvocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkflowInvocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - cancelWorkflowInvocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(cancelWorkflowInvocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(queryWorkflowInvocationActionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getLocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - 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( - listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); - this.listRepositoriesPagedCallable = - callableFactory.createPagedCallable( - listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); - this.getRepositoryCallable = - callableFactory.createUnaryCallable( - getRepositoryTransportSettings, settings.getRepositorySettings(), clientContext); - this.createRepositoryCallable = - callableFactory.createUnaryCallable( - createRepositoryTransportSettings, settings.createRepositorySettings(), clientContext); - this.updateRepositoryCallable = - callableFactory.createUnaryCallable( - updateRepositoryTransportSettings, settings.updateRepositorySettings(), clientContext); - this.deleteRepositoryCallable = - callableFactory.createUnaryCallable( - deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); - this.fetchRemoteBranchesCallable = - callableFactory.createUnaryCallable( - fetchRemoteBranchesTransportSettings, - settings.fetchRemoteBranchesSettings(), - clientContext); - this.listWorkspacesCallable = - callableFactory.createUnaryCallable( - listWorkspacesTransportSettings, settings.listWorkspacesSettings(), clientContext); - this.listWorkspacesPagedCallable = - callableFactory.createPagedCallable( - listWorkspacesTransportSettings, settings.listWorkspacesSettings(), clientContext); - this.getWorkspaceCallable = - callableFactory.createUnaryCallable( - getWorkspaceTransportSettings, settings.getWorkspaceSettings(), clientContext); - this.createWorkspaceCallable = - callableFactory.createUnaryCallable( - createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); - this.deleteWorkspaceCallable = - callableFactory.createUnaryCallable( - deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); - this.installNpmPackagesCallable = - callableFactory.createUnaryCallable( - installNpmPackagesTransportSettings, - settings.installNpmPackagesSettings(), - clientContext); - this.pullGitCommitsCallable = - callableFactory.createUnaryCallable( - pullGitCommitsTransportSettings, settings.pullGitCommitsSettings(), clientContext); - this.pushGitCommitsCallable = - callableFactory.createUnaryCallable( - pushGitCommitsTransportSettings, settings.pushGitCommitsSettings(), clientContext); - this.fetchFileGitStatusesCallable = - callableFactory.createUnaryCallable( - fetchFileGitStatusesTransportSettings, - settings.fetchFileGitStatusesSettings(), - clientContext); - this.fetchGitAheadBehindCallable = - callableFactory.createUnaryCallable( - fetchGitAheadBehindTransportSettings, - settings.fetchGitAheadBehindSettings(), - clientContext); - this.commitWorkspaceChangesCallable = - callableFactory.createUnaryCallable( - commitWorkspaceChangesTransportSettings, - settings.commitWorkspaceChangesSettings(), - clientContext); - this.resetWorkspaceChangesCallable = - callableFactory.createUnaryCallable( - resetWorkspaceChangesTransportSettings, - settings.resetWorkspaceChangesSettings(), - clientContext); - this.fetchFileDiffCallable = - callableFactory.createUnaryCallable( - fetchFileDiffTransportSettings, settings.fetchFileDiffSettings(), clientContext); - this.queryDirectoryContentsCallable = - callableFactory.createUnaryCallable( - queryDirectoryContentsTransportSettings, - settings.queryDirectoryContentsSettings(), - clientContext); - this.queryDirectoryContentsPagedCallable = - callableFactory.createPagedCallable( - queryDirectoryContentsTransportSettings, - settings.queryDirectoryContentsSettings(), - clientContext); - this.makeDirectoryCallable = - callableFactory.createUnaryCallable( - makeDirectoryTransportSettings, settings.makeDirectorySettings(), clientContext); - this.removeDirectoryCallable = - callableFactory.createUnaryCallable( - removeDirectoryTransportSettings, settings.removeDirectorySettings(), clientContext); - this.moveDirectoryCallable = - callableFactory.createUnaryCallable( - moveDirectoryTransportSettings, settings.moveDirectorySettings(), clientContext); - this.readFileCallable = - callableFactory.createUnaryCallable( - readFileTransportSettings, settings.readFileSettings(), clientContext); - this.removeFileCallable = - callableFactory.createUnaryCallable( - removeFileTransportSettings, settings.removeFileSettings(), clientContext); - this.moveFileCallable = - callableFactory.createUnaryCallable( - moveFileTransportSettings, settings.moveFileSettings(), clientContext); - this.writeFileCallable = - callableFactory.createUnaryCallable( - writeFileTransportSettings, settings.writeFileSettings(), clientContext); - this.listCompilationResultsCallable = - callableFactory.createUnaryCallable( - listCompilationResultsTransportSettings, - settings.listCompilationResultsSettings(), - clientContext); - this.listCompilationResultsPagedCallable = - callableFactory.createPagedCallable( - listCompilationResultsTransportSettings, - settings.listCompilationResultsSettings(), - clientContext); - this.getCompilationResultCallable = - callableFactory.createUnaryCallable( - getCompilationResultTransportSettings, - settings.getCompilationResultSettings(), - clientContext); - this.createCompilationResultCallable = - callableFactory.createUnaryCallable( - createCompilationResultTransportSettings, - settings.createCompilationResultSettings(), - clientContext); - this.queryCompilationResultActionsCallable = - callableFactory.createUnaryCallable( - queryCompilationResultActionsTransportSettings, - settings.queryCompilationResultActionsSettings(), - clientContext); - this.queryCompilationResultActionsPagedCallable = - callableFactory.createPagedCallable( - queryCompilationResultActionsTransportSettings, - settings.queryCompilationResultActionsSettings(), - clientContext); - this.listWorkflowInvocationsCallable = - callableFactory.createUnaryCallable( - listWorkflowInvocationsTransportSettings, - settings.listWorkflowInvocationsSettings(), - clientContext); - this.listWorkflowInvocationsPagedCallable = - callableFactory.createPagedCallable( - listWorkflowInvocationsTransportSettings, - settings.listWorkflowInvocationsSettings(), - clientContext); - this.getWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - getWorkflowInvocationTransportSettings, - settings.getWorkflowInvocationSettings(), - clientContext); - this.createWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - createWorkflowInvocationTransportSettings, - settings.createWorkflowInvocationSettings(), - clientContext); - this.deleteWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - deleteWorkflowInvocationTransportSettings, - settings.deleteWorkflowInvocationSettings(), - clientContext); - this.cancelWorkflowInvocationCallable = - callableFactory.createUnaryCallable( - cancelWorkflowInvocationTransportSettings, - settings.cancelWorkflowInvocationSettings(), - clientContext); - this.queryWorkflowInvocationActionsCallable = - callableFactory.createUnaryCallable( - queryWorkflowInvocationActionsTransportSettings, - settings.queryWorkflowInvocationActionsSettings(), - clientContext); - this.queryWorkflowInvocationActionsPagedCallable = - callableFactory.createPagedCallable( - queryWorkflowInvocationActionsTransportSettings, - settings.queryWorkflowInvocationActionsSettings(), - clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - 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()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(listRepositoriesMethodDescriptor); - methodDescriptors.add(getRepositoryMethodDescriptor); - methodDescriptors.add(createRepositoryMethodDescriptor); - methodDescriptors.add(updateRepositoryMethodDescriptor); - methodDescriptors.add(deleteRepositoryMethodDescriptor); - methodDescriptors.add(fetchRemoteBranchesMethodDescriptor); - methodDescriptors.add(listWorkspacesMethodDescriptor); - methodDescriptors.add(getWorkspaceMethodDescriptor); - methodDescriptors.add(createWorkspaceMethodDescriptor); - methodDescriptors.add(deleteWorkspaceMethodDescriptor); - methodDescriptors.add(installNpmPackagesMethodDescriptor); - methodDescriptors.add(pullGitCommitsMethodDescriptor); - methodDescriptors.add(pushGitCommitsMethodDescriptor); - methodDescriptors.add(fetchFileGitStatusesMethodDescriptor); - methodDescriptors.add(fetchGitAheadBehindMethodDescriptor); - methodDescriptors.add(commitWorkspaceChangesMethodDescriptor); - methodDescriptors.add(resetWorkspaceChangesMethodDescriptor); - methodDescriptors.add(fetchFileDiffMethodDescriptor); - methodDescriptors.add(queryDirectoryContentsMethodDescriptor); - methodDescriptors.add(makeDirectoryMethodDescriptor); - methodDescriptors.add(removeDirectoryMethodDescriptor); - methodDescriptors.add(moveDirectoryMethodDescriptor); - methodDescriptors.add(readFileMethodDescriptor); - methodDescriptors.add(removeFileMethodDescriptor); - methodDescriptors.add(moveFileMethodDescriptor); - methodDescriptors.add(writeFileMethodDescriptor); - methodDescriptors.add(listCompilationResultsMethodDescriptor); - methodDescriptors.add(getCompilationResultMethodDescriptor); - methodDescriptors.add(createCompilationResultMethodDescriptor); - methodDescriptors.add(queryCompilationResultActionsMethodDescriptor); - methodDescriptors.add(listWorkflowInvocationsMethodDescriptor); - methodDescriptors.add(getWorkflowInvocationMethodDescriptor); - methodDescriptors.add(createWorkflowInvocationMethodDescriptor); - methodDescriptors.add(deleteWorkflowInvocationMethodDescriptor); - methodDescriptors.add(cancelWorkflowInvocationMethodDescriptor); - methodDescriptors.add(queryWorkflowInvocationActionsMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable - listRepositoriesCallable() { - return listRepositoriesCallable; - } - - @Override - public UnaryCallable - listRepositoriesPagedCallable() { - return listRepositoriesPagedCallable; - } - - @Override - public UnaryCallable getRepositoryCallable() { - return getRepositoryCallable; - } - - @Override - public UnaryCallable createRepositoryCallable() { - return createRepositoryCallable; - } - - @Override - public UnaryCallable updateRepositoryCallable() { - return updateRepositoryCallable; - } - - @Override - public UnaryCallable deleteRepositoryCallable() { - return deleteRepositoryCallable; - } - - @Override - public UnaryCallable - fetchRemoteBranchesCallable() { - return fetchRemoteBranchesCallable; - } - - @Override - public UnaryCallable listWorkspacesCallable() { - return listWorkspacesCallable; - } - - @Override - public UnaryCallable - listWorkspacesPagedCallable() { - return listWorkspacesPagedCallable; - } - - @Override - public UnaryCallable getWorkspaceCallable() { - return getWorkspaceCallable; - } - - @Override - public UnaryCallable createWorkspaceCallable() { - return createWorkspaceCallable; - } - - @Override - public UnaryCallable deleteWorkspaceCallable() { - return deleteWorkspaceCallable; - } - - @Override - public UnaryCallable - installNpmPackagesCallable() { - return installNpmPackagesCallable; - } - - @Override - public UnaryCallable pullGitCommitsCallable() { - return pullGitCommitsCallable; - } - - @Override - public UnaryCallable pushGitCommitsCallable() { - return pushGitCommitsCallable; - } - - @Override - public UnaryCallable - fetchFileGitStatusesCallable() { - return fetchFileGitStatusesCallable; - } - - @Override - public UnaryCallable - fetchGitAheadBehindCallable() { - return fetchGitAheadBehindCallable; - } - - @Override - public UnaryCallable commitWorkspaceChangesCallable() { - return commitWorkspaceChangesCallable; - } - - @Override - public UnaryCallable resetWorkspaceChangesCallable() { - return resetWorkspaceChangesCallable; - } - - @Override - public UnaryCallable fetchFileDiffCallable() { - return fetchFileDiffCallable; - } - - @Override - public UnaryCallable - queryDirectoryContentsCallable() { - return queryDirectoryContentsCallable; - } - - @Override - public UnaryCallable - queryDirectoryContentsPagedCallable() { - return queryDirectoryContentsPagedCallable; - } - - @Override - public UnaryCallable makeDirectoryCallable() { - return makeDirectoryCallable; - } - - @Override - public UnaryCallable removeDirectoryCallable() { - return removeDirectoryCallable; - } - - @Override - public UnaryCallable moveDirectoryCallable() { - return moveDirectoryCallable; - } - - @Override - public UnaryCallable readFileCallable() { - return readFileCallable; - } - - @Override - public UnaryCallable removeFileCallable() { - return removeFileCallable; - } - - @Override - public UnaryCallable moveFileCallable() { - return moveFileCallable; - } - - @Override - public UnaryCallable writeFileCallable() { - return writeFileCallable; - } - - @Override - public UnaryCallable - listCompilationResultsCallable() { - return listCompilationResultsCallable; - } - - @Override - public UnaryCallable - listCompilationResultsPagedCallable() { - return listCompilationResultsPagedCallable; - } - - @Override - public UnaryCallable - getCompilationResultCallable() { - return getCompilationResultCallable; - } - - @Override - public UnaryCallable - createCompilationResultCallable() { - return createCompilationResultCallable; - } - - @Override - public UnaryCallable - queryCompilationResultActionsCallable() { - return queryCompilationResultActionsCallable; - } - - @Override - public UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - return queryCompilationResultActionsPagedCallable; - } - - @Override - public UnaryCallable - listWorkflowInvocationsCallable() { - return listWorkflowInvocationsCallable; - } - - @Override - public UnaryCallable - listWorkflowInvocationsPagedCallable() { - return listWorkflowInvocationsPagedCallable; - } - - @Override - public UnaryCallable - getWorkflowInvocationCallable() { - return getWorkflowInvocationCallable; - } - - @Override - public UnaryCallable - createWorkflowInvocationCallable() { - return createWorkflowInvocationCallable; - } - - @Override - public UnaryCallable deleteWorkflowInvocationCallable() { - return deleteWorkflowInvocationCallable; - } - - @Override - public UnaryCallable cancelWorkflowInvocationCallable() { - return cancelWorkflowInvocationCallable; - } - - @Override - public UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable() { - return queryWorkflowInvocationActionsCallable; - } - - @Override - public UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable() { - return queryWorkflowInvocationActionsPagedCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; - } - - @Override - 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 { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java deleted file mode 100644 index 3cf2e9a3393e..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java +++ /dev/null @@ -1,3019 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryWorkflowInvocationActionsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.dataform.v1alpha2.stub.HttpJsonDataformStub; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -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; -import com.google.protobuf.FieldMask; -import com.google.type.Interval; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DataformClientHttpJsonTest { - private static MockHttpService mockService; - private static DataformClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDataformStub.getMethodDescriptors(), DataformSettings.getDefaultEndpoint()); - DataformSettings settings = - DataformSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DataformSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataformClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listRepositoriesTest() throws Exception { - Repository responsesElement = Repository.newBuilder().build(); - ListRepositoriesResponse expectedResponse = - ListRepositoriesResponse.newBuilder() - .setNextPageToken("") - .addAllRepositories(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRepositoriesPagedResponse pagedListResponse = client.listRepositories(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRepositoriesList().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 listRepositoriesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRepositories(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRepositoriesTest2() throws Exception { - Repository responsesElement = Repository.newBuilder().build(); - ListRepositoriesResponse expectedResponse = - ListRepositoriesResponse.newBuilder() - .setNextPageToken("") - .addAllRepositories(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListRepositoriesPagedResponse pagedListResponse = client.listRepositories(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRepositoriesList().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 listRepositoriesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listRepositories(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRepositoryTest() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - Repository actualResponse = client.getRepository(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 getRepositoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.getRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRepositoryTest2() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; - - Repository actualResponse = client.getRepository(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 getRepositoryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; - client.getRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRepositoryTest() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - - Repository actualResponse = client.createRepository(parent, repository, repositoryId); - 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 createRepositoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - client.createRepository(parent, repository, repositoryId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRepositoryTest2() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - - Repository actualResponse = client.createRepository(parent, repository, repositoryId); - 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 createRepositoryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - client.createRepository(parent, repository, repositoryId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRepositoryTest() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Repository repository = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Repository actualResponse = client.updateRepository(repository, 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 updateRepositoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Repository repository = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRepository(repository, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRepositoryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - client.deleteRepository(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 deleteRepositoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.deleteRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRepositoryTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; - - client.deleteRepository(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 deleteRepositoryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; - client.deleteRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchRemoteBranchesTest() throws Exception { - FetchRemoteBranchesResponse expectedResponse = - FetchRemoteBranchesResponse.newBuilder().addAllBranches(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - FetchRemoteBranchesRequest request = - FetchRemoteBranchesRequest.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .build(); - - FetchRemoteBranchesResponse actualResponse = client.fetchRemoteBranches(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 fetchRemoteBranchesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - FetchRemoteBranchesRequest request = - FetchRemoteBranchesRequest.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .build(); - client.fetchRemoteBranches(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkspacesTest() throws Exception { - Workspace responsesElement = Workspace.newBuilder().build(); - ListWorkspacesResponse expectedResponse = - ListWorkspacesResponse.newBuilder() - .setNextPageToken("") - .addAllWorkspaces(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkspacesList().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 listWorkspacesExceptionTest() 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.listWorkspaces(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkspacesTest2() throws Exception { - Workspace responsesElement = Workspace.newBuilder().build(); - ListWorkspacesResponse expectedResponse = - ListWorkspacesResponse.newBuilder() - .setNextPageToken("") - .addAllWorkspaces(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - - ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkspacesList().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 listWorkspacesExceptionTest2() 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.listWorkspaces(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockService.addResponse(expectedResponse); - - WorkspaceName name = WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - - Workspace actualResponse = client.getWorkspace(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 getWorkspaceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkspaceName name = - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest2() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2384/locations/location-2384/repositories/repositorie-2384/workspaces/workspace-2384"; - - Workspace actualResponse = client.getWorkspace(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 getWorkspaceExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2384/locations/location-2384/repositories/repositorie-2384/workspaces/workspace-2384"; - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkspaceTest() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockService.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - - Workspace actualResponse = client.createWorkspace(parent, workspace, workspaceId); - 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 createWorkspaceExceptionTest() 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]"); - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - client.createWorkspace(parent, workspace, workspaceId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkspaceTest2() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - - Workspace actualResponse = client.createWorkspace(parent, workspace, workspaceId); - 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 createWorkspaceExceptionTest2() 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"; - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - client.createWorkspace(parent, workspace, workspaceId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkspaceTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - WorkspaceName name = WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - - client.deleteWorkspace(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 deleteWorkspaceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkspaceName name = - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - client.deleteWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkspaceTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2384/locations/location-2384/repositories/repositorie-2384/workspaces/workspace-2384"; - - client.deleteWorkspace(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 deleteWorkspaceExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2384/locations/location-2384/repositories/repositorie-2384/workspaces/workspace-2384"; - client.deleteWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void installNpmPackagesTest() throws Exception { - InstallNpmPackagesResponse expectedResponse = InstallNpmPackagesResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - InstallNpmPackagesRequest request = - InstallNpmPackagesRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - - InstallNpmPackagesResponse actualResponse = client.installNpmPackages(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 installNpmPackagesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - InstallNpmPackagesRequest request = - InstallNpmPackagesRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - client.installNpmPackages(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pullGitCommitsTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - PullGitCommitsRequest request = - PullGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .setAuthor(CommitAuthor.newBuilder().build()) - .build(); - - client.pullGitCommits(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 pullGitCommitsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PullGitCommitsRequest request = - PullGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .setAuthor(CommitAuthor.newBuilder().build()) - .build(); - client.pullGitCommits(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pushGitCommitsTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - PushGitCommitsRequest request = - PushGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - - client.pushGitCommits(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 pushGitCommitsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PushGitCommitsRequest request = - PushGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - client.pushGitCommits(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchFileGitStatusesTest() throws Exception { - FetchFileGitStatusesResponse expectedResponse = - FetchFileGitStatusesResponse.newBuilder() - .addAllUncommittedFileChanges( - new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - FetchFileGitStatusesRequest request = - FetchFileGitStatusesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - - FetchFileGitStatusesResponse actualResponse = client.fetchFileGitStatuses(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 fetchFileGitStatusesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - FetchFileGitStatusesRequest request = - FetchFileGitStatusesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - client.fetchFileGitStatuses(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchGitAheadBehindTest() throws Exception { - FetchGitAheadBehindResponse expectedResponse = - FetchGitAheadBehindResponse.newBuilder() - .setCommitsAhead(1216483806) - .setCommitsBehind(-917751619) - .build(); - mockService.addResponse(expectedResponse); - - FetchGitAheadBehindRequest request = - FetchGitAheadBehindRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - - FetchGitAheadBehindResponse actualResponse = client.fetchGitAheadBehind(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 fetchGitAheadBehindExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - FetchGitAheadBehindRequest request = - FetchGitAheadBehindRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - client.fetchGitAheadBehind(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void commitWorkspaceChangesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - CommitWorkspaceChangesRequest request = - CommitWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setAuthor(CommitAuthor.newBuilder().build()) - .setCommitMessage("commitMessage2039804624") - .addAllPaths(new ArrayList()) - .build(); - - client.commitWorkspaceChanges(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 commitWorkspaceChangesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CommitWorkspaceChangesRequest request = - CommitWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setAuthor(CommitAuthor.newBuilder().build()) - .setCommitMessage("commitMessage2039804624") - .addAllPaths(new ArrayList()) - .build(); - client.commitWorkspaceChanges(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetWorkspaceChangesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ResetWorkspaceChangesRequest request = - ResetWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .addAllPaths(new ArrayList()) - .setClean(true) - .build(); - - client.resetWorkspaceChanges(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 resetWorkspaceChangesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResetWorkspaceChangesRequest request = - ResetWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .addAllPaths(new ArrayList()) - .setClean(true) - .build(); - client.resetWorkspaceChanges(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchFileDiffTest() throws Exception { - FetchFileDiffResponse expectedResponse = - FetchFileDiffResponse.newBuilder().setFormattedDiff("formattedDiff-1717800223").build(); - mockService.addResponse(expectedResponse); - - FetchFileDiffRequest request = - FetchFileDiffRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - FetchFileDiffResponse actualResponse = client.fetchFileDiff(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 fetchFileDiffExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - FetchFileDiffRequest request = - FetchFileDiffRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.fetchFileDiff(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryDirectoryContentsTest() throws Exception { - QueryDirectoryContentsResponse.DirectoryEntry responsesElement = - QueryDirectoryContentsResponse.DirectoryEntry.newBuilder().build(); - QueryDirectoryContentsResponse expectedResponse = - QueryDirectoryContentsResponse.newBuilder() - .setNextPageToken("") - .addAllDirectoryEntries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - QueryDirectoryContentsRequest request = - QueryDirectoryContentsRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(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 queryDirectoryContentsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueryDirectoryContentsRequest request = - QueryDirectoryContentsRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.queryDirectoryContents(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void makeDirectoryTest() throws Exception { - MakeDirectoryResponse expectedResponse = MakeDirectoryResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - MakeDirectoryRequest request = - MakeDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - MakeDirectoryResponse actualResponse = client.makeDirectory(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 makeDirectoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MakeDirectoryRequest request = - MakeDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.makeDirectory(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void removeDirectoryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - RemoveDirectoryRequest request = - RemoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - client.removeDirectory(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 removeDirectoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RemoveDirectoryRequest request = - RemoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.removeDirectory(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void moveDirectoryTest() throws Exception { - MoveDirectoryResponse expectedResponse = MoveDirectoryResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - MoveDirectoryRequest request = - MoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - - MoveDirectoryResponse actualResponse = client.moveDirectory(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 moveDirectoryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MoveDirectoryRequest request = - MoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - client.moveDirectory(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void readFileTest() throws Exception { - ReadFileResponse expectedResponse = - ReadFileResponse.newBuilder().setFileContents(ByteString.EMPTY).build(); - mockService.addResponse(expectedResponse); - - ReadFileRequest request = - ReadFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - ReadFileResponse actualResponse = client.readFile(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 readFileExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReadFileRequest request = - ReadFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.readFile(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void removeFileTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - RemoveFileRequest request = - RemoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - client.removeFile(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 removeFileExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RemoveFileRequest request = - RemoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.removeFile(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void moveFileTest() throws Exception { - MoveFileResponse expectedResponse = MoveFileResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - MoveFileRequest request = - MoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - - MoveFileResponse actualResponse = client.moveFile(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 moveFileExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MoveFileRequest request = - MoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - client.moveFile(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void writeFileTest() throws Exception { - WriteFileResponse expectedResponse = WriteFileResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - WriteFileRequest request = - WriteFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setContents(ByteString.EMPTY) - .build(); - - WriteFileResponse actualResponse = client.writeFile(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 writeFileExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WriteFileRequest request = - WriteFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setContents(ByteString.EMPTY) - .build(); - client.writeFile(request); - 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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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"); - } 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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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 listWorkflowInvocationsTest() throws Exception { - WorkflowInvocation responsesElement = WorkflowInvocation.newBuilder().build(); - ListWorkflowInvocationsResponse expectedResponse = - ListWorkflowInvocationsResponse.newBuilder() - .setNextPageToken("") - .addAllWorkflowInvocations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - ListWorkflowInvocationsPagedResponse pagedListResponse = client.listWorkflowInvocations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkflowInvocationsList().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 listWorkflowInvocationsExceptionTest() 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.listWorkflowInvocations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowInvocationsTest2() throws Exception { - WorkflowInvocation responsesElement = WorkflowInvocation.newBuilder().build(); - ListWorkflowInvocationsResponse expectedResponse = - ListWorkflowInvocationsResponse.newBuilder() - .setNextPageToken("") - .addAllWorkflowInvocations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - - ListWorkflowInvocationsPagedResponse pagedListResponse = client.listWorkflowInvocations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkflowInvocationsList().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 listWorkflowInvocationsExceptionTest2() 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.listWorkflowInvocations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowInvocationTest() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - - WorkflowInvocation actualResponse = client.getWorkflowInvocation(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 getWorkflowInvocationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - client.getWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowInvocationTest2() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2248/locations/location-2248/repositories/repositorie-2248/workflowInvocations/workflowInvocation-2248"; - - WorkflowInvocation actualResponse = client.getWorkflowInvocation(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 getWorkflowInvocationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2248/locations/location-2248/repositories/repositorie-2248/workflowInvocations/workflowInvocation-2248"; - client.getWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowInvocationTest() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - - WorkflowInvocation actualResponse = client.createWorkflowInvocation(parent, workflowInvocation); - 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 createWorkflowInvocationExceptionTest() 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]"); - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - client.createWorkflowInvocation(parent, workflowInvocation); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowInvocationTest2() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - - WorkflowInvocation actualResponse = client.createWorkflowInvocation(parent, workflowInvocation); - 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 createWorkflowInvocationExceptionTest2() 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"; - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - client.createWorkflowInvocation(parent, workflowInvocation); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowInvocationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - - client.deleteWorkflowInvocation(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 deleteWorkflowInvocationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - client.deleteWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowInvocationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2248/locations/location-2248/repositories/repositorie-2248/workflowInvocations/workflowInvocation-2248"; - - client.deleteWorkflowInvocation(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 deleteWorkflowInvocationExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2248/locations/location-2248/repositories/repositorie-2248/workflowInvocations/workflowInvocation-2248"; - client.deleteWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelWorkflowInvocationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - CancelWorkflowInvocationRequest request = - CancelWorkflowInvocationRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .build(); - - client.cancelWorkflowInvocation(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 cancelWorkflowInvocationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CancelWorkflowInvocationRequest request = - CancelWorkflowInvocationRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .build(); - client.cancelWorkflowInvocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryWorkflowInvocationActionsTest() throws Exception { - WorkflowInvocationAction responsesElement = WorkflowInvocationAction.newBuilder().build(); - QueryWorkflowInvocationActionsResponse expectedResponse = - QueryWorkflowInvocationActionsResponse.newBuilder() - .setNextPageToken("") - .addAllWorkflowInvocationActions(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - QueryWorkflowInvocationActionsRequest request = - QueryWorkflowInvocationActionsRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - QueryWorkflowInvocationActionsPagedResponse pagedListResponse = - client.queryWorkflowInvocationActions(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getWorkflowInvocationActionsList().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 queryWorkflowInvocationActionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueryWorkflowInvocationActionsRequest request = - QueryWorkflowInvocationActionsRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.queryWorkflowInvocationActions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - - Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - client.getLocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // 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( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .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( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .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/v1alpha2/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientTest.java deleted file mode 100644 index 88bcc9e90032..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientTest.java +++ /dev/null @@ -1,2737 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListCompilationResultsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListLocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListRepositoriesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkflowInvocationsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.ListWorkspacesPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryCompilationResultActionsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryDirectoryContentsPagedResponse; -import static com.google.cloud.dataform.v1alpha2.DataformClient.QueryWorkflowInvocationActionsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -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; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.type.Interval; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DataformClientTest { - private static MockDataform mockDataform; - private static MockIAMPolicy mockIAMPolicy; - private static MockLocations mockLocations; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DataformClient client; - - @BeforeClass - public static void startStaticServer() { - mockDataform = new MockDataform(); - mockLocations = new MockLocations(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockDataform, mockLocations, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DataformSettings settings = - DataformSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataformClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listRepositoriesTest() throws Exception { - Repository responsesElement = Repository.newBuilder().build(); - ListRepositoriesResponse expectedResponse = - ListRepositoriesResponse.newBuilder() - .setNextPageToken("") - .addAllRepositories(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListRepositoriesPagedResponse pagedListResponse = client.listRepositories(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRepositoriesList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRepositoriesRequest actualRequest = ((ListRepositoriesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRepositoriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listRepositories(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRepositoriesTest2() throws Exception { - Repository responsesElement = Repository.newBuilder().build(); - ListRepositoriesResponse expectedResponse = - ListRepositoriesResponse.newBuilder() - .setNextPageToken("") - .addAllRepositories(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListRepositoriesPagedResponse pagedListResponse = client.listRepositories(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRepositoriesList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRepositoriesRequest actualRequest = ((ListRepositoriesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRepositoriesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String parent = "parent-995424086"; - client.listRepositories(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRepositoryTest() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - Repository actualResponse = client.getRepository(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRepositoryRequest actualRequest = ((GetRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRepositoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.getRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRepositoryTest2() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - String name = "name3373707"; - - Repository actualResponse = client.getRepository(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRepositoryRequest actualRequest = ((GetRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRepositoryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String name = "name3373707"; - client.getRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRepositoryTest() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - - Repository actualResponse = client.createRepository(parent, repository, repositoryId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRepositoryRequest actualRequest = ((CreateRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(repository, actualRequest.getRepository()); - Assert.assertEquals(repositoryId, actualRequest.getRepositoryId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createRepositoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - client.createRepository(parent, repository, repositoryId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRepositoryTest2() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - - Repository actualResponse = client.createRepository(parent, repository, repositoryId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRepositoryRequest actualRequest = ((CreateRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(repository, actualRequest.getRepository()); - Assert.assertEquals(repositoryId, actualRequest.getRepositoryId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createRepositoryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String parent = "parent-995424086"; - Repository repository = Repository.newBuilder().build(); - String repositoryId = "repositoryId2113747461"; - client.createRepository(parent, repository, repositoryId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRepositoryTest() throws Exception { - Repository expectedResponse = - Repository.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Repository actualResponse = client.updateRepository(repository, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(repository, actualRequest.getRepository()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateRepositoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRepository(repository, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRepositoryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - client.deleteRepository(name); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRepositoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.deleteRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRepositoryTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteRepository(name); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRepositoryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String name = "name3373707"; - client.deleteRepository(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchRemoteBranchesTest() throws Exception { - FetchRemoteBranchesResponse expectedResponse = - FetchRemoteBranchesResponse.newBuilder().addAllBranches(new ArrayList()).build(); - mockDataform.addResponse(expectedResponse); - - FetchRemoteBranchesRequest request = - FetchRemoteBranchesRequest.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .build(); - - FetchRemoteBranchesResponse actualResponse = client.fetchRemoteBranches(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - FetchRemoteBranchesRequest actualRequest = ((FetchRemoteBranchesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void fetchRemoteBranchesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - FetchRemoteBranchesRequest request = - FetchRemoteBranchesRequest.newBuilder() - .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .build(); - client.fetchRemoteBranches(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkspacesTest() throws Exception { - Workspace responsesElement = Workspace.newBuilder().build(); - ListWorkspacesResponse expectedResponse = - ListWorkspacesResponse.newBuilder() - .setNextPageToken("") - .addAllWorkspaces(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkspacesList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkspacesRequest actualRequest = ((ListWorkspacesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkspacesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.listWorkspaces(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkspacesTest2() throws Exception { - Workspace responsesElement = Workspace.newBuilder().build(); - ListWorkspacesResponse expectedResponse = - ListWorkspacesResponse.newBuilder() - .setNextPageToken("") - .addAllWorkspaces(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkspacesList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkspacesRequest actualRequest = ((ListWorkspacesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkspacesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String parent = "parent-995424086"; - client.listWorkspaces(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockDataform.addResponse(expectedResponse); - - WorkspaceName name = WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - - Workspace actualResponse = client.getWorkspace(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkspaceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - WorkspaceName name = - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest2() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockDataform.addResponse(expectedResponse); - - String name = "name3373707"; - - Workspace actualResponse = client.getWorkspace(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkspaceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String name = "name3373707"; - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkspaceTest() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockDataform.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - - Workspace actualResponse = client.createWorkspace(parent, workspace, workspaceId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(workspace, actualRequest.getWorkspace()); - Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkspaceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - client.createWorkspace(parent, workspace, workspaceId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkspaceTest2() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - mockDataform.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - - Workspace actualResponse = client.createWorkspace(parent, workspace, workspaceId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(workspace, actualRequest.getWorkspace()); - Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkspaceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String parent = "parent-995424086"; - Workspace workspace = Workspace.newBuilder().build(); - String workspaceId = "workspaceId466560144"; - client.createWorkspace(parent, workspace, workspaceId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkspaceTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - WorkspaceName name = WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - - client.deleteWorkspace(name); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkspaceRequest actualRequest = ((DeleteWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkspaceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - WorkspaceName name = - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - client.deleteWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkspaceTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteWorkspace(name); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkspaceRequest actualRequest = ((DeleteWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkspaceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String name = "name3373707"; - client.deleteWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void installNpmPackagesTest() throws Exception { - InstallNpmPackagesResponse expectedResponse = InstallNpmPackagesResponse.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - InstallNpmPackagesRequest request = - InstallNpmPackagesRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - - InstallNpmPackagesResponse actualResponse = client.installNpmPackages(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstallNpmPackagesRequest actualRequest = ((InstallNpmPackagesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void installNpmPackagesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - InstallNpmPackagesRequest request = - InstallNpmPackagesRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - client.installNpmPackages(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pullGitCommitsTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - PullGitCommitsRequest request = - PullGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .setAuthor(CommitAuthor.newBuilder().build()) - .build(); - - client.pullGitCommits(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PullGitCommitsRequest actualRequest = ((PullGitCommitsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getRemoteBranch(), actualRequest.getRemoteBranch()); - Assert.assertEquals(request.getAuthor(), actualRequest.getAuthor()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pullGitCommitsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - PullGitCommitsRequest request = - PullGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .setAuthor(CommitAuthor.newBuilder().build()) - .build(); - client.pullGitCommits(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pushGitCommitsTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - PushGitCommitsRequest request = - PushGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - - client.pushGitCommits(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PushGitCommitsRequest actualRequest = ((PushGitCommitsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getRemoteBranch(), actualRequest.getRemoteBranch()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pushGitCommitsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - PushGitCommitsRequest request = - PushGitCommitsRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - client.pushGitCommits(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchFileGitStatusesTest() throws Exception { - FetchFileGitStatusesResponse expectedResponse = - FetchFileGitStatusesResponse.newBuilder() - .addAllUncommittedFileChanges( - new ArrayList()) - .build(); - mockDataform.addResponse(expectedResponse); - - FetchFileGitStatusesRequest request = - FetchFileGitStatusesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - - FetchFileGitStatusesResponse actualResponse = client.fetchFileGitStatuses(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - FetchFileGitStatusesRequest actualRequest = - ((FetchFileGitStatusesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void fetchFileGitStatusesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - FetchFileGitStatusesRequest request = - FetchFileGitStatusesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .build(); - client.fetchFileGitStatuses(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchGitAheadBehindTest() throws Exception { - FetchGitAheadBehindResponse expectedResponse = - FetchGitAheadBehindResponse.newBuilder() - .setCommitsAhead(1216483806) - .setCommitsBehind(-917751619) - .build(); - mockDataform.addResponse(expectedResponse); - - FetchGitAheadBehindRequest request = - FetchGitAheadBehindRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - - FetchGitAheadBehindResponse actualResponse = client.fetchGitAheadBehind(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - FetchGitAheadBehindRequest actualRequest = ((FetchGitAheadBehindRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getRemoteBranch(), actualRequest.getRemoteBranch()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void fetchGitAheadBehindExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - FetchGitAheadBehindRequest request = - FetchGitAheadBehindRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setRemoteBranch("remoteBranch-533119608") - .build(); - client.fetchGitAheadBehind(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void commitWorkspaceChangesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - CommitWorkspaceChangesRequest request = - CommitWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setAuthor(CommitAuthor.newBuilder().build()) - .setCommitMessage("commitMessage2039804624") - .addAllPaths(new ArrayList()) - .build(); - - client.commitWorkspaceChanges(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CommitWorkspaceChangesRequest actualRequest = - ((CommitWorkspaceChangesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getAuthor(), actualRequest.getAuthor()); - Assert.assertEquals(request.getCommitMessage(), actualRequest.getCommitMessage()); - Assert.assertEquals(request.getPathsList(), actualRequest.getPathsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void commitWorkspaceChangesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - CommitWorkspaceChangesRequest request = - CommitWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setAuthor(CommitAuthor.newBuilder().build()) - .setCommitMessage("commitMessage2039804624") - .addAllPaths(new ArrayList()) - .build(); - client.commitWorkspaceChanges(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resetWorkspaceChangesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - ResetWorkspaceChangesRequest request = - ResetWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .addAllPaths(new ArrayList()) - .setClean(true) - .build(); - - client.resetWorkspaceChanges(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResetWorkspaceChangesRequest actualRequest = - ((ResetWorkspaceChangesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getPathsList(), actualRequest.getPathsList()); - Assert.assertEquals(request.getClean(), actualRequest.getClean()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resetWorkspaceChangesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - ResetWorkspaceChangesRequest request = - ResetWorkspaceChangesRequest.newBuilder() - .setName( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .addAllPaths(new ArrayList()) - .setClean(true) - .build(); - client.resetWorkspaceChanges(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void fetchFileDiffTest() throws Exception { - FetchFileDiffResponse expectedResponse = - FetchFileDiffResponse.newBuilder().setFormattedDiff("formattedDiff-1717800223").build(); - mockDataform.addResponse(expectedResponse); - - FetchFileDiffRequest request = - FetchFileDiffRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - FetchFileDiffResponse actualResponse = client.fetchFileDiff(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - FetchFileDiffRequest actualRequest = ((FetchFileDiffRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void fetchFileDiffExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - FetchFileDiffRequest request = - FetchFileDiffRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.fetchFileDiff(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryDirectoryContentsTest() throws Exception { - QueryDirectoryContentsResponse.DirectoryEntry responsesElement = - QueryDirectoryContentsResponse.DirectoryEntry.newBuilder().build(); - QueryDirectoryContentsResponse expectedResponse = - QueryDirectoryContentsResponse.newBuilder() - .setNextPageToken("") - .addAllDirectoryEntries(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - QueryDirectoryContentsRequest request = - QueryDirectoryContentsRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(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()); - QueryDirectoryContentsRequest actualRequest = - ((QueryDirectoryContentsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - 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 queryDirectoryContentsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - QueryDirectoryContentsRequest request = - QueryDirectoryContentsRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.queryDirectoryContents(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void makeDirectoryTest() throws Exception { - MakeDirectoryResponse expectedResponse = MakeDirectoryResponse.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - MakeDirectoryRequest request = - MakeDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - MakeDirectoryResponse actualResponse = client.makeDirectory(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - MakeDirectoryRequest actualRequest = ((MakeDirectoryRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void makeDirectoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - MakeDirectoryRequest request = - MakeDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.makeDirectory(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void removeDirectoryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - RemoveDirectoryRequest request = - RemoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - client.removeDirectory(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RemoveDirectoryRequest actualRequest = ((RemoveDirectoryRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void removeDirectoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RemoveDirectoryRequest request = - RemoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.removeDirectory(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void moveDirectoryTest() throws Exception { - MoveDirectoryResponse expectedResponse = MoveDirectoryResponse.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - MoveDirectoryRequest request = - MoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - - MoveDirectoryResponse actualResponse = client.moveDirectory(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - MoveDirectoryRequest actualRequest = ((MoveDirectoryRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertEquals(request.getNewPath(), actualRequest.getNewPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void moveDirectoryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - MoveDirectoryRequest request = - MoveDirectoryRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - client.moveDirectory(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void readFileTest() throws Exception { - ReadFileResponse expectedResponse = - ReadFileResponse.newBuilder().setFileContents(ByteString.EMPTY).build(); - mockDataform.addResponse(expectedResponse); - - ReadFileRequest request = - ReadFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - ReadFileResponse actualResponse = client.readFile(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ReadFileRequest actualRequest = ((ReadFileRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void readFileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - ReadFileRequest request = - ReadFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.readFile(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void removeFileTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - RemoveFileRequest request = - RemoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - - client.removeFile(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RemoveFileRequest actualRequest = ((RemoveFileRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void removeFileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RemoveFileRequest request = - RemoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .build(); - client.removeFile(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void moveFileTest() throws Exception { - MoveFileResponse expectedResponse = MoveFileResponse.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - MoveFileRequest request = - MoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - - MoveFileResponse actualResponse = client.moveFile(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - MoveFileRequest actualRequest = ((MoveFileRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertEquals(request.getNewPath(), actualRequest.getNewPath()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void moveFileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - MoveFileRequest request = - MoveFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setNewPath("newPath1845080549") - .build(); - client.moveFile(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void writeFileTest() throws Exception { - WriteFileResponse expectedResponse = WriteFileResponse.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - WriteFileRequest request = - WriteFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setContents(ByteString.EMPTY) - .build(); - - WriteFileResponse actualResponse = client.writeFile(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - WriteFileRequest actualRequest = ((WriteFileRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getWorkspace(), actualRequest.getWorkspace()); - Assert.assertEquals(request.getPath(), actualRequest.getPath()); - Assert.assertEquals(request.getContents(), actualRequest.getContents()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void writeFileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - WriteFileRequest request = - WriteFileRequest.newBuilder() - .setWorkspace( - WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - .toString()) - .setPath("path3433509") - .setContents(ByteString.EMPTY) - .build(); - client.writeFile(request); - 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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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(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(); - - 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(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCompilationResultExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.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(CompilationResult.CodeCompilationConfig.newBuilder().build()) - .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 listWorkflowInvocationsTest() throws Exception { - WorkflowInvocation responsesElement = WorkflowInvocation.newBuilder().build(); - ListWorkflowInvocationsResponse expectedResponse = - ListWorkflowInvocationsResponse.newBuilder() - .setNextPageToken("") - .addAllWorkflowInvocations(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - - ListWorkflowInvocationsPagedResponse pagedListResponse = client.listWorkflowInvocations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkflowInvocationsList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowInvocationsRequest actualRequest = - ((ListWorkflowInvocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowInvocationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.listWorkflowInvocations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowInvocationsTest2() throws Exception { - WorkflowInvocation responsesElement = WorkflowInvocation.newBuilder().build(); - ListWorkflowInvocationsResponse expectedResponse = - ListWorkflowInvocationsResponse.newBuilder() - .setNextPageToken("") - .addAllWorkflowInvocations(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListWorkflowInvocationsPagedResponse pagedListResponse = client.listWorkflowInvocations(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkflowInvocationsList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowInvocationsRequest actualRequest = - ((ListWorkflowInvocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowInvocationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String parent = "parent-995424086"; - client.listWorkflowInvocations(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowInvocationTest() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - - WorkflowInvocation actualResponse = client.getWorkflowInvocation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkflowInvocationRequest actualRequest = - ((GetWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkflowInvocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - client.getWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowInvocationTest2() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - String name = "name3373707"; - - WorkflowInvocation actualResponse = client.getWorkflowInvocation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkflowInvocationRequest actualRequest = - ((GetWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkflowInvocationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String name = "name3373707"; - client.getWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowInvocationTest() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - - WorkflowInvocation actualResponse = client.createWorkflowInvocation(parent, workflowInvocation); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowInvocationRequest actualRequest = - ((CreateWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(workflowInvocation, actualRequest.getWorkflowInvocation()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowInvocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - client.createWorkflowInvocation(parent, workflowInvocation); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowInvocationTest2() throws Exception { - WorkflowInvocation expectedResponse = - WorkflowInvocation.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setCompilationResult( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .toString()) - .setInvocationConfig(WorkflowInvocation.InvocationConfig.newBuilder().build()) - .setInvocationTiming(Interval.newBuilder().build()) - .build(); - mockDataform.addResponse(expectedResponse); - - String parent = "parent-995424086"; - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - - WorkflowInvocation actualResponse = client.createWorkflowInvocation(parent, workflowInvocation); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowInvocationRequest actualRequest = - ((CreateWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(workflowInvocation, actualRequest.getWorkflowInvocation()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowInvocationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String parent = "parent-995424086"; - WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - client.createWorkflowInvocation(parent, workflowInvocation); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowInvocationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - - client.deleteWorkflowInvocation(name); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkflowInvocationRequest actualRequest = - ((DeleteWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkflowInvocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - WorkflowInvocationName name = - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - client.deleteWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowInvocationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteWorkflowInvocation(name); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkflowInvocationRequest actualRequest = - ((DeleteWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkflowInvocationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - String name = "name3373707"; - client.deleteWorkflowInvocation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelWorkflowInvocationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); - - CancelWorkflowInvocationRequest request = - CancelWorkflowInvocationRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .build(); - - client.cancelWorkflowInvocation(request); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelWorkflowInvocationRequest actualRequest = - ((CancelWorkflowInvocationRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelWorkflowInvocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - CancelWorkflowInvocationRequest request = - CancelWorkflowInvocationRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .build(); - client.cancelWorkflowInvocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryWorkflowInvocationActionsTest() throws Exception { - WorkflowInvocationAction responsesElement = WorkflowInvocationAction.newBuilder().build(); - QueryWorkflowInvocationActionsResponse expectedResponse = - QueryWorkflowInvocationActionsResponse.newBuilder() - .setNextPageToken("") - .addAllWorkflowInvocationActions(Arrays.asList(responsesElement)) - .build(); - mockDataform.addResponse(expectedResponse); - - QueryWorkflowInvocationActionsRequest request = - QueryWorkflowInvocationActionsRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - QueryWorkflowInvocationActionsPagedResponse pagedListResponse = - client.queryWorkflowInvocationActions(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getWorkflowInvocationActionsList().get(0), resources.get(0)); - - List actualRequests = mockDataform.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - QueryWorkflowInvocationActionsRequest actualRequest = - ((QueryWorkflowInvocationActionsRequest) 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 queryWorkflowInvocationActionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataform.addException(exception); - - try { - QueryWorkflowInvocationActionsRequest request = - QueryWorkflowInvocationActionsRequest.newBuilder() - .setName( - WorkflowInvocationName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.queryWorkflowInvocationActions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockLocations.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); - - List actualRequests = mockLocations.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLocationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); - - try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) - .build(); - mockLocations.addResponse(expectedResponse); - - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - - Location actualResponse = client.getLocation(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockLocations.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); - - try { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - client.getLocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // 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( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .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( - CompilationResultName.of( - "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - .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/v1alpha2/MockDataform.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockDataform.java deleted file mode 100644 index 9cd64067507d..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockDataform.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDataform implements MockGrpcService { - private final MockDataformImpl serviceImpl; - - public MockDataform() { - serviceImpl = new MockDataformImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockDataformImpl.java deleted file mode 100644 index 14ba80959675..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockDataformImpl.java +++ /dev/null @@ -1,824 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataform.v1alpha2.DataformGrpc.DataformImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockDataformImpl extends DataformImplBase { - private List requests; - private Queue responses; - - public MockDataformImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listRepositories( - ListRepositoriesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRepositoriesResponse) { - requests.add(request); - responseObserver.onNext(((ListRepositoriesResponse) 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 ListRepositories, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRepositoriesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRepository( - GetRepositoryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Repository) { - requests.add(request); - responseObserver.onNext(((Repository) 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 GetRepository, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Repository.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createRepository( - CreateRepositoryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Repository) { - requests.add(request); - responseObserver.onNext(((Repository) 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 CreateRepository, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Repository.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateRepository( - UpdateRepositoryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Repository) { - requests.add(request); - responseObserver.onNext(((Repository) 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 UpdateRepository, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Repository.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteRepository( - DeleteRepositoryRequest 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 DeleteRepository, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void fetchRemoteBranches( - FetchRemoteBranchesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FetchRemoteBranchesResponse) { - requests.add(request); - responseObserver.onNext(((FetchRemoteBranchesResponse) 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 FetchRemoteBranches, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FetchRemoteBranchesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listWorkspaces( - ListWorkspacesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListWorkspacesResponse) { - requests.add(request); - responseObserver.onNext(((ListWorkspacesResponse) 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 ListWorkspaces, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListWorkspacesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getWorkspace( - GetWorkspaceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Workspace) { - requests.add(request); - responseObserver.onNext(((Workspace) 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 GetWorkspace, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Workspace.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createWorkspace( - CreateWorkspaceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Workspace) { - requests.add(request); - responseObserver.onNext(((Workspace) 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 CreateWorkspace, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Workspace.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteWorkspace( - DeleteWorkspaceRequest 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 DeleteWorkspace, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void installNpmPackages( - InstallNpmPackagesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof InstallNpmPackagesResponse) { - requests.add(request); - responseObserver.onNext(((InstallNpmPackagesResponse) 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 InstallNpmPackages, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - InstallNpmPackagesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void pullGitCommits( - PullGitCommitsRequest 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 PullGitCommits, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void pushGitCommits( - PushGitCommitsRequest 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 PushGitCommits, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void fetchFileGitStatuses( - FetchFileGitStatusesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FetchFileGitStatusesResponse) { - requests.add(request); - responseObserver.onNext(((FetchFileGitStatusesResponse) 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 FetchFileGitStatuses, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FetchFileGitStatusesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void fetchGitAheadBehind( - FetchGitAheadBehindRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FetchGitAheadBehindResponse) { - requests.add(request); - responseObserver.onNext(((FetchGitAheadBehindResponse) 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 FetchGitAheadBehind, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FetchGitAheadBehindResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void commitWorkspaceChanges( - CommitWorkspaceChangesRequest 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 CommitWorkspaceChanges, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resetWorkspaceChanges( - ResetWorkspaceChangesRequest 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 ResetWorkspaceChanges, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void fetchFileDiff( - FetchFileDiffRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FetchFileDiffResponse) { - requests.add(request); - responseObserver.onNext(((FetchFileDiffResponse) 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 FetchFileDiff, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FetchFileDiffResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryDirectoryContents( - QueryDirectoryContentsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryDirectoryContentsResponse) { - requests.add(request); - responseObserver.onNext(((QueryDirectoryContentsResponse) 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 QueryDirectoryContents, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryDirectoryContentsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void makeDirectory( - MakeDirectoryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MakeDirectoryResponse) { - requests.add(request); - responseObserver.onNext(((MakeDirectoryResponse) 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 MakeDirectory, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MakeDirectoryResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void removeDirectory( - RemoveDirectoryRequest 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 RemoveDirectory, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void moveDirectory( - MoveDirectoryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MoveDirectoryResponse) { - requests.add(request); - responseObserver.onNext(((MoveDirectoryResponse) 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 MoveDirectory, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MoveDirectoryResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void readFile(ReadFileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ReadFileResponse) { - requests.add(request); - responseObserver.onNext(((ReadFileResponse) 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 ReadFile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ReadFileResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void removeFile(RemoveFileRequest 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 RemoveFile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void moveFile(MoveFileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MoveFileResponse) { - requests.add(request); - responseObserver.onNext(((MoveFileResponse) 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 MoveFile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MoveFileResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void writeFile( - WriteFileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WriteFileResponse) { - requests.add(request); - responseObserver.onNext(((WriteFileResponse) 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 WriteFile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WriteFileResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listCompilationResults( - ListCompilationResultsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListCompilationResultsResponse) { - requests.add(request); - responseObserver.onNext(((ListCompilationResultsResponse) 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 ListCompilationResults, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListCompilationResultsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCompilationResult( - GetCompilationResultRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CompilationResult) { - requests.add(request); - responseObserver.onNext(((CompilationResult) 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 GetCompilationResult, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CompilationResult.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createCompilationResult( - CreateCompilationResultRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CompilationResult) { - requests.add(request); - responseObserver.onNext(((CompilationResult) 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 CreateCompilationResult, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CompilationResult.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryCompilationResultActions( - QueryCompilationResultActionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryCompilationResultActionsResponse) { - requests.add(request); - responseObserver.onNext(((QueryCompilationResultActionsResponse) 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 QueryCompilationResultActions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryCompilationResultActionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listWorkflowInvocations( - ListWorkflowInvocationsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListWorkflowInvocationsResponse) { - requests.add(request); - responseObserver.onNext(((ListWorkflowInvocationsResponse) 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 ListWorkflowInvocations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListWorkflowInvocationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getWorkflowInvocation( - GetWorkflowInvocationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowInvocation) { - requests.add(request); - responseObserver.onNext(((WorkflowInvocation) 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 GetWorkflowInvocation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowInvocation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createWorkflowInvocation( - CreateWorkflowInvocationRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowInvocation) { - requests.add(request); - responseObserver.onNext(((WorkflowInvocation) 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 CreateWorkflowInvocation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowInvocation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteWorkflowInvocation( - DeleteWorkflowInvocationRequest 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 DeleteWorkflowInvocation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void cancelWorkflowInvocation( - CancelWorkflowInvocationRequest 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 CancelWorkflowInvocation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryWorkflowInvocationActions( - QueryWorkflowInvocationActionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryWorkflowInvocationActionsResponse) { - requests.add(request); - responseObserver.onNext(((QueryWorkflowInvocationActionsResponse) 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 QueryWorkflowInvocationActions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryWorkflowInvocationActionsResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockIAMPolicy.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockIAMPolicy.java deleted file mode 100644 index 14cf4c6206ae..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockIAMPolicy.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockIAMPolicy implements MockGrpcService { - private final MockIAMPolicyImpl serviceImpl; - - public MockIAMPolicy() { - serviceImpl = new MockIAMPolicyImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockIAMPolicyImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockIAMPolicyImpl.java deleted file mode 100644 index 7e3b48701047..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockIAMPolicyImpl.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -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; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockIAMPolicyImpl extends IAMPolicyImplBase { - private List requests; - private Queue responses; - - public MockIAMPolicyImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - 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/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockLocations.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockLocations.java deleted file mode 100644 index 98d124f0f4a5..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockLocations.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockLocations implements MockGrpcService { - private final MockLocationsImpl serviceImpl; - - public MockLocations() { - serviceImpl = new MockLocationsImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockLocationsImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockLocationsImpl.java deleted file mode 100644 index d547e1570414..000000000000 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/MockLocationsImpl.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import com.google.api.core.BetaApi; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.cloud.location.LocationsGrpc.LocationsImplBase; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockLocationsImpl extends LocationsImplBase { - private List requests; - private Queue responses; - - public MockLocationsImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listLocations( - ListLocationsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListLocationsResponse) { - requests.add(request); - responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListLocationsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Location) { - requests.add(request); - responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Location.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml deleted file mode 100644 index 1c4b05d2bf7f..000000000000 --- a/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-dataform-v1alpha2 - 0.59.0-SNAPSHOT - grpc-google-cloud-dataform-v1alpha2 - GRPC library for google-cloud-dataform - - com.google.cloud - google-cloud-dataform-parent - 0.59.0-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-dataform-v1alpha2 - - - com.google.guava - guava - - - diff --git a/java-dataform/grpc-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformGrpc.java deleted file mode 100644 index 3fcb97e8525e..000000000000 --- a/java-dataform/grpc-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformGrpc.java +++ /dev/null @@ -1,4584 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Dataform is a service to develop, create, document, test, and update curated
- * tables in BigQuery.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataform/v1alpha2/dataform.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DataformGrpc { - - private DataformGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.dataform.v1alpha2.Dataform"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest, - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse> - getListRepositoriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRepositories", - requestType = com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest, - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse> - getListRepositoriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest, - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse> - getListRepositoriesMethod; - if ((getListRepositoriesMethod = DataformGrpc.getListRepositoriesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getListRepositoriesMethod = DataformGrpc.getListRepositoriesMethod) == null) { - DataformGrpc.getListRepositoriesMethod = - getListRepositoriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRepositories")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("ListRepositories")) - .build(); - } - } - } - return getListRepositoriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getGetRepositoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRepository", - requestType = com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.Repository.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getGetRepositoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getGetRepositoryMethod; - if ((getGetRepositoryMethod = DataformGrpc.getGetRepositoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getGetRepositoryMethod = DataformGrpc.getGetRepositoryMethod) == null) { - DataformGrpc.getGetRepositoryMethod = - getGetRepositoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRepository")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetRepository")) - .build(); - } - } - } - return getGetRepositoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getCreateRepositoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRepository", - requestType = com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.Repository.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getCreateRepositoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getCreateRepositoryMethod; - if ((getCreateRepositoryMethod = DataformGrpc.getCreateRepositoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getCreateRepositoryMethod = DataformGrpc.getCreateRepositoryMethod) == null) { - DataformGrpc.getCreateRepositoryMethod = - getCreateRepositoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRepository")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateRepository")) - .build(); - } - } - } - return getCreateRepositoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getUpdateRepositoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRepository", - requestType = com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.Repository.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getUpdateRepositoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository> - getUpdateRepositoryMethod; - if ((getUpdateRepositoryMethod = DataformGrpc.getUpdateRepositoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getUpdateRepositoryMethod = DataformGrpc.getUpdateRepositoryMethod) == null) { - DataformGrpc.getUpdateRepositoryMethod = - getUpdateRepositoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRepository")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateRepository")) - .build(); - } - } - } - return getUpdateRepositoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest, com.google.protobuf.Empty> - getDeleteRepositoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRepository", - requestType = com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest, com.google.protobuf.Empty> - getDeleteRepositoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest, com.google.protobuf.Empty> - getDeleteRepositoryMethod; - if ((getDeleteRepositoryMethod = DataformGrpc.getDeleteRepositoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getDeleteRepositoryMethod = DataformGrpc.getDeleteRepositoryMethod) == null) { - DataformGrpc.getDeleteRepositoryMethod = - getDeleteRepositoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRepository")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteRepository")) - .build(); - } - } - } - return getDeleteRepositoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse> - getFetchRemoteBranchesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchRemoteBranches", - requestType = com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse> - getFetchRemoteBranchesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse> - getFetchRemoteBranchesMethod; - if ((getFetchRemoteBranchesMethod = DataformGrpc.getFetchRemoteBranchesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getFetchRemoteBranchesMethod = DataformGrpc.getFetchRemoteBranchesMethod) == null) { - DataformGrpc.getFetchRemoteBranchesMethod = - getFetchRemoteBranchesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FetchRemoteBranches")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("FetchRemoteBranches")) - .build(); - } - } - } - return getFetchRemoteBranchesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest, - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse> - getListWorkspacesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkspaces", - requestType = com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest, - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse> - getListWorkspacesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest, - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse> - getListWorkspacesMethod; - if ((getListWorkspacesMethod = DataformGrpc.getListWorkspacesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getListWorkspacesMethod = DataformGrpc.getListWorkspacesMethod) == null) { - DataformGrpc.getListWorkspacesMethod = - getListWorkspacesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkspaces")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("ListWorkspaces")) - .build(); - } - } - } - return getListWorkspacesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace> - getGetWorkspaceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkspace", - requestType = com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.Workspace.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace> - getGetWorkspaceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace> - getGetWorkspaceMethod; - if ((getGetWorkspaceMethod = DataformGrpc.getGetWorkspaceMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getGetWorkspaceMethod = DataformGrpc.getGetWorkspaceMethod) == null) { - DataformGrpc.getGetWorkspaceMethod = - getGetWorkspaceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkspace")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetWorkspace")) - .build(); - } - } - } - return getGetWorkspaceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace> - getCreateWorkspaceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkspace", - requestType = com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.Workspace.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace> - getCreateWorkspaceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace> - getCreateWorkspaceMethod; - if ((getCreateWorkspaceMethod = DataformGrpc.getCreateWorkspaceMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getCreateWorkspaceMethod = DataformGrpc.getCreateWorkspaceMethod) == null) { - DataformGrpc.getCreateWorkspaceMethod = - getCreateWorkspaceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkspace")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateWorkspace")) - .build(); - } - } - } - return getCreateWorkspaceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest, com.google.protobuf.Empty> - getDeleteWorkspaceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkspace", - requestType = com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest, com.google.protobuf.Empty> - getDeleteWorkspaceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest, com.google.protobuf.Empty> - getDeleteWorkspaceMethod; - if ((getDeleteWorkspaceMethod = DataformGrpc.getDeleteWorkspaceMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getDeleteWorkspaceMethod = DataformGrpc.getDeleteWorkspaceMethod) == null) { - DataformGrpc.getDeleteWorkspaceMethod = - getDeleteWorkspaceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkspace")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteWorkspace")) - .build(); - } - } - } - return getDeleteWorkspaceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse> - getInstallNpmPackagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InstallNpmPackages", - requestType = com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse> - getInstallNpmPackagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse> - getInstallNpmPackagesMethod; - if ((getInstallNpmPackagesMethod = DataformGrpc.getInstallNpmPackagesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getInstallNpmPackagesMethod = DataformGrpc.getInstallNpmPackagesMethod) == null) { - DataformGrpc.getInstallNpmPackagesMethod = - getInstallNpmPackagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InstallNpmPackages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("InstallNpmPackages")) - .build(); - } - } - } - return getInstallNpmPackagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest, com.google.protobuf.Empty> - getPullGitCommitsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PullGitCommits", - requestType = com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest, com.google.protobuf.Empty> - getPullGitCommitsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest, com.google.protobuf.Empty> - getPullGitCommitsMethod; - if ((getPullGitCommitsMethod = DataformGrpc.getPullGitCommitsMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getPullGitCommitsMethod = DataformGrpc.getPullGitCommitsMethod) == null) { - DataformGrpc.getPullGitCommitsMethod = - getPullGitCommitsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PullGitCommits")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("PullGitCommits")) - .build(); - } - } - } - return getPullGitCommitsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest, com.google.protobuf.Empty> - getPushGitCommitsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PushGitCommits", - requestType = com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest, com.google.protobuf.Empty> - getPushGitCommitsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest, com.google.protobuf.Empty> - getPushGitCommitsMethod; - if ((getPushGitCommitsMethod = DataformGrpc.getPushGitCommitsMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getPushGitCommitsMethod = DataformGrpc.getPushGitCommitsMethod) == null) { - DataformGrpc.getPushGitCommitsMethod = - getPushGitCommitsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PushGitCommits")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("PushGitCommits")) - .build(); - } - } - } - return getPushGitCommitsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse> - getFetchFileGitStatusesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchFileGitStatuses", - requestType = com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse> - getFetchFileGitStatusesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse> - getFetchFileGitStatusesMethod; - if ((getFetchFileGitStatusesMethod = DataformGrpc.getFetchFileGitStatusesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getFetchFileGitStatusesMethod = DataformGrpc.getFetchFileGitStatusesMethod) == null) { - DataformGrpc.getFetchFileGitStatusesMethod = - getFetchFileGitStatusesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FetchFileGitStatuses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("FetchFileGitStatuses")) - .build(); - } - } - } - return getFetchFileGitStatusesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse> - getFetchGitAheadBehindMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchGitAheadBehind", - requestType = com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse> - getFetchGitAheadBehindMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse> - getFetchGitAheadBehindMethod; - if ((getFetchGitAheadBehindMethod = DataformGrpc.getFetchGitAheadBehindMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getFetchGitAheadBehindMethod = DataformGrpc.getFetchGitAheadBehindMethod) == null) { - DataformGrpc.getFetchGitAheadBehindMethod = - getFetchGitAheadBehindMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FetchGitAheadBehind")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("FetchGitAheadBehind")) - .build(); - } - } - } - return getFetchGitAheadBehindMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest, - com.google.protobuf.Empty> - getCommitWorkspaceChangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CommitWorkspaceChanges", - requestType = com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest, - com.google.protobuf.Empty> - getCommitWorkspaceChangesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest, - com.google.protobuf.Empty> - getCommitWorkspaceChangesMethod; - if ((getCommitWorkspaceChangesMethod = DataformGrpc.getCommitWorkspaceChangesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getCommitWorkspaceChangesMethod = DataformGrpc.getCommitWorkspaceChangesMethod) - == null) { - DataformGrpc.getCommitWorkspaceChangesMethod = - getCommitWorkspaceChangesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CommitWorkspaceChanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("CommitWorkspaceChanges")) - .build(); - } - } - } - return getCommitWorkspaceChangesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest, - com.google.protobuf.Empty> - getResetWorkspaceChangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetWorkspaceChanges", - requestType = com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest, - com.google.protobuf.Empty> - getResetWorkspaceChangesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest, - com.google.protobuf.Empty> - getResetWorkspaceChangesMethod; - if ((getResetWorkspaceChangesMethod = DataformGrpc.getResetWorkspaceChangesMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getResetWorkspaceChangesMethod = DataformGrpc.getResetWorkspaceChangesMethod) - == null) { - DataformGrpc.getResetWorkspaceChangesMethod = - getResetWorkspaceChangesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResetWorkspaceChanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("ResetWorkspaceChanges")) - .build(); - } - } - } - return getResetWorkspaceChangesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest, - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse> - getFetchFileDiffMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchFileDiff", - requestType = com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest, - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse> - getFetchFileDiffMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest, - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse> - getFetchFileDiffMethod; - if ((getFetchFileDiffMethod = DataformGrpc.getFetchFileDiffMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getFetchFileDiffMethod = DataformGrpc.getFetchFileDiffMethod) == null) { - DataformGrpc.getFetchFileDiffMethod = - getFetchFileDiffMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchFileDiff")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("FetchFileDiff")) - .build(); - } - } - } - return getFetchFileDiffMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse> - getQueryDirectoryContentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryDirectoryContents", - requestType = com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse> - getQueryDirectoryContentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse> - getQueryDirectoryContentsMethod; - if ((getQueryDirectoryContentsMethod = DataformGrpc.getQueryDirectoryContentsMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getQueryDirectoryContentsMethod = DataformGrpc.getQueryDirectoryContentsMethod) - == null) { - DataformGrpc.getQueryDirectoryContentsMethod = - getQueryDirectoryContentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "QueryDirectoryContents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("QueryDirectoryContents")) - .build(); - } - } - } - return getQueryDirectoryContentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse> - getMakeDirectoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MakeDirectory", - requestType = com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse> - getMakeDirectoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse> - getMakeDirectoryMethod; - if ((getMakeDirectoryMethod = DataformGrpc.getMakeDirectoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getMakeDirectoryMethod = DataformGrpc.getMakeDirectoryMethod) == null) { - DataformGrpc.getMakeDirectoryMethod = - getMakeDirectoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MakeDirectory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MakeDirectory")) - .build(); - } - } - } - return getMakeDirectoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest, com.google.protobuf.Empty> - getRemoveDirectoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RemoveDirectory", - requestType = com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest, com.google.protobuf.Empty> - getRemoveDirectoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest, com.google.protobuf.Empty> - getRemoveDirectoryMethod; - if ((getRemoveDirectoryMethod = DataformGrpc.getRemoveDirectoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getRemoveDirectoryMethod = DataformGrpc.getRemoveDirectoryMethod) == null) { - DataformGrpc.getRemoveDirectoryMethod = - getRemoveDirectoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveDirectory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("RemoveDirectory")) - .build(); - } - } - } - return getRemoveDirectoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse> - getMoveDirectoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MoveDirectory", - requestType = com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse> - getMoveDirectoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse> - getMoveDirectoryMethod; - if ((getMoveDirectoryMethod = DataformGrpc.getMoveDirectoryMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getMoveDirectoryMethod = DataformGrpc.getMoveDirectoryMethod) == null) { - DataformGrpc.getMoveDirectoryMethod = - getMoveDirectoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveDirectory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveDirectory")) - .build(); - } - } - } - return getMoveDirectoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ReadFileRequest, - com.google.cloud.dataform.v1alpha2.ReadFileResponse> - getReadFileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReadFile", - requestType = com.google.cloud.dataform.v1alpha2.ReadFileRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.ReadFileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ReadFileRequest, - com.google.cloud.dataform.v1alpha2.ReadFileResponse> - getReadFileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ReadFileRequest, - com.google.cloud.dataform.v1alpha2.ReadFileResponse> - getReadFileMethod; - if ((getReadFileMethod = DataformGrpc.getReadFileMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getReadFileMethod = DataformGrpc.getReadFileMethod) == null) { - DataformGrpc.getReadFileMethod = - getReadFileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadFile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ReadFileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ReadFileResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("ReadFile")) - .build(); - } - } - } - return getReadFileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.RemoveFileRequest, com.google.protobuf.Empty> - getRemoveFileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RemoveFile", - requestType = com.google.cloud.dataform.v1alpha2.RemoveFileRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.RemoveFileRequest, com.google.protobuf.Empty> - getRemoveFileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.RemoveFileRequest, com.google.protobuf.Empty> - getRemoveFileMethod; - if ((getRemoveFileMethod = DataformGrpc.getRemoveFileMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getRemoveFileMethod = DataformGrpc.getRemoveFileMethod) == null) { - DataformGrpc.getRemoveFileMethod = - getRemoveFileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveFile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.RemoveFileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("RemoveFile")) - .build(); - } - } - } - return getRemoveFileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MoveFileRequest, - com.google.cloud.dataform.v1alpha2.MoveFileResponse> - getMoveFileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MoveFile", - requestType = com.google.cloud.dataform.v1alpha2.MoveFileRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.MoveFileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MoveFileRequest, - com.google.cloud.dataform.v1alpha2.MoveFileResponse> - getMoveFileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.MoveFileRequest, - com.google.cloud.dataform.v1alpha2.MoveFileResponse> - getMoveFileMethod; - if ((getMoveFileMethod = DataformGrpc.getMoveFileMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getMoveFileMethod = DataformGrpc.getMoveFileMethod) == null) { - DataformGrpc.getMoveFileMethod = - getMoveFileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveFile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.MoveFileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.MoveFileResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveFile")) - .build(); - } - } - } - return getMoveFileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.WriteFileRequest, - com.google.cloud.dataform.v1alpha2.WriteFileResponse> - getWriteFileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WriteFile", - requestType = com.google.cloud.dataform.v1alpha2.WriteFileRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.WriteFileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.WriteFileRequest, - com.google.cloud.dataform.v1alpha2.WriteFileResponse> - getWriteFileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.WriteFileRequest, - com.google.cloud.dataform.v1alpha2.WriteFileResponse> - getWriteFileMethod; - if ((getWriteFileMethod = DataformGrpc.getWriteFileMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getWriteFileMethod = DataformGrpc.getWriteFileMethod) == null) { - DataformGrpc.getWriteFileMethod = - getWriteFileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteFile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.WriteFileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.WriteFileResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataformMethodDescriptorSupplier("WriteFile")) - .build(); - } - } - } - return getWriteFileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse> - getListCompilationResultsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCompilationResults", - requestType = com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse> - getListCompilationResultsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.ListCompilationResultsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("ListCompilationResults")) - .build(); - } - } - } - return getListCompilationResultsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.CompilationResult> - getGetCompilationResultMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCompilationResult", - requestType = com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.CompilationResult.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.CompilationResult> - getGetCompilationResultMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.GetCompilationResultRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CompilationResult - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("GetCompilationResult")) - .build(); - } - } - } - return getGetCompilationResultMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.CompilationResult> - getCreateCompilationResultMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCompilationResult", - requestType = com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.CompilationResult.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.CompilationResult> - getCreateCompilationResultMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.CreateCompilationResultRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CompilationResult - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("CreateCompilationResult")) - .build(); - } - } - } - return getCreateCompilationResultMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse> - getQueryCompilationResultActionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryCompilationResultActions", - requestType = com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse> - getQueryCompilationResultActionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1alpha2.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.v1alpha2 - .QueryCompilationResultActionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2 - .QueryCompilationResultActionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("QueryCompilationResultActions")) - .build(); - } - } - } - return getQueryCompilationResultActionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse> - getListWorkflowInvocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkflowInvocations", - requestType = com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse> - getListWorkflowInvocationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse> - getListWorkflowInvocationsMethod; - if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) - == null) { - synchronized (DataformGrpc.class) { - if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) - == null) { - DataformGrpc.getListWorkflowInvocationsMethod = - getListWorkflowInvocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkflowInvocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("ListWorkflowInvocations")) - .build(); - } - } - } - return getListWorkflowInvocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getGetWorkflowInvocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkflowInvocation", - requestType = com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.WorkflowInvocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getGetWorkflowInvocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getGetWorkflowInvocationMethod; - if ((getGetWorkflowInvocationMethod = DataformGrpc.getGetWorkflowInvocationMethod) == null) { - synchronized (DataformGrpc.class) { - if ((getGetWorkflowInvocationMethod = DataformGrpc.getGetWorkflowInvocationMethod) - == null) { - DataformGrpc.getGetWorkflowInvocationMethod = - getGetWorkflowInvocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkflowInvocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("GetWorkflowInvocation")) - .build(); - } - } - } - return getGetWorkflowInvocationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getCreateWorkflowInvocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowInvocation", - requestType = com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest.class, - responseType = com.google.cloud.dataform.v1alpha2.WorkflowInvocation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getCreateWorkflowInvocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getCreateWorkflowInvocationMethod; - if ((getCreateWorkflowInvocationMethod = DataformGrpc.getCreateWorkflowInvocationMethod) - == null) { - synchronized (DataformGrpc.class) { - if ((getCreateWorkflowInvocationMethod = DataformGrpc.getCreateWorkflowInvocationMethod) - == null) { - DataformGrpc.getCreateWorkflowInvocationMethod = - getCreateWorkflowInvocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkflowInvocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation - .getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("CreateWorkflowInvocation")) - .build(); - } - } - } - return getCreateWorkflowInvocationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest, - com.google.protobuf.Empty> - getDeleteWorkflowInvocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowInvocation", - requestType = com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest, - com.google.protobuf.Empty> - getDeleteWorkflowInvocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest, - com.google.protobuf.Empty> - getDeleteWorkflowInvocationMethod; - if ((getDeleteWorkflowInvocationMethod = DataformGrpc.getDeleteWorkflowInvocationMethod) - == null) { - synchronized (DataformGrpc.class) { - if ((getDeleteWorkflowInvocationMethod = DataformGrpc.getDeleteWorkflowInvocationMethod) - == null) { - DataformGrpc.getDeleteWorkflowInvocationMethod = - getDeleteWorkflowInvocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkflowInvocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("DeleteWorkflowInvocation")) - .build(); - } - } - } - return getDeleteWorkflowInvocationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest, - com.google.protobuf.Empty> - getCancelWorkflowInvocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelWorkflowInvocation", - requestType = com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest, - com.google.protobuf.Empty> - getCancelWorkflowInvocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest, - com.google.protobuf.Empty> - getCancelWorkflowInvocationMethod; - if ((getCancelWorkflowInvocationMethod = DataformGrpc.getCancelWorkflowInvocationMethod) - == null) { - synchronized (DataformGrpc.class) { - if ((getCancelWorkflowInvocationMethod = DataformGrpc.getCancelWorkflowInvocationMethod) - == null) { - DataformGrpc.getCancelWorkflowInvocationMethod = - getCancelWorkflowInvocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CancelWorkflowInvocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("CancelWorkflowInvocation")) - .build(); - } - } - } - return getCancelWorkflowInvocationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse> - getQueryWorkflowInvocationActionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryWorkflowInvocationActions", - requestType = com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest.class, - responseType = - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse> - getQueryWorkflowInvocationActionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse> - getQueryWorkflowInvocationActionsMethod; - if ((getQueryWorkflowInvocationActionsMethod = - DataformGrpc.getQueryWorkflowInvocationActionsMethod) - == null) { - synchronized (DataformGrpc.class) { - if ((getQueryWorkflowInvocationActionsMethod = - DataformGrpc.getQueryWorkflowInvocationActionsMethod) - == null) { - DataformGrpc.getQueryWorkflowInvocationActionsMethod = - getQueryWorkflowInvocationActionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "QueryWorkflowInvocationActions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2 - .QueryWorkflowInvocationActionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataform.v1alpha2 - .QueryWorkflowInvocationActionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DataformMethodDescriptorSupplier("QueryWorkflowInvocationActions")) - .build(); - } - } - } - return getQueryWorkflowInvocationActionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataformStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformStub(channel, callOptions); - } - }; - return DataformStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingStub(channel, callOptions); - } - }; - return DataformBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); - } - }; - return DataformFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Dataform is a service to develop, create, document, test, and update curated
-   * tables in BigQuery.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists Repositories in a given project and location.
-     * 
- */ - default void listRepositories( - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRepositoriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches a single Repository.
-     * 
- */ - default void getRepository( - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRepositoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Repository in a given project and location.
-     * 
- */ - default void createRepository( - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRepositoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a single Repository.
-     * 
- */ - default void updateRepository( - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRepositoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Repository.
-     * 
- */ - default void deleteRepository( - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRepositoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches a Repository's remote branches.
-     * 
- */ - default void fetchRemoteBranches( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchRemoteBranchesMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Workspaces in a given Repository.
-     * 
- */ - default void listWorkspaces( - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkspacesMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches a single Workspace.
-     * 
- */ - default void getWorkspace( - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkspaceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Workspace in a given Repository.
-     * 
- */ - default void createWorkspace( - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkspaceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Workspace.
-     * 
- */ - default void deleteWorkspace( - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkspaceMethod(), responseObserver); - } - - /** - * - * - *
-     * Installs dependency NPM packages (inside a Workspace).
-     * 
- */ - default void installNpmPackages( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstallNpmPackagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Pulls Git commits from the Repository's remote into a Workspace.
-     * 
- */ - default void pullGitCommits( - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPullGitCommitsMethod(), responseObserver); - } - - /** - * - * - *
-     * Pushes Git commits from a Workspace to the Repository's remote.
-     * 
- */ - default void pushGitCommits( - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPushGitCommitsMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches Git statuses for the files in a Workspace.
-     * 
- */ - default void fetchFileGitStatuses( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchFileGitStatusesMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches Git ahead/behind against a remote branch.
-     * 
- */ - default void fetchGitAheadBehind( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchGitAheadBehindMethod(), responseObserver); - } - - /** - * - * - *
-     * Applies a Git commit for uncommitted files in a Workspace.
-     * 
- */ - default void commitWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCommitWorkspaceChangesMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs a Git reset for uncommitted files in a Workspace.
-     * 
- */ - default void resetWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetWorkspaceChangesMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches Git diff for an uncommitted file in a Workspace.
-     * 
- */ - default void fetchFileDiff( - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchFileDiffMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the contents of a given Workspace directory.
-     * 
- */ - default void queryDirectoryContents( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryDirectoryContentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a directory inside a Workspace.
-     * 
- */ - default void makeDirectory( - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getMakeDirectoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a directory (inside a Workspace) and all of its contents.
-     * 
- */ - default void removeDirectory( - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRemoveDirectoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Moves a directory (inside a Workspace), and all of its contents, to a new
-     * location.
-     * 
- */ - default void moveDirectory( - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getMoveDirectoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the contents of a file (inside a Workspace).
-     * 
- */ - default void readFile( - com.google.cloud.dataform.v1alpha2.ReadFileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadFileMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a file (inside a Workspace).
-     * 
- */ - default void removeFile( - com.google.cloud.dataform.v1alpha2.RemoveFileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveFileMethod(), responseObserver); - } - - /** - * - * - *
-     * Moves a file (inside a Workspace) to a new location.
-     * 
- */ - default void moveFile( - com.google.cloud.dataform.v1alpha2.MoveFileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFileMethod(), responseObserver); - } - - /** - * - * - *
-     * Writes to a file (inside a Workspace).
-     * 
- */ - default void writeFile( - com.google.cloud.dataform.v1alpha2.WriteFileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteFileMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists CompilationResults in a given Repository.
-     * 
- */ - default void listCompilationResults( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCompilationResultsMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches a single CompilationResult.
-     * 
- */ - default void getCompilationResult( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.QueryCompilationResultActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryCompilationResultActionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists WorkflowInvocations in a given Repository.
-     * 
- */ - default void listWorkflowInvocations( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkflowInvocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches a single WorkflowInvocation.
-     * 
- */ - default void getWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkflowInvocationMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new WorkflowInvocation in a given Repository.
-     * 
- */ - default void createWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkflowInvocationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single WorkflowInvocation.
-     * 
- */ - default void deleteWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkflowInvocationMethod(), responseObserver); - } - - /** - * - * - *
-     * Requests cancellation of a running WorkflowInvocation.
-     * 
- */ - default void cancelWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelWorkflowInvocationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
-     * 
- */ - default void queryWorkflowInvocationActions( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryWorkflowInvocationActionsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Dataform. - * - *
-   * Dataform is a service to develop, create, document, test, and update curated
-   * tables in BigQuery.
-   * 
- */ - public abstract static class DataformImplBase implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DataformGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Dataform. - * - *
-   * Dataform is a service to develop, create, document, test, and update curated
-   * tables in BigQuery.
-   * 
- */ - public static final class DataformStub extends io.grpc.stub.AbstractAsyncStub { - private DataformStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Repositories in a given project and location.
-     * 
- */ - public void listRepositories( - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRepositoriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches a single Repository.
-     * 
- */ - public void getRepository( - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRepositoryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Repository in a given project and location.
-     * 
- */ - public void createRepository( - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRepositoryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a single Repository.
-     * 
- */ - public void updateRepository( - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRepositoryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Repository.
-     * 
- */ - public void deleteRepository( - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches a Repository's remote branches.
-     * 
- */ - public void fetchRemoteBranches( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchRemoteBranchesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Workspaces in a given Repository.
-     * 
- */ - public void listWorkspaces( - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkspacesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches a single Workspace.
-     * 
- */ - public void getWorkspace( - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkspaceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Workspace in a given Repository.
-     * 
- */ - public void createWorkspace( - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Workspace.
-     * 
- */ - public void deleteWorkspace( - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkspaceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Installs dependency NPM packages (inside a Workspace).
-     * 
- */ - public void installNpmPackages( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstallNpmPackagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Pulls Git commits from the Repository's remote into a Workspace.
-     * 
- */ - public void pullGitCommits( - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPullGitCommitsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Pushes Git commits from a Workspace to the Repository's remote.
-     * 
- */ - public void pushGitCommits( - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPushGitCommitsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches Git statuses for the files in a Workspace.
-     * 
- */ - public void fetchFileGitStatuses( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchFileGitStatusesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches Git ahead/behind against a remote branch.
-     * 
- */ - public void fetchGitAheadBehind( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchGitAheadBehindMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Applies a Git commit for uncommitted files in a Workspace.
-     * 
- */ - public void commitWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCommitWorkspaceChangesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs a Git reset for uncommitted files in a Workspace.
-     * 
- */ - public void resetWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetWorkspaceChangesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches Git diff for an uncommitted file in a Workspace.
-     * 
- */ - public void fetchFileDiff( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.WriteFileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteFileMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists CompilationResults in a given Repository.
-     * 
- */ - public void listCompilationResults( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCompilationResultsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches a single CompilationResult.
-     * 
- */ - public void getCompilationResult( - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCompilationResultMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new CompilationResult in a given project and location.
-     * 
- */ - public void createCompilationResult( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCompilationResultMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns CompilationResultActions in a given CompilationResult.
-     * 
- */ - public void queryCompilationResultActions( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryCompilationResultActionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists WorkflowInvocations in a given Repository.
-     * 
- */ - public void listWorkflowInvocations( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowInvocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches a single WorkflowInvocation.
-     * 
- */ - public void getWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new WorkflowInvocation in a given Repository.
-     * 
- */ - public void createWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single WorkflowInvocation.
-     * 
- */ - public void deleteWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Requests cancellation of a running WorkflowInvocation.
-     * 
- */ - public void cancelWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
-     * 
- */ - public void queryWorkflowInvocationActions( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Dataform. - * - *
-   * Dataform is a service to develop, create, document, test, and update curated
-   * tables in BigQuery.
-   * 
- */ - public static final class DataformBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataformBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataformBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Repositories in a given project and location.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse listRepositories( - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRepositoriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches a single Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.Repository getRepository( - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRepositoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Repository in a given project and location.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.Repository createRepository( - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a single Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.Repository updateRepository( - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Repository.
-     * 
- */ - public com.google.protobuf.Empty deleteRepository( - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches a Repository's remote branches.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse fetchRemoteBranches( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchRemoteBranchesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Workspaces in a given Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse listWorkspaces( - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkspacesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches a single Workspace.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.Workspace getWorkspace( - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkspaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Workspace in a given Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.Workspace createWorkspace( - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Workspace.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkspace( - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkspaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Installs dependency NPM packages (inside a Workspace).
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse installNpmPackages( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInstallNpmPackagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Pulls Git commits from the Repository's remote into a Workspace.
-     * 
- */ - public com.google.protobuf.Empty pullGitCommits( - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPullGitCommitsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Pushes Git commits from a Workspace to the Repository's remote.
-     * 
- */ - public com.google.protobuf.Empty pushGitCommits( - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPushGitCommitsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches Git statuses for the files in a Workspace.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse fetchFileGitStatuses( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchFileGitStatusesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches Git ahead/behind against a remote branch.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse fetchGitAheadBehind( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchGitAheadBehindMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Applies a Git commit for uncommitted files in a Workspace.
-     * 
- */ - public com.google.protobuf.Empty commitWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCommitWorkspaceChangesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs a Git reset for uncommitted files in a Workspace.
-     * 
- */ - public com.google.protobuf.Empty resetWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetWorkspaceChangesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches Git diff for an uncommitted file in a Workspace.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse fetchFileDiff( - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchFileDiffMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the contents of a given Workspace directory.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse queryDirectoryContents( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryDirectoryContentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a directory inside a Workspace.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse makeDirectory( - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMakeDirectoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a directory (inside a Workspace) and all of its contents.
-     * 
- */ - public com.google.protobuf.Empty removeDirectory( - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRemoveDirectoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Moves a directory (inside a Workspace), and all of its contents, to a new
-     * location.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse moveDirectory( - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMoveDirectoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the contents of a file (inside a Workspace).
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.ReadFileResponse readFile( - com.google.cloud.dataform.v1alpha2.ReadFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReadFileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a file (inside a Workspace).
-     * 
- */ - public com.google.protobuf.Empty removeFile( - com.google.cloud.dataform.v1alpha2.RemoveFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRemoveFileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Moves a file (inside a Workspace) to a new location.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.MoveFileResponse moveFile( - com.google.cloud.dataform.v1alpha2.MoveFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMoveFileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Writes to a file (inside a Workspace).
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.WriteFileResponse writeFile( - com.google.cloud.dataform.v1alpha2.WriteFileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getWriteFileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists CompilationResults in a given Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse listCompilationResults( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCompilationResultsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches a single CompilationResult.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResult( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult createCompilationResult( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns CompilationResultActions in a given CompilationResult.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - queryCompilationResultActions( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists WorkflowInvocations in a given Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - listWorkflowInvocations( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches a single WorkflowInvocation.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new WorkflowInvocation in a given Repository.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation createWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single WorkflowInvocation.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Requests cancellation of a running WorkflowInvocation.
-     * 
- */ - public com.google.protobuf.Empty cancelWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
-     * 
- */ - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - queryWorkflowInvocationActions( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. - * - *
-   * Dataform is a service to develop, create, document, test, and update curated
-   * tables in BigQuery.
-   * 
- */ - public static final class DataformFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Repositories in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse> - listRepositories(com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRepositoriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches a single Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.Repository> - getRepository(com.google.cloud.dataform.v1alpha2.GetRepositoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRepositoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Repository in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.Repository> - createRepository(com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRepositoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a single Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.Repository> - updateRepository(com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRepositoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRepository(com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches a Repository's remote branches.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse> - fetchRemoteBranches(com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchRemoteBranchesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Workspaces in a given Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse> - listWorkspaces(com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkspacesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches a single Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.Workspace> - getWorkspace(com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkspaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Workspace in a given Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.Workspace> - createWorkspace(com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkspace(com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkspaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Installs dependency NPM packages (inside a Workspace).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse> - installNpmPackages(com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInstallNpmPackagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Pulls Git commits from the Repository's remote into a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - pullGitCommits(com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPullGitCommitsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Pushes Git commits from a Workspace to the Repository's remote.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - pushGitCommits(com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPushGitCommitsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches Git statuses for the files in a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse> - fetchFileGitStatuses( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchFileGitStatusesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches Git ahead/behind against a remote branch.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse> - fetchGitAheadBehind(com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchGitAheadBehindMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Applies a Git commit for uncommitted files in a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - commitWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCommitWorkspaceChangesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs a Git reset for uncommitted files in a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resetWorkspaceChanges( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetWorkspaceChangesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches Git diff for an uncommitted file in a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse> - fetchFileDiff(com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchFileDiffMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the contents of a given Workspace directory.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse> - queryDirectoryContents( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryDirectoryContentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a directory inside a Workspace.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse> - makeDirectory(com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMakeDirectoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a directory (inside a Workspace) and all of its contents.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - removeDirectory(com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRemoveDirectoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Moves a directory (inside a Workspace), and all of its contents, to a new
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse> - moveDirectory(com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMoveDirectoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the contents of a file (inside a Workspace).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.ReadFileResponse> - readFile(com.google.cloud.dataform.v1alpha2.ReadFileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReadFileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a file (inside a Workspace).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture removeFile( - com.google.cloud.dataform.v1alpha2.RemoveFileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRemoveFileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Moves a file (inside a Workspace) to a new location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.MoveFileResponse> - moveFile(com.google.cloud.dataform.v1alpha2.MoveFileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMoveFileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Writes to a file (inside a Workspace).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.WriteFileResponse> - writeFile(com.google.cloud.dataform.v1alpha2.WriteFileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getWriteFileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists CompilationResults in a given Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse> - listCompilationResults( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCompilationResultsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches a single CompilationResult.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.CompilationResult> - getCompilationResult( - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCompilationResultMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new CompilationResult in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.CompilationResult> - createCompilationResult( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCompilationResultMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns CompilationResultActions in a given CompilationResult.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse> - queryCompilationResultActions( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryCompilationResultActionsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Lists WorkflowInvocations in a given Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse> - listWorkflowInvocations( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkflowInvocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches a single WorkflowInvocation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - getWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkflowInvocationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new WorkflowInvocation in a given Repository.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation> - createWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkflowInvocationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single WorkflowInvocation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkflowInvocationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Requests cancellation of a running WorkflowInvocation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActions( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_LIST_REPOSITORIES = 0; - private static final int METHODID_GET_REPOSITORY = 1; - private static final int METHODID_CREATE_REPOSITORY = 2; - private static final int METHODID_UPDATE_REPOSITORY = 3; - private static final int METHODID_DELETE_REPOSITORY = 4; - private static final int METHODID_FETCH_REMOTE_BRANCHES = 5; - private static final int METHODID_LIST_WORKSPACES = 6; - private static final int METHODID_GET_WORKSPACE = 7; - private static final int METHODID_CREATE_WORKSPACE = 8; - private static final int METHODID_DELETE_WORKSPACE = 9; - private static final int METHODID_INSTALL_NPM_PACKAGES = 10; - private static final int METHODID_PULL_GIT_COMMITS = 11; - private static final int METHODID_PUSH_GIT_COMMITS = 12; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 13; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 14; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 15; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 16; - private static final int METHODID_FETCH_FILE_DIFF = 17; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 18; - private static final int METHODID_MAKE_DIRECTORY = 19; - private static final int METHODID_REMOVE_DIRECTORY = 20; - private static final int METHODID_MOVE_DIRECTORY = 21; - private static final int METHODID_READ_FILE = 22; - private static final int METHODID_REMOVE_FILE = 23; - private static final int METHODID_MOVE_FILE = 24; - private static final int METHODID_WRITE_FILE = 25; - private static final int METHODID_LIST_COMPILATION_RESULTS = 26; - private static final int METHODID_GET_COMPILATION_RESULT = 27; - private static final int METHODID_CREATE_COMPILATION_RESULT = 28; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 29; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 30; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 31; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 32; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 33; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 34; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 35; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_REPOSITORIES: - serviceImpl.listRepositories( - (com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse>) - responseObserver); - break; - case METHODID_GET_REPOSITORY: - serviceImpl.getRepository( - (com.google.cloud.dataform.v1alpha2.GetRepositoryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_REPOSITORY: - serviceImpl.createRepository( - (com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_REPOSITORY: - serviceImpl.updateRepository( - (com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_REPOSITORY: - serviceImpl.deleteRepository( - (com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_REMOTE_BRANCHES: - serviceImpl.fetchRemoteBranches( - (com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse>) - responseObserver); - break; - case METHODID_LIST_WORKSPACES: - serviceImpl.listWorkspaces( - (com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse>) - responseObserver); - break; - case METHODID_GET_WORKSPACE: - serviceImpl.getWorkspace( - (com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_WORKSPACE: - serviceImpl.createWorkspace( - (com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_WORKSPACE: - serviceImpl.deleteWorkspace( - (com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INSTALL_NPM_PACKAGES: - serviceImpl.installNpmPackages( - (com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse>) - responseObserver); - break; - case METHODID_PULL_GIT_COMMITS: - serviceImpl.pullGitCommits( - (com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PUSH_GIT_COMMITS: - serviceImpl.pushGitCommits( - (com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_FILE_GIT_STATUSES: - serviceImpl.fetchFileGitStatuses( - (com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse>) - responseObserver); - break; - case METHODID_FETCH_GIT_AHEAD_BEHIND: - serviceImpl.fetchGitAheadBehind( - (com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse>) - responseObserver); - break; - case METHODID_COMMIT_WORKSPACE_CHANGES: - serviceImpl.commitWorkspaceChanges( - (com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_WORKSPACE_CHANGES: - serviceImpl.resetWorkspaceChanges( - (com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_FILE_DIFF: - serviceImpl.fetchFileDiff( - (com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse>) - responseObserver); - break; - case METHODID_QUERY_DIRECTORY_CONTENTS: - serviceImpl.queryDirectoryContents( - (com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse>) - responseObserver); - break; - case METHODID_MAKE_DIRECTORY: - serviceImpl.makeDirectory( - (com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse>) - responseObserver); - break; - case METHODID_REMOVE_DIRECTORY: - serviceImpl.removeDirectory( - (com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MOVE_DIRECTORY: - serviceImpl.moveDirectory( - (com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse>) - responseObserver); - break; - case METHODID_READ_FILE: - serviceImpl.readFile( - (com.google.cloud.dataform.v1alpha2.ReadFileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_REMOVE_FILE: - serviceImpl.removeFile( - (com.google.cloud.dataform.v1alpha2.RemoveFileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MOVE_FILE: - serviceImpl.moveFile( - (com.google.cloud.dataform.v1alpha2.MoveFileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_WRITE_FILE: - serviceImpl.writeFile( - (com.google.cloud.dataform.v1alpha2.WriteFileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_COMPILATION_RESULTS: - serviceImpl.listCompilationResults( - (com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse>) - responseObserver); - break; - case METHODID_GET_COMPILATION_RESULT: - serviceImpl.getCompilationResult( - (com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_COMPILATION_RESULT: - serviceImpl.createCompilationResult( - (com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_QUERY_COMPILATION_RESULT_ACTIONS: - serviceImpl.queryCompilationResultActions( - (com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse>) - responseObserver); - break; - case METHODID_LIST_WORKFLOW_INVOCATIONS: - serviceImpl.listWorkflowInvocations( - (com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse>) - responseObserver); - break; - case METHODID_GET_WORKFLOW_INVOCATION: - serviceImpl.getWorkflowInvocation( - (com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_WORKFLOW_INVOCATION: - serviceImpl.createWorkflowInvocation( - (com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_WORKFLOW_INVOCATION: - serviceImpl.deleteWorkflowInvocation( - (com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_WORKFLOW_INVOCATION: - serviceImpl.cancelWorkflowInvocation( - (com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS: - serviceImpl.queryWorkflowInvocationActions( - (com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListRepositoriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest, - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse>( - service, METHODID_LIST_REPOSITORIES))) - .addMethod( - getGetRepositoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository>( - service, METHODID_GET_REPOSITORY))) - .addMethod( - getCreateRepositoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository>( - service, METHODID_CREATE_REPOSITORY))) - .addMethod( - getUpdateRepositoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest, - com.google.cloud.dataform.v1alpha2.Repository>( - service, METHODID_UPDATE_REPOSITORY))) - .addMethod( - getDeleteRepositoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_REPOSITORY))) - .addMethod( - getFetchRemoteBranchesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse>( - service, METHODID_FETCH_REMOTE_BRANCHES))) - .addMethod( - getListWorkspacesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest, - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse>( - service, METHODID_LIST_WORKSPACES))) - .addMethod( - getGetWorkspaceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace>(service, METHODID_GET_WORKSPACE))) - .addMethod( - getCreateWorkspaceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest, - com.google.cloud.dataform.v1alpha2.Workspace>( - service, METHODID_CREATE_WORKSPACE))) - .addMethod( - getDeleteWorkspaceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_WORKSPACE))) - .addMethod( - getInstallNpmPackagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse>( - service, METHODID_INSTALL_NPM_PACKAGES))) - .addMethod( - getPullGitCommitsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest, - com.google.protobuf.Empty>(service, METHODID_PULL_GIT_COMMITS))) - .addMethod( - getPushGitCommitsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest, - com.google.protobuf.Empty>(service, METHODID_PUSH_GIT_COMMITS))) - .addMethod( - getFetchFileGitStatusesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse>( - service, METHODID_FETCH_FILE_GIT_STATUSES))) - .addMethod( - getFetchGitAheadBehindMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse>( - service, METHODID_FETCH_GIT_AHEAD_BEHIND))) - .addMethod( - getCommitWorkspaceChangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest, - com.google.protobuf.Empty>(service, METHODID_COMMIT_WORKSPACE_CHANGES))) - .addMethod( - getResetWorkspaceChangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest, - com.google.protobuf.Empty>(service, METHODID_RESET_WORKSPACE_CHANGES))) - .addMethod( - getFetchFileDiffMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest, - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse>( - service, METHODID_FETCH_FILE_DIFF))) - .addMethod( - getQueryDirectoryContentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse>( - service, METHODID_QUERY_DIRECTORY_CONTENTS))) - .addMethod( - getMakeDirectoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse>( - service, METHODID_MAKE_DIRECTORY))) - .addMethod( - getRemoveDirectoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest, - com.google.protobuf.Empty>(service, METHODID_REMOVE_DIRECTORY))) - .addMethod( - getMoveDirectoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest, - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse>( - service, METHODID_MOVE_DIRECTORY))) - .addMethod( - getReadFileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.ReadFileRequest, - com.google.cloud.dataform.v1alpha2.ReadFileResponse>( - service, METHODID_READ_FILE))) - .addMethod( - getRemoveFileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.RemoveFileRequest, - com.google.protobuf.Empty>(service, METHODID_REMOVE_FILE))) - .addMethod( - getMoveFileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.MoveFileRequest, - com.google.cloud.dataform.v1alpha2.MoveFileResponse>( - service, METHODID_MOVE_FILE))) - .addMethod( - getWriteFileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.WriteFileRequest, - com.google.cloud.dataform.v1alpha2.WriteFileResponse>( - service, METHODID_WRITE_FILE))) - .addMethod( - getListCompilationResultsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse>( - service, METHODID_LIST_COMPILATION_RESULTS))) - .addMethod( - getGetCompilationResultMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.CompilationResult>( - service, METHODID_GET_COMPILATION_RESULT))) - .addMethod( - getCreateCompilationResultMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest, - com.google.cloud.dataform.v1alpha2.CompilationResult>( - service, METHODID_CREATE_COMPILATION_RESULT))) - .addMethod( - getQueryCompilationResultActionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse>( - service, METHODID_QUERY_COMPILATION_RESULT_ACTIONS))) - .addMethod( - getListWorkflowInvocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse>( - service, METHODID_LIST_WORKFLOW_INVOCATIONS))) - .addMethod( - getGetWorkflowInvocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation>( - service, METHODID_GET_WORKFLOW_INVOCATION))) - .addMethod( - getCreateWorkflowInvocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation>( - service, METHODID_CREATE_WORKFLOW_INVOCATION))) - .addMethod( - getDeleteWorkflowInvocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_WORKFLOW_INVOCATION))) - .addMethod( - getCancelWorkflowInvocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest, - com.google.protobuf.Empty>(service, METHODID_CANCEL_WORKFLOW_INVOCATION))) - .addMethod( - getQueryWorkflowInvocationActionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse>( - service, METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS))) - .build(); - } - - private abstract static class DataformBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataformBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Dataform"); - } - } - - private static final class DataformFileDescriptorSupplier extends DataformBaseDescriptorSupplier { - DataformFileDescriptorSupplier() {} - } - - private static final class DataformMethodDescriptorSupplier extends DataformBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - DataformMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DataformGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataformFileDescriptorSupplier()) - .addMethod(getListRepositoriesMethod()) - .addMethod(getGetRepositoryMethod()) - .addMethod(getCreateRepositoryMethod()) - .addMethod(getUpdateRepositoryMethod()) - .addMethod(getDeleteRepositoryMethod()) - .addMethod(getFetchRemoteBranchesMethod()) - .addMethod(getListWorkspacesMethod()) - .addMethod(getGetWorkspaceMethod()) - .addMethod(getCreateWorkspaceMethod()) - .addMethod(getDeleteWorkspaceMethod()) - .addMethod(getInstallNpmPackagesMethod()) - .addMethod(getPullGitCommitsMethod()) - .addMethod(getPushGitCommitsMethod()) - .addMethod(getFetchFileGitStatusesMethod()) - .addMethod(getFetchGitAheadBehindMethod()) - .addMethod(getCommitWorkspaceChangesMethod()) - .addMethod(getResetWorkspaceChangesMethod()) - .addMethod(getFetchFileDiffMethod()) - .addMethod(getQueryDirectoryContentsMethod()) - .addMethod(getMakeDirectoryMethod()) - .addMethod(getRemoveDirectoryMethod()) - .addMethod(getMoveDirectoryMethod()) - .addMethod(getReadFileMethod()) - .addMethod(getRemoveFileMethod()) - .addMethod(getMoveFileMethod()) - .addMethod(getWriteFileMethod()) - .addMethod(getListCompilationResultsMethod()) - .addMethod(getGetCompilationResultMethod()) - .addMethod(getCreateCompilationResultMethod()) - .addMethod(getQueryCompilationResultActionsMethod()) - .addMethod(getListWorkflowInvocationsMethod()) - .addMethod(getGetWorkflowInvocationMethod()) - .addMethod(getCreateWorkflowInvocationMethod()) - .addMethod(getDeleteWorkflowInvocationMethod()) - .addMethod(getCancelWorkflowInvocationMethod()) - .addMethod(getQueryWorkflowInvocationActionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index 634f347c417f..5549a4a4070f 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -41,24 +41,12 @@ grpc-google-cloud-dataform-v1beta1 0.59.0-SNAPSHOT - - com.google.api.grpc - grpc-google-cloud-dataform-v1alpha2 - 0.59.0-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-dataform-v1alpha2 - 0.59.0-SNAPSHOT - google-cloud-dataform - grpc-google-cloud-dataform-v1alpha2 grpc-google-cloud-dataform-v1beta1 - proto-google-cloud-dataform-v1alpha2 proto-google-cloud-dataform-v1beta1 google-cloud-dataform-bom diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/clirr-ignored-differences.xml b/java-dataform/proto-google-cloud-dataform-v1alpha2/clirr-ignored-differences.xml deleted file mode 100644 index b18028cbeab3..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/clirr-ignored-differences.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 7012 - com/google/cloud/dataform/v1alpha2/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/dataform/v1alpha2/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/dataform/v1alpha2/*OrBuilder - boolean has*(*) - - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * getDefaultInstanceForType() - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * addRepeatedField(*) - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * clear() - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * clearField(*) - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * clearOneof(*) - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * clone() - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * mergeUnknownFields(*) - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * setField(*) - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * setRepeatedField(*) - ** - - - 7006 - com/google/cloud/dataform/v1alpha2/** - * setUnknownFields(*) - ** - - diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml b/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml deleted file mode 100644 index a134c0732356..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml +++ /dev/null @@ -1,33 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-dataform-v1alpha2 - 0.59.0-SNAPSHOT - proto-google-cloud-dataform-v1alpha2 - Proto library for google-cloud-dataform - - com.google.cloud - google-cloud-dataform-parent - 0.59.0-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CancelWorkflowInvocationRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CancelWorkflowInvocationRequest.java deleted file mode 100644 index e2bf5b22d988..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CancelWorkflowInvocationRequest.java +++ /dev/null @@ -1,652 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `CancelWorkflowInvocation` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest} - */ -public final class CancelWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) - CancelWorkflowInvocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CancelWorkflowInvocationRequest.newBuilder() to construct. - private CancelWorkflowInvocationRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CancelWorkflowInvocationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CancelWorkflowInvocationRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workflow invocation resource'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 invocation resource'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.v1alpha2.CancelWorkflowInvocationRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest other = - (com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) 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.v1alpha2.CancelWorkflowInvocationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest 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.v1alpha2.CancelWorkflowInvocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest 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.v1alpha2.CancelWorkflowInvocationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest 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.v1alpha2.CancelWorkflowInvocationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - 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.v1alpha2.CancelWorkflowInvocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest 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.v1alpha2.CancelWorkflowInvocationRequest 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; - } - /** - * - * - *
-   * `CancelWorkflowInvocation` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest build() { - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest result = - new com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest 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.v1alpha2.CancelWorkflowInvocationRequest) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - .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 invocation resource'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 invocation resource'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 invocation resource'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 invocation resource'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 invocation resource'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.v1alpha2.CancelWorkflowInvocationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) - private static final com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelWorkflowInvocationRequest 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.v1alpha2.CancelWorkflowInvocationRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CancelWorkflowInvocationRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CancelWorkflowInvocationRequestOrBuilder.java deleted file mode 100644 index 712bf6d2dc65..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CancelWorkflowInvocationRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CancelWorkflowInvocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CancelWorkflowInvocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workflow invocation resource's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workflow invocation resource'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitAuthor.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitAuthor.java deleted file mode 100644 index 86032bc1e267..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitAuthor.java +++ /dev/null @@ -1,807 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents the author of a Git commit.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CommitAuthor} - */ -public final class CommitAuthor extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CommitAuthor) - CommitAuthorOrBuilder { - private static final long serialVersionUID = 0L; - // Use CommitAuthor.newBuilder() to construct. - private CommitAuthor(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CommitAuthor() { - name_ = ""; - emailAddress_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CommitAuthor(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CommitAuthor.class, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The commit author's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 commit author's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 EMAIL_ADDRESS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object emailAddress_ = ""; - /** - * - * - *
-   * Required. The commit author's email address.
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - 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(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The commit author's email address.
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = 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(emailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); - } - 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(emailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); - } - 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.v1alpha2.CommitAuthor)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CommitAuthor other = - (com.google.cloud.dataform.v1alpha2.CommitAuthor) obj; - - if (!getName().equals(other.getName())) return false; - if (!getEmailAddress().equals(other.getEmailAddress())) 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) + EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor 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.v1alpha2.CommitAuthor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor 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.v1alpha2.CommitAuthor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor 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.v1alpha2.CommitAuthor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor 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.v1alpha2.CommitAuthor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor 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.v1alpha2.CommitAuthor 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 author of a Git commit.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CommitAuthor} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CommitAuthor) - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CommitAuthor.class, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.CommitAuthor.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - emailAddress_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthor getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthor build() { - com.google.cloud.dataform.v1alpha2.CommitAuthor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthor buildPartial() { - com.google.cloud.dataform.v1alpha2.CommitAuthor result = - new com.google.cloud.dataform.v1alpha2.CommitAuthor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.CommitAuthor result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.emailAddress_ = emailAddress_; - } - } - - @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.v1alpha2.CommitAuthor) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CommitAuthor) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.CommitAuthor other) { - if (other == com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - 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: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - emailAddress_ = 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.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The commit author's name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 commit author's name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 commit author's name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 commit author's name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The commit author's name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 emailAddress_ = ""; - /** - * - * - *
-     * Required. The commit author's email address.
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The commit author's email address.
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The commit author's email address.
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - emailAddress_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The commit author's email address.
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - emailAddress_ = getDefaultInstance().getEmailAddress(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The commit author's email address.
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - emailAddress_ = 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.v1alpha2.CommitAuthor) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CommitAuthor) - private static final com.google.cloud.dataform.v1alpha2.CommitAuthor DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CommitAuthor(); - } - - public static com.google.cloud.dataform.v1alpha2.CommitAuthor getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitAuthor 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.v1alpha2.CommitAuthor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitAuthorOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitAuthorOrBuilder.java deleted file mode 100644 index 3a4c721cbbf5..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitAuthorOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CommitAuthorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CommitAuthor) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The commit author's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The commit author's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The commit author's email address.
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Required. The commit author's email address.
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitWorkspaceChangesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitWorkspaceChangesRequest.java deleted file mode 100644 index a5207ac7ea19..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitWorkspaceChangesRequest.java +++ /dev/null @@ -1,1423 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `CommitWorkspaceChanges` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest} - */ -public final class CommitWorkspaceChangesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) - CommitWorkspaceChangesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CommitWorkspaceChangesRequest.newBuilder() to construct. - private CommitWorkspaceChangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CommitWorkspaceChangesRequest() { - name_ = ""; - commitMessage_ = ""; - paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CommitWorkspaceChangesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.class, - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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 AUTHOR_FIELD_NUMBER = 4; - private com.google.cloud.dataform.v1alpha2.CommitAuthor author_; - /** - * - * - *
-   * Required. The commit's author.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the author field is set. - */ - @java.lang.Override - public boolean hasAuthor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The commit's author.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The author. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthor getAuthor() { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } - /** - * - * - *
-   * Required. The commit's author.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder getAuthorOrBuilder() { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.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; - } - } - - public static final int PATHS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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]; - * - * @return A list containing the paths. - */ - public com.google.protobuf.ProtocolStringList getPathsList() { - return paths_; - } - /** - * - * - *
-   * 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]; - * - * @return The count of paths. - */ - public int getPathsCount() { - return paths_.size(); - } - /** - * - * - *
-   * 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]; - * - * @param index The index of the element to return. - * @return The paths at the given index. - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - * - * - *
-   * 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]; - * - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - public com.google.protobuf.ByteString getPathsBytes(int index) { - return paths_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitMessage_); - } - for (int i = 0; i < paths_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, paths_.getRaw(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getAuthor()); - } - 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(commitMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitMessage_); - } - { - int dataSize = 0; - for (int i = 0; i < paths_.size(); i++) { - dataSize += computeStringSizeNoTag(paths_.getRaw(i)); - } - size += dataSize; - size += 1 * getPathsList().size(); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthor()); - } - 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.v1alpha2.CommitWorkspaceChangesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest other = - (com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) obj; - - if (!getName().equals(other.getName())) 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 (!getPathsList().equals(other.getPathsList())) 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 (hasAuthor()) { - hash = (37 * hash) + AUTHOR_FIELD_NUMBER; - hash = (53 * hash) + getAuthor().hashCode(); - } - hash = (37 * hash) + COMMIT_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getCommitMessage().hashCode(); - if (getPathsCount() > 0) { - hash = (37 * hash) + PATHS_FIELD_NUMBER; - hash = (53 * hash) + getPathsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest 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.v1alpha2.CommitWorkspaceChangesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest 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.v1alpha2.CommitWorkspaceChangesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest 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.v1alpha2.CommitWorkspaceChangesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest 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.v1alpha2.CommitWorkspaceChangesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest 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.v1alpha2.CommitWorkspaceChangesRequest 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; - } - /** - * - * - *
-   * `CommitWorkspaceChanges` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.class, - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAuthorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - author_ = null; - if (authorBuilder_ != null) { - authorBuilder_.dispose(); - authorBuilder_ = null; - } - commitMessage_ = ""; - paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest build() { - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest result = - new com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.author_ = authorBuilder_ == null ? author_ : authorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.commitMessage_ = commitMessage_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - paths_.makeImmutable(); - result.paths_ = paths_; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CommitWorkspaceChangesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasAuthor()) { - mergeAuthor(other.getAuthor()); - } - if (!other.getCommitMessage().isEmpty()) { - commitMessage_ = other.commitMessage_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.paths_.isEmpty()) { - if (paths_.isEmpty()) { - paths_ = other.paths_; - bitField0_ |= 0x00000008; - } else { - ensurePathsIsMutable(); - paths_.addAll(other.paths_); - } - 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: - { - commitMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePathsIsMutable(); - paths_.add(s); - break; - } // case 26 - case 34: - { - input.readMessage(getAuthorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - 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 workspace'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 workspace'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 workspace'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 workspace'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 workspace'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.v1alpha2.CommitAuthor author_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CommitAuthor, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder, - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder> - authorBuilder_; - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the author field is set. - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The author. - */ - public com.google.cloud.dataform.v1alpha2.CommitAuthor getAuthor() { - if (authorBuilder_ == null) { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } else { - return authorBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAuthor(com.google.cloud.dataform.v1alpha2.CommitAuthor value) { - if (authorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - author_ = value; - } else { - authorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAuthor( - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder builderForValue) { - if (authorBuilder_ == null) { - author_ = builderForValue.build(); - } else { - authorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAuthor(com.google.cloud.dataform.v1alpha2.CommitAuthor value) { - if (authorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && author_ != null - && author_ != com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance()) { - getAuthorBuilder().mergeFrom(value); - } else { - author_ = value; - } - } else { - authorBuilder_.mergeFrom(value); - } - if (author_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00000002); - author_ = null; - if (authorBuilder_ != null) { - authorBuilder_.dispose(); - authorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder getAuthorBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAuthorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder getAuthorOrBuilder() { - if (authorBuilder_ != null) { - return authorBuilder_.getMessageOrBuilder(); - } else { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } - } - /** - * - * - *
-     * Required. The commit's author.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CommitAuthor, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder, - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder> - getAuthorFieldBuilder() { - if (authorBuilder_ == null) { - authorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CommitAuthor, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder, - com.google.cloud.dataform.v1alpha2.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_ |= 0x00000004; - 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_ & ~0x00000004); - 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_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePathsIsMutable() { - if (!paths_.isModifiable()) { - paths_ = new com.google.protobuf.LazyStringArrayList(paths_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * 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]; - * - * @return A list containing the paths. - */ - public com.google.protobuf.ProtocolStringList getPathsList() { - paths_.makeImmutable(); - return paths_; - } - /** - * - * - *
-     * 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]; - * - * @return The count of paths. - */ - public int getPathsCount() { - return paths_.size(); - } - /** - * - * - *
-     * 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]; - * - * @param index The index of the element to return. - * @return The paths at the given index. - */ - public java.lang.String getPaths(int index) { - return paths_.get(index); - } - /** - * - * - *
-     * 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]; - * - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - public com.google.protobuf.ByteString getPathsBytes(int index) { - return paths_.getByteString(index); - } - /** - * - * - *
-     * 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]; - * - * @param index The index to set the value at. - * @param value The paths to set. - * @return This builder for chaining. - */ - public Builder setPaths(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The paths to add. - * @return This builder for chaining. - */ - public Builder addPaths(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param values The paths to add. - * @return This builder for chaining. - */ - public Builder addAllPaths(java.lang.Iterable values) { - ensurePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearPaths() { - paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes of the paths to add. - * @return This builder for chaining. - */ - public Builder addPathsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePathsIsMutable(); - paths_.add(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.v1alpha2.CommitWorkspaceChangesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) - private static final com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitWorkspaceChangesRequest 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.v1alpha2.CommitWorkspaceChangesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitWorkspaceChangesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitWorkspaceChangesRequestOrBuilder.java deleted file mode 100644 index d7305c9e5f4c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CommitWorkspaceChangesRequestOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CommitWorkspaceChangesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CommitWorkspaceChangesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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 commit's author.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the author field is set. - */ - boolean hasAuthor(); - /** - * - * - *
-   * Required. The commit's author.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The author. - */ - com.google.cloud.dataform.v1alpha2.CommitAuthor getAuthor(); - /** - * - * - *
-   * Required. The commit's author.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.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(); - - /** - * - * - *
-   * 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]; - * - * @return A list containing the paths. - */ - java.util.List getPathsList(); - /** - * - * - *
-   * 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]; - * - * @return The count of paths. - */ - int getPathsCount(); - /** - * - * - *
-   * 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]; - * - * @param index The index of the element to return. - * @return The paths at the given index. - */ - 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.
-   * 
- * - * repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - com.google.protobuf.ByteString getPathsBytes(int index); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResult.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResult.java deleted file mode 100644 index 74a59c1bc93c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResult.java +++ /dev/null @@ -1,6120 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents the result of compiling a Dataform project.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult} - */ -public final class CompilationResult extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResult) - CompilationResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompilationResult.newBuilder() to construct. - private CompilationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CompilationResult() { - name_ = ""; - dataformCoreVersion_ = ""; - compilationErrors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CompilationResult(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResult.class, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder.class); - } - - public interface CodeCompilationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig} - */ - public static final class CodeCompilationConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.class, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_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.v1alpha2.CompilationResult.CodeCompilationConfig)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig other = - (com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig) - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetVars(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.class, - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig build() { - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig result = - new com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig other) { - if (other - == com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig) - private static final com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig(); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.CompilationResult.CodeCompilationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface CompilationErrorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. The error's top level message.
-     * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The message. - */ - java.lang.String getMessage(); - /** - * - * - *
-     * Output only. The error's top level message.
-     * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for message. - */ - com.google.protobuf.ByteString getMessageBytes(); - - /** - * - * - *
-     * Output only. The error's full stack trace.
-     * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stack. - */ - java.lang.String getStack(); - /** - * - * - *
-     * Output only. The error's full stack trace.
-     * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stack. - */ - com.google.protobuf.ByteString getStackBytes(); - - /** - * - * - *
-     * 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]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-     * 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]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); - - /** - * - * - *
-     * Output only. The identifier of the action where this error occurred, if available.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the actionTarget field is set. - */ - boolean hasActionTarget(); - /** - * - * - *
-     * Output only. The identifier of the action where this error occurred, if available.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The actionTarget. - */ - com.google.cloud.dataform.v1alpha2.Target getActionTarget(); - /** - * - * - *
-     * Output only. The identifier of the action where this error occurred, if available.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getActionTargetOrBuilder(); - } - /** - * - * - *
-   * An error encountered when attempting to compile a Dataform project.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult.CompilationError} - */ - public static final class CompilationError extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) - CompilationErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompilationError.newBuilder() to construct. - private CompilationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CompilationError() { - message_ = ""; - stack_ = ""; - path_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CompilationError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.class, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder.class); - } - - private int bitField0_; - public static final int MESSAGE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object message_ = ""; - /** - * - * - *
-     * Output only. The error's top level message.
-     * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. The error's top level message.
-     * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STACK_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object stack_ = ""; - /** - * - * - *
-     * Output only. The error's full stack trace.
-     * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stack. - */ - @java.lang.Override - public java.lang.String getStack() { - java.lang.Object ref = stack_; - 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(); - stack_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. The error's full stack trace.
-     * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stack. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStackBytes() { - java.lang.Object ref = stack_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stack_ = 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_ = ""; - /** - * - * - *
-     * 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]; - * - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @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 ACTION_TARGET_FIELD_NUMBER = 4; - private com.google.cloud.dataform.v1alpha2.Target actionTarget_; - /** - * - * - *
-     * Output only. The identifier of the action where this error occurred, if available.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the actionTarget field is set. - */ - @java.lang.Override - public boolean hasActionTarget() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Output only. The identifier of the action where this error occurred, if available.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The actionTarget. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getActionTarget() { - return actionTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : actionTarget_; - } - /** - * - * - *
-     * Output only. The identifier of the action where this error occurred, if available.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getActionTargetOrBuilder() { - return actionTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : actionTarget_; - } - - 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(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stack_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stack_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getActionTarget()); - } - 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(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stack_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stack_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getActionTarget()); - } - 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.v1alpha2.CompilationResult.CompilationError)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError other = - (com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) obj; - - if (!getMessage().equals(other.getMessage())) return false; - if (!getStack().equals(other.getStack())) return false; - if (!getPath().equals(other.getPath())) return false; - if (hasActionTarget() != other.hasActionTarget()) return false; - if (hasActionTarget()) { - if (!getActionTarget().equals(other.getActionTarget())) 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) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + STACK_FIELD_NUMBER; - hash = (53 * hash) + getStack().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - if (hasActionTarget()) { - hash = (37 * hash) + ACTION_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getActionTarget().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.v1alpha2.CompilationResult.CompilationError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.v1alpha2.CompilationResult.CompilationError parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.v1alpha2.CompilationResult.CompilationError - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - 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.v1alpha2.CompilationResult.CompilationError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError 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.v1alpha2.CompilationResult.CompilationError 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; - } - /** - * - * - *
-     * An error encountered when attempting to compile a Dataform project.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult.CompilationError} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.class, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getActionTargetFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - message_ = ""; - stack_ = ""; - path_ = ""; - actionTarget_ = null; - if (actionTargetBuilder_ != null) { - actionTargetBuilder_.dispose(); - actionTargetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError build() { - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError result = - new com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.message_ = message_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.stack_ = stack_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.path_ = path_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.actionTarget_ = - actionTargetBuilder_ == null ? actionTarget_ : actionTargetBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CompilationResult.CompilationError) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError other) { - if (other - == com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - .getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getStack().isEmpty()) { - stack_ = other.stack_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasActionTarget()) { - mergeActionTarget(other.getActionTarget()); - } - 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: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - stack_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getActionTargetFieldBuilder().getBuilder(), extensionRegistry); - 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 java.lang.Object message_ = ""; - /** - * - * - *
-       * Output only. The error's top level message.
-       * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. The error's top level message.
-       * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for message. - */ - public com.google.protobuf.ByteString getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. The error's top level message.
-       * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - message_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The error's top level message.
-       * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The error's top level message.
-       * 
- * - * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - message_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object stack_ = ""; - /** - * - * - *
-       * Output only. The error's full stack trace.
-       * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stack. - */ - public java.lang.String getStack() { - java.lang.Object ref = stack_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stack_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. The error's full stack trace.
-       * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stack. - */ - public com.google.protobuf.ByteString getStackBytes() { - java.lang.Object ref = stack_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stack_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. The error's full stack trace.
-       * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The stack to set. - * @return This builder for chaining. - */ - public Builder setStack(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - stack_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The error's full stack trace.
-       * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStack() { - stack_ = getDefaultInstance().getStack(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The error's full stack trace.
-       * 
- * - * string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for stack to set. - * @return This builder for chaining. - */ - public Builder setStackBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - stack_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-       * 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]; - * - * @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; - } - } - /** - * - * - *
-       * 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]; - * - * @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; - } - } - /** - * - * - *
-       * 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]; - * - * @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; - } - /** - * - * - *
-       * 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]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * 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]; - * - * @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 com.google.cloud.dataform.v1alpha2.Target actionTarget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - actionTargetBuilder_; - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the actionTarget field is set. - */ - public boolean hasActionTarget() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The actionTarget. - */ - public com.google.cloud.dataform.v1alpha2.Target getActionTarget() { - if (actionTargetBuilder_ == null) { - return actionTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : actionTarget_; - } else { - return actionTargetBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setActionTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (actionTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - actionTarget_ = value; - } else { - actionTargetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setActionTarget( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (actionTargetBuilder_ == null) { - actionTarget_ = builderForValue.build(); - } else { - actionTargetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeActionTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (actionTargetBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && actionTarget_ != null - && actionTarget_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) { - getActionTargetBuilder().mergeFrom(value); - } else { - actionTarget_ = value; - } - } else { - actionTargetBuilder_.mergeFrom(value); - } - if (actionTarget_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearActionTarget() { - bitField0_ = (bitField0_ & ~0x00000008); - actionTarget_ = null; - if (actionTargetBuilder_ != null) { - actionTargetBuilder_.dispose(); - actionTargetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getActionTargetBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getActionTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getActionTargetOrBuilder() { - if (actionTargetBuilder_ != null) { - return actionTargetBuilder_.getMessageOrBuilder(); - } else { - return actionTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : actionTarget_; - } - } - /** - * - * - *
-       * Output only. The identifier of the action where this error occurred, if available.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getActionTargetFieldBuilder() { - if (actionTargetBuilder_ == null) { - actionTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - getActionTarget(), getParentForChildren(), isClean()); - actionTarget_ = null; - } - return actionTargetBuilder_; - } - - @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.v1alpha2.CompilationResult.CompilationError) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResult.CompilationError) - private static final com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompilationError 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.v1alpha2.CompilationResult.CompilationError - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int sourceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object source_; - - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GIT_COMMITISH(2), - WORKSPACE(3), - SOURCE_NOT_SET(0); - private final int value; - - private SourceCase(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 SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 2: - return GIT_COMMITISH; - case 3: - return WORKSPACE; - case 0: - return SOURCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The compilation result'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 compilation result'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; - /** - * - * - *
-   * 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`
-   * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return Whether the gitCommitish field is set. - */ - public boolean hasGitCommitish() { - return sourceCase_ == 2; - } - /** - * - * - *
-   * 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`
-   * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The gitCommitish. - */ - public java.lang.String getGitCommitish() { - java.lang.Object ref = ""; - if (sourceCase_ == 2) { - 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_ == 2) { - source_ = s; - } - return s; - } - } - /** - * - * - *
-   * 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`
-   * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for gitCommitish. - */ - public com.google.protobuf.ByteString getGitCommitishBytes() { - java.lang.Object ref = ""; - if (sourceCase_ == 2) { - ref = source_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 2) { - source_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKSPACE_FIELD_NUMBER = 3; - /** - * - * - *
-   * Immutable. The name of the workspace to compile. Must be in the format
-   * `projects/*/locations/*/repositories/*/workspaces/*`.
-   * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return Whether the workspace field is set. - */ - public boolean hasWorkspace() { - return sourceCase_ == 3; - } - /** - * - * - *
-   * Immutable. The name of the workspace to compile. Must be in the format
-   * `projects/*/locations/*/repositories/*/workspaces/*`.
-   * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = ""; - if (sourceCase_ == 3) { - 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_ == 3) { - source_ = s; - } - return s; - } - } - /** - * - * - *
-   * Immutable. The name of the workspace to compile. Must be in the format
-   * `projects/*/locations/*/repositories/*/workspaces/*`.
-   * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = ""; - if (sourceCase_ == 3) { - ref = source_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 3) { - 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.v1alpha2.CompilationResult.CodeCompilationConfig - codeCompilationConfig_; - /** - * - * - *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return Whether the codeCompilationConfig field is set. - */ - @java.lang.Override - public boolean hasCodeCompilationConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The codeCompilationConfig. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - getCodeCompilationConfig() { - return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - .getDefaultInstance() - : codeCompilationConfig_; - } - /** - * - * - *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder - getCodeCompilationConfigOrBuilder() { - return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - .getDefaultInstance() - : codeCompilationConfig_; - } - - public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object dataformCoreVersion_ = ""; - /** - * - * - *
-   * Output only. The version of `@dataform/core` that was used for compilation.
-   * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The dataformCoreVersion. - */ - @java.lang.Override - public java.lang.String getDataformCoreVersion() { - java.lang.Object ref = dataformCoreVersion_; - 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(); - dataformCoreVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The version of `@dataform/core` that was used for compilation.
-   * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for dataformCoreVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDataformCoreVersionBytes() { - java.lang.Object ref = dataformCoreVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataformCoreVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPILATION_ERRORS_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private java.util.List - compilationErrors_; - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getCompilationErrorsList() { - return compilationErrors_; - } - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder> - getCompilationErrorsOrBuilderList() { - return compilationErrors_; - } - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getCompilationErrorsCount() { - return compilationErrors_.size(); - } - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError getCompilationErrors( - int index) { - return compilationErrors_.get(index); - } - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder - getCompilationErrorsOrBuilder(int index) { - return compilationErrors_.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 (sourceCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); - } - if (sourceCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCodeCompilationConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataformCoreVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataformCoreVersion_); - } - for (int i = 0; i < compilationErrors_.size(); i++) { - output.writeMessage(6, compilationErrors_.get(i)); - } - 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 (sourceCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); - } - if (sourceCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCodeCompilationConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataformCoreVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataformCoreVersion_); - } - for (int i = 0; i < compilationErrors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, compilationErrors_.get(i)); - } - 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.v1alpha2.CompilationResult)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResult other = - (com.google.cloud.dataform.v1alpha2.CompilationResult) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCodeCompilationConfig() != other.hasCodeCompilationConfig()) return false; - if (hasCodeCompilationConfig()) { - if (!getCodeCompilationConfig().equals(other.getCodeCompilationConfig())) return false; - } - if (!getDataformCoreVersion().equals(other.getDataformCoreVersion())) return false; - if (!getCompilationErrorsList().equals(other.getCompilationErrorsList())) return false; - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 2: - if (!getGitCommitish().equals(other.getGitCommitish())) return false; - break; - case 3: - if (!getWorkspace().equals(other.getWorkspace())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCodeCompilationConfig()) { - hash = (37 * hash) + CODE_COMPILATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCodeCompilationConfig().hashCode(); - } - hash = (37 * hash) + DATAFORM_CORE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDataformCoreVersion().hashCode(); - if (getCompilationErrorsCount() > 0) { - hash = (37 * hash) + COMPILATION_ERRORS_FIELD_NUMBER; - hash = (53 * hash) + getCompilationErrorsList().hashCode(); - } - switch (sourceCase_) { - case 2: - hash = (37 * hash) + GIT_COMMITISH_FIELD_NUMBER; - hash = (53 * hash) + getGitCommitish().hashCode(); - break; - case 3: - hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.v1alpha2.CompilationResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.v1alpha2.CompilationResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.v1alpha2.CompilationResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.v1alpha2.CompilationResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult 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.v1alpha2.CompilationResult 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 result of compiling a Dataform project.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResult} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResult) - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResult.class, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.CompilationResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCodeCompilationConfigFieldBuilder(); - getCompilationErrorsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - codeCompilationConfig_ = null; - if (codeCompilationConfigBuilder_ != null) { - codeCompilationConfigBuilder_.dispose(); - codeCompilationConfigBuilder_ = null; - } - dataformCoreVersion_ = ""; - if (compilationErrorsBuilder_ == null) { - compilationErrors_ = java.util.Collections.emptyList(); - } else { - compilationErrors_ = null; - compilationErrorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult build() { - com.google.cloud.dataform.v1alpha2.CompilationResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResult result = - new com.google.cloud.dataform.v1alpha2.CompilationResult(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.CompilationResult result) { - if (compilationErrorsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - compilationErrors_ = java.util.Collections.unmodifiableList(compilationErrors_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.compilationErrors_ = compilationErrors_; - } else { - result.compilationErrors_ = compilationErrorsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.CompilationResult result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.codeCompilationConfig_ = - codeCompilationConfigBuilder_ == null - ? codeCompilationConfig_ - : codeCompilationConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.dataformCoreVersion_ = dataformCoreVersion_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.dataform.v1alpha2.CompilationResult result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - } - - @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.v1alpha2.CompilationResult) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CompilationResult) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.CompilationResult other) { - if (other == com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCodeCompilationConfig()) { - mergeCodeCompilationConfig(other.getCodeCompilationConfig()); - } - if (!other.getDataformCoreVersion().isEmpty()) { - dataformCoreVersion_ = other.dataformCoreVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (compilationErrorsBuilder_ == null) { - if (!other.compilationErrors_.isEmpty()) { - if (compilationErrors_.isEmpty()) { - compilationErrors_ = other.compilationErrors_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureCompilationErrorsIsMutable(); - compilationErrors_.addAll(other.compilationErrors_); - } - onChanged(); - } - } else { - if (!other.compilationErrors_.isEmpty()) { - if (compilationErrorsBuilder_.isEmpty()) { - compilationErrorsBuilder_.dispose(); - compilationErrorsBuilder_ = null; - compilationErrors_ = other.compilationErrors_; - bitField0_ = (bitField0_ & ~0x00000020); - compilationErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCompilationErrorsFieldBuilder() - : null; - } else { - compilationErrorsBuilder_.addAllMessages(other.compilationErrors_); - } - } - } - switch (other.getSourceCase()) { - case GIT_COMMITISH: - { - sourceCase_ = 2; - source_ = other.source_; - onChanged(); - break; - } - case WORKSPACE: - { - sourceCase_ = 3; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_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: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 2; - source_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 3; - source_ = s; - break; - } // case 26 - case 34: - { - input.readMessage( - getCodeCompilationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - dataformCoreVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - .parser(), - extensionRegistry); - if (compilationErrorsBuilder_ == null) { - ensureCompilationErrorsIsMutable(); - compilationErrors_.add(m); - } else { - compilationErrorsBuilder_.addMessage(m); - } - 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 sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The compilation result'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 compilation result'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 compilation result'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 compilation result'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 compilation result'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; - } - - /** - * - * - *
-     * 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`
-     * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return Whether the gitCommitish field is set. - */ - @java.lang.Override - public boolean hasGitCommitish() { - return sourceCase_ == 2; - } - /** - * - * - *
-     * 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`
-     * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The gitCommitish. - */ - @java.lang.Override - public java.lang.String getGitCommitish() { - java.lang.Object ref = ""; - if (sourceCase_ == 2) { - 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_ == 2) { - source_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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`
-     * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for gitCommitish. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGitCommitishBytes() { - java.lang.Object ref = ""; - if (sourceCase_ == 2) { - ref = source_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 2) { - source_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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`
-     * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The gitCommitish to set. - * @return This builder for chaining. - */ - public Builder setGitCommitish(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 2; - source_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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`
-     * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearGitCommitish() { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * 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`
-     * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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); - sourceCase_ = 2; - source_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Immutable. The name of the workspace to compile. Must be in the format
-     * `projects/*/locations/*/repositories/*/workspaces/*`.
-     * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return Whether the workspace field is set. - */ - @java.lang.Override - public boolean hasWorkspace() { - return sourceCase_ == 3; - } - /** - * - * - *
-     * Immutable. The name of the workspace to compile. Must be in the format
-     * `projects/*/locations/*/repositories/*/workspaces/*`.
-     * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = ""; - if (sourceCase_ == 3) { - 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_ == 3) { - source_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Immutable. The name of the workspace to compile. Must be in the format
-     * `projects/*/locations/*/repositories/*/workspaces/*`.
-     * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = ""; - if (sourceCase_ == 3) { - ref = source_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 3) { - source_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Immutable. The name of the workspace to compile. Must be in the format
-     * `projects/*/locations/*/repositories/*/workspaces/*`.
-     * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; - source_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The name of the workspace to compile. Must be in the format
-     * `projects/*/locations/*/repositories/*/workspaces/*`.
-     * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - if (sourceCase_ == 3) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Immutable. The name of the workspace to compile. Must be in the format
-     * `projects/*/locations/*/repositories/*/workspaces/*`.
-     * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sourceCase_ = 3; - source_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - codeCompilationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig, - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder> - codeCompilationConfigBuilder_; - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return Whether the codeCompilationConfig field is set. - */ - public boolean hasCodeCompilationConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The codeCompilationConfig. - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - getCodeCompilationConfig() { - if (codeCompilationConfigBuilder_ == null) { - return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - .getDefaultInstance() - : codeCompilationConfig_; - } else { - return codeCompilationConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setCodeCompilationConfig( - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig value) { - if (codeCompilationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - codeCompilationConfig_ = value; - } else { - codeCompilationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setCodeCompilationConfig( - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder - builderForValue) { - if (codeCompilationConfigBuilder_ == null) { - codeCompilationConfig_ = builderForValue.build(); - } else { - codeCompilationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder mergeCodeCompilationConfig( - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig value) { - if (codeCompilationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && codeCompilationConfig_ != null - && codeCompilationConfig_ - != com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - .getDefaultInstance()) { - getCodeCompilationConfigBuilder().mergeFrom(value); - } else { - codeCompilationConfig_ = value; - } - } else { - codeCompilationConfigBuilder_.mergeFrom(value); - } - if (codeCompilationConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder clearCodeCompilationConfig() { - bitField0_ = (bitField0_ & ~0x00000008); - codeCompilationConfig_ = null; - if (codeCompilationConfigBuilder_ != null) { - codeCompilationConfigBuilder_.dispose(); - codeCompilationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder - getCodeCompilationConfigBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getCodeCompilationConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder - getCodeCompilationConfigOrBuilder() { - if (codeCompilationConfigBuilder_ != null) { - return codeCompilationConfigBuilder_.getMessageOrBuilder(); - } else { - return codeCompilationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - .getDefaultInstance() - : codeCompilationConfig_; - } - } - /** - * - * - *
-     * Immutable. If set, fields of `code_compilation_overrides` override the default
-     * compilation settings that are specified in dataform.json.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig, - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder> - getCodeCompilationConfigFieldBuilder() { - if (codeCompilationConfigBuilder_ == null) { - codeCompilationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig, - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResult - .CodeCompilationConfigOrBuilder>( - getCodeCompilationConfig(), getParentForChildren(), isClean()); - codeCompilationConfig_ = null; - } - return codeCompilationConfigBuilder_; - } - - private java.lang.Object dataformCoreVersion_ = ""; - /** - * - * - *
-     * Output only. The version of `@dataform/core` that was used for compilation.
-     * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The dataformCoreVersion. - */ - public java.lang.String getDataformCoreVersion() { - java.lang.Object ref = dataformCoreVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataformCoreVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The version of `@dataform/core` that was used for compilation.
-     * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for dataformCoreVersion. - */ - public com.google.protobuf.ByteString getDataformCoreVersionBytes() { - java.lang.Object ref = dataformCoreVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataformCoreVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The version of `@dataform/core` that was used for compilation.
-     * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The dataformCoreVersion to set. - * @return This builder for chaining. - */ - public Builder setDataformCoreVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataformCoreVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The version of `@dataform/core` that was used for compilation.
-     * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDataformCoreVersion() { - dataformCoreVersion_ = getDefaultInstance().getDataformCoreVersion(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The version of `@dataform/core` that was used for compilation.
-     * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for dataformCoreVersion to set. - * @return This builder for chaining. - */ - public Builder setDataformCoreVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataformCoreVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.util.List - compilationErrors_ = java.util.Collections.emptyList(); - - private void ensureCompilationErrorsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - compilationErrors_ = - new java.util.ArrayList< - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError>( - compilationErrors_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder> - compilationErrorsBuilder_; - - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getCompilationErrorsList() { - if (compilationErrorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(compilationErrors_); - } else { - return compilationErrorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getCompilationErrorsCount() { - if (compilationErrorsBuilder_ == null) { - return compilationErrors_.size(); - } else { - return compilationErrorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - getCompilationErrors(int index) { - if (compilationErrorsBuilder_ == null) { - return compilationErrors_.get(index); - } else { - return compilationErrorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCompilationErrors( - int index, com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError value) { - if (compilationErrorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationErrorsIsMutable(); - compilationErrors_.set(index, value); - onChanged(); - } else { - compilationErrorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCompilationErrors( - int index, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - builderForValue) { - if (compilationErrorsBuilder_ == null) { - ensureCompilationErrorsIsMutable(); - compilationErrors_.set(index, builderForValue.build()); - onChanged(); - } else { - compilationErrorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addCompilationErrors( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError value) { - if (compilationErrorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationErrorsIsMutable(); - compilationErrors_.add(value); - onChanged(); - } else { - compilationErrorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addCompilationErrors( - int index, com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError value) { - if (compilationErrorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationErrorsIsMutable(); - compilationErrors_.add(index, value); - onChanged(); - } else { - compilationErrorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addCompilationErrors( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - builderForValue) { - if (compilationErrorsBuilder_ == null) { - ensureCompilationErrorsIsMutable(); - compilationErrors_.add(builderForValue.build()); - onChanged(); - } else { - compilationErrorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addCompilationErrors( - int index, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - builderForValue) { - if (compilationErrorsBuilder_ == null) { - ensureCompilationErrorsIsMutable(); - compilationErrors_.add(index, builderForValue.build()); - onChanged(); - } else { - compilationErrorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllCompilationErrors( - java.lang.Iterable< - ? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError> - values) { - if (compilationErrorsBuilder_ == null) { - ensureCompilationErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compilationErrors_); - onChanged(); - } else { - compilationErrorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCompilationErrors() { - if (compilationErrorsBuilder_ == null) { - compilationErrors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - compilationErrorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeCompilationErrors(int index) { - if (compilationErrorsBuilder_ == null) { - ensureCompilationErrorsIsMutable(); - compilationErrors_.remove(index); - onChanged(); - } else { - compilationErrorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - getCompilationErrorsBuilder(int index) { - return getCompilationErrorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder - getCompilationErrorsOrBuilder(int index) { - if (compilationErrorsBuilder_ == null) { - return compilationErrors_.get(index); - } else { - return compilationErrorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder> - getCompilationErrorsOrBuilderList() { - if (compilationErrorsBuilder_ != null) { - return compilationErrorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(compilationErrors_); - } - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - addCompilationErrorsBuilder() { - return getCompilationErrorsFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - .getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder - addCompilationErrorsBuilder(int index) { - return getCompilationErrorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError - .getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Errors encountered during project compilation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List< - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder> - getCompilationErrorsBuilderList() { - return getCompilationErrorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder> - getCompilationErrorsFieldBuilder() { - if (compilationErrorsBuilder_ == null) { - compilationErrorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder>( - compilationErrors_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - compilationErrors_ = null; - } - return compilationErrorsBuilder_; - } - - @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.v1alpha2.CompilationResult) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResult) - private static final com.google.cloud.dataform.v1alpha2.CompilationResult DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CompilationResult(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompilationResult 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.v1alpha2.CompilationResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultAction.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultAction.java deleted file mode 100644 index e9636887ab07..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultAction.java +++ /dev/null @@ -1,14688 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents a single Dataform action in a compilation result.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction} - */ -public final class CompilationResultAction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResultAction) - CompilationResultActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompilationResultAction.newBuilder() to construct. - private CompilationResultAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CompilationResultAction() { - filePath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CompilationResultAction(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder.class); - } - - public interface RelationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - java.util.List getDependencyTargetsList(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - int getDependencyTargetsCount(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - java.util.List - getDependencyTargetsOrBuilderList(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder(int index); - - /** - * - * - *
-     * Whether this action is disabled (i.e. should not be run).
-     * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - boolean getDisabled(); - - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - - /** - * - * - *
-     * Descriptor for the relation and its columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - * - * @return Whether the relationDescriptor field is set. - */ - boolean hasRelationDescriptor(); - /** - * - * - *
-     * Descriptor for the relation and its columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - * - * @return The relationDescriptor. - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor(); - /** - * - * - *
-     * Descriptor for the relation and its columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder(); - - /** - * - * - *
-     * The type of this relation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return The enum numeric value on the wire for relationType. - */ - int getRelationTypeValue(); - /** - * - * - *
-     * The type of this relation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return The relationType. - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - getRelationType(); - - /** - * - * - *
-     * The SELECT query which returns rows which this relation should contain.
-     * 
- * - * string select_query = 6; - * - * @return The selectQuery. - */ - java.lang.String getSelectQuery(); - /** - * - * - *
-     * The SELECT query which returns rows which this relation should contain.
-     * 
- * - * string select_query = 6; - * - * @return The bytes for selectQuery. - */ - com.google.protobuf.ByteString getSelectQueryBytes(); - - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @return A list containing the preOperations. - */ - java.util.List getPreOperationsList(); - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @return The count of preOperations. - */ - int getPreOperationsCount(); - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @param index The index of the element to return. - * @return The preOperations at the given index. - */ - java.lang.String getPreOperations(int index); - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @param index The index of the value to return. - * @return The bytes of the preOperations at the given index. - */ - com.google.protobuf.ByteString getPreOperationsBytes(int index); - - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @return A list containing the postOperations. - */ - java.util.List getPostOperationsList(); - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @return The count of postOperations. - */ - int getPostOperationsCount(); - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @param index The index of the element to return. - * @return The postOperations at the given index. - */ - java.lang.String getPostOperations(int index); - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @param index The index of the value to return. - * @return The bytes of the postOperations at the given index. - */ - com.google.protobuf.ByteString getPostOperationsBytes(int index); - - /** - * - * - *
-     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-     * `relation_type` is `INCREMENTAL_TABLE`.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - * - * @return Whether the incrementalTableConfig field is set. - */ - boolean hasIncrementalTableConfig(); - /** - * - * - *
-     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-     * `relation_type` is `INCREMENTAL_TABLE`.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - * - * @return The incrementalTableConfig. - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - getIncrementalTableConfig(); - /** - * - * - *
-     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-     * `relation_type` is `INCREMENTAL_TABLE`.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder - getIncrementalTableConfigOrBuilder(); - - /** - * - * - *
-     * The SQL expression used to partition the relation.
-     * 
- * - * string partition_expression = 10; - * - * @return The partitionExpression. - */ - java.lang.String getPartitionExpression(); - /** - * - * - *
-     * The SQL expression used to partition the relation.
-     * 
- * - * string partition_expression = 10; - * - * @return The bytes for partitionExpression. - */ - com.google.protobuf.ByteString getPartitionExpressionBytes(); - - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @return A list containing the clusterExpressions. - */ - java.util.List getClusterExpressionsList(); - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @return The count of clusterExpressions. - */ - int getClusterExpressionsCount(); - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index of the element to return. - * @return The clusterExpressions at the given index. - */ - java.lang.String getClusterExpressions(int index); - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index of the value to return. - * @return The bytes of the clusterExpressions at the given index. - */ - com.google.protobuf.ByteString getClusterExpressionsBytes(int index); - - /** - * - * - *
-     * Sets the partition expiration in days.
-     * 
- * - * int32 partition_expiration_days = 12; - * - * @return The partitionExpirationDays. - */ - int getPartitionExpirationDays(); - - /** - * - * - *
-     * Specifies whether queries on this table must include a predicate filter
-     * that filters on the partitioning column.
-     * 
- * - * bool require_partition_filter = 13; - * - * @return The requirePartitionFilter. - */ - boolean getRequirePartitionFilter(); - - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - int getAdditionalOptionsCount(); - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - boolean containsAdditionalOptions(java.lang.String key); - /** Use {@link #getAdditionalOptionsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getAdditionalOptions(); - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - java.util.Map getAdditionalOptionsMap(); - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - /* nullable */ - java.lang.String getAdditionalOptionsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - java.lang.String getAdditionalOptionsOrThrow(java.lang.String key); - } - /** - * - * - *
-   * Represents a database relation.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Relation} - */ - public static final class Relation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - RelationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Relation.newBuilder() to construct. - private Relation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Relation() { - dependencyTargets_ = java.util.Collections.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - relationType_ = 0; - selectQuery_ = ""; - preOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - partitionExpression_ = ""; - clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Relation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetAdditionalOptions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder.class); - } - - /** - * - * - *
-     * Indicates the type of this relation.
-     * 
- * - * Protobuf enum {@code - * google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType} - */ - public enum RelationType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value. This value is unused.
-       * 
- * - * RELATION_TYPE_UNSPECIFIED = 0; - */ - RELATION_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * The relation is a table.
-       * 
- * - * TABLE = 1; - */ - TABLE(1), - /** - * - * - *
-       * The relation is a view.
-       * 
- * - * VIEW = 2; - */ - VIEW(2), - /** - * - * - *
-       * The relation is an incrementalized table.
-       * 
- * - * INCREMENTAL_TABLE = 3; - */ - INCREMENTAL_TABLE(3), - /** - * - * - *
-       * The relation is a materialized view.
-       * 
- * - * MATERIALIZED_VIEW = 4; - */ - MATERIALIZED_VIEW(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value. This value is unused.
-       * 
- * - * RELATION_TYPE_UNSPECIFIED = 0; - */ - public static final int RELATION_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The relation is a table.
-       * 
- * - * TABLE = 1; - */ - public static final int TABLE_VALUE = 1; - /** - * - * - *
-       * The relation is a view.
-       * 
- * - * VIEW = 2; - */ - public static final int VIEW_VALUE = 2; - /** - * - * - *
-       * The relation is an incrementalized table.
-       * 
- * - * INCREMENTAL_TABLE = 3; - */ - public static final int INCREMENTAL_TABLE_VALUE = 3; - /** - * - * - *
-       * The relation is a materialized view.
-       * 
- * - * MATERIALIZED_VIEW = 4; - */ - public static final int MATERIALIZED_VIEW_VALUE = 4; - - 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 RelationType 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 RelationType forNumber(int value) { - switch (value) { - case 0: - return RELATION_TYPE_UNSPECIFIED; - case 1: - return TABLE; - case 2: - return VIEW; - case 3: - return INCREMENTAL_TABLE; - case 4: - return MATERIALIZED_VIEW; - 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 RelationType findValueByNumber(int number) { - return RelationType.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.v1alpha2.CompilationResultAction.Relation.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RelationType[] VALUES = values(); - - public static RelationType 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 RelationType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType) - } - - public interface IncrementalTableConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The SELECT query which returns rows which should be inserted into the
-       * relation if it already exists and is not being refreshed.
-       * 
- * - * string incremental_select_query = 1; - * - * @return The incrementalSelectQuery. - */ - java.lang.String getIncrementalSelectQuery(); - /** - * - * - *
-       * The SELECT query which returns rows which should be inserted into the
-       * relation if it already exists and is not being refreshed.
-       * 
- * - * string incremental_select_query = 1; - * - * @return The bytes for incrementalSelectQuery. - */ - com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); - - /** - * - * - *
-       * Whether this table should be protected from being refreshed.
-       * 
- * - * bool refresh_disabled = 2; - * - * @return The refreshDisabled. - */ - boolean getRefreshDisabled(); - - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @return A list containing the uniqueKeyParts. - */ - java.util.List getUniqueKeyPartsList(); - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @return The count of uniqueKeyParts. - */ - int getUniqueKeyPartsCount(); - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index of the element to return. - * @return The uniqueKeyParts at the given index. - */ - java.lang.String getUniqueKeyParts(int index); - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index of the value to return. - * @return The bytes of the uniqueKeyParts at the given index. - */ - com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); - - /** - * - * - *
-       * A SQL expression conditional used to limit the set of existing rows
-       * considered for a merge operation (see `unique_key_parts` for more
-       * information).
-       * 
- * - * string update_partition_filter = 4; - * - * @return The updatePartitionFilter. - */ - java.lang.String getUpdatePartitionFilter(); - /** - * - * - *
-       * A SQL expression conditional used to limit the set of existing rows
-       * considered for a merge operation (see `unique_key_parts` for more
-       * information).
-       * 
- * - * string update_partition_filter = 4; - * - * @return The bytes for updatePartitionFilter. - */ - com.google.protobuf.ByteString getUpdatePartitionFilterBytes(); - - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return A list containing the incrementalPreOperations. - */ - java.util.List getIncrementalPreOperationsList(); - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return The count of incrementalPreOperations. - */ - int getIncrementalPreOperationsCount(); - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index of the element to return. - * @return The incrementalPreOperations at the given index. - */ - java.lang.String getIncrementalPreOperations(int index); - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index of the value to return. - * @return The bytes of the incrementalPreOperations at the given index. - */ - com.google.protobuf.ByteString getIncrementalPreOperationsBytes(int index); - - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @return A list containing the incrementalPostOperations. - */ - java.util.List getIncrementalPostOperationsList(); - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @return The count of incrementalPostOperations. - */ - int getIncrementalPostOperationsCount(); - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index of the element to return. - * @return The incrementalPostOperations at the given index. - */ - java.lang.String getIncrementalPostOperations(int index); - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index of the value to return. - * @return The bytes of the incrementalPostOperations at the given index. - */ - com.google.protobuf.ByteString getIncrementalPostOperationsBytes(int index); - } - /** - * - * - *
-     * Contains settings for relations of type `INCREMENTAL_TABLE`.
-     * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig} - */ - public static final class IncrementalTableConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig) - IncrementalTableConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use IncrementalTableConfig.newBuilder() to construct. - private IncrementalTableConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IncrementalTableConfig() { - incrementalSelectQuery_ = ""; - uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - updatePartitionFilter_ = ""; - incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IncrementalTableConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.Builder.class); - } - - public static final int INCREMENTAL_SELECT_QUERY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object incrementalSelectQuery_ = ""; - /** - * - * - *
-       * The SELECT query which returns rows which should be inserted into the
-       * relation if it already exists and is not being refreshed.
-       * 
- * - * string incremental_select_query = 1; - * - * @return The incrementalSelectQuery. - */ - @java.lang.Override - public java.lang.String getIncrementalSelectQuery() { - java.lang.Object ref = incrementalSelectQuery_; - 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(); - incrementalSelectQuery_ = s; - return s; - } - } - /** - * - * - *
-       * The SELECT query which returns rows which should be inserted into the
-       * relation if it already exists and is not being refreshed.
-       * 
- * - * string incremental_select_query = 1; - * - * @return The bytes for incrementalSelectQuery. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIncrementalSelectQueryBytes() { - java.lang.Object ref = incrementalSelectQuery_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - incrementalSelectQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REFRESH_DISABLED_FIELD_NUMBER = 2; - private boolean refreshDisabled_ = false; - /** - * - * - *
-       * Whether this table should be protected from being refreshed.
-       * 
- * - * bool refresh_disabled = 2; - * - * @return The refreshDisabled. - */ - @java.lang.Override - public boolean getRefreshDisabled() { - return refreshDisabled_; - } - - public static final int UNIQUE_KEY_PARTS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList uniqueKeyParts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @return A list containing the uniqueKeyParts. - */ - public com.google.protobuf.ProtocolStringList getUniqueKeyPartsList() { - return uniqueKeyParts_; - } - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @return The count of uniqueKeyParts. - */ - public int getUniqueKeyPartsCount() { - return uniqueKeyParts_.size(); - } - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index of the element to return. - * @return The uniqueKeyParts at the given index. - */ - public java.lang.String getUniqueKeyParts(int index) { - return uniqueKeyParts_.get(index); - } - /** - * - * - *
-       * A set of columns or SQL expressions used to define row uniqueness.
-       * If any duplicates are discovered (as defined by `unique_key_parts`),
-       * only the newly selected rows (as defined by `incremental_select_query`)
-       * will be included in the relation.
-       * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index of the value to return. - * @return The bytes of the uniqueKeyParts at the given index. - */ - public com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index) { - return uniqueKeyParts_.getByteString(index); - } - - public static final int UPDATE_PARTITION_FILTER_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object updatePartitionFilter_ = ""; - /** - * - * - *
-       * A SQL expression conditional used to limit the set of existing rows
-       * considered for a merge operation (see `unique_key_parts` for more
-       * information).
-       * 
- * - * string update_partition_filter = 4; - * - * @return The updatePartitionFilter. - */ - @java.lang.Override - public java.lang.String getUpdatePartitionFilter() { - java.lang.Object ref = updatePartitionFilter_; - 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(); - updatePartitionFilter_ = s; - return s; - } - } - /** - * - * - *
-       * A SQL expression conditional used to limit the set of existing rows
-       * considered for a merge operation (see `unique_key_parts` for more
-       * information).
-       * 
- * - * string update_partition_filter = 4; - * - * @return The bytes for updatePartitionFilter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUpdatePartitionFilterBytes() { - java.lang.Object ref = updatePartitionFilter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - updatePartitionFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INCREMENTAL_PRE_OPERATIONS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList incrementalPreOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return A list containing the incrementalPreOperations. - */ - public com.google.protobuf.ProtocolStringList getIncrementalPreOperationsList() { - return incrementalPreOperations_; - } - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return The count of incrementalPreOperations. - */ - public int getIncrementalPreOperationsCount() { - return incrementalPreOperations_.size(); - } - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index of the element to return. - * @return The incrementalPreOperations at the given index. - */ - public java.lang.String getIncrementalPreOperations(int index) { - return incrementalPreOperations_.get(index); - } - /** - * - * - *
-       * SQL statements to be executed before inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index of the value to return. - * @return The bytes of the incrementalPreOperations at the given index. - */ - public com.google.protobuf.ByteString getIncrementalPreOperationsBytes(int index) { - return incrementalPreOperations_.getByteString(index); - } - - public static final int INCREMENTAL_POST_OPERATIONS_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList incrementalPostOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @return A list containing the incrementalPostOperations. - */ - public com.google.protobuf.ProtocolStringList getIncrementalPostOperationsList() { - return incrementalPostOperations_; - } - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @return The count of incrementalPostOperations. - */ - public int getIncrementalPostOperationsCount() { - return incrementalPostOperations_.size(); - } - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index of the element to return. - * @return The incrementalPostOperations at the given index. - */ - public java.lang.String getIncrementalPostOperations(int index) { - return incrementalPostOperations_.get(index); - } - /** - * - * - *
-       * SQL statements to be executed after inserting new rows into the
-       * relation.
-       * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index of the value to return. - * @return The bytes of the incrementalPostOperations at the given index. - */ - public com.google.protobuf.ByteString getIncrementalPostOperationsBytes(int index) { - return incrementalPostOperations_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(incrementalSelectQuery_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, incrementalSelectQuery_); - } - if (refreshDisabled_ != false) { - output.writeBool(2, refreshDisabled_); - } - for (int i = 0; i < uniqueKeyParts_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uniqueKeyParts_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updatePartitionFilter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, updatePartitionFilter_); - } - for (int i = 0; i < incrementalPreOperations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, incrementalPreOperations_.getRaw(i)); - } - for (int i = 0; i < incrementalPostOperations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 6, incrementalPostOperations_.getRaw(i)); - } - 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(incrementalSelectQuery_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, incrementalSelectQuery_); - } - if (refreshDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, refreshDisabled_); - } - { - int dataSize = 0; - for (int i = 0; i < uniqueKeyParts_.size(); i++) { - dataSize += computeStringSizeNoTag(uniqueKeyParts_.getRaw(i)); - } - size += dataSize; - size += 1 * getUniqueKeyPartsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updatePartitionFilter_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(4, updatePartitionFilter_); - } - { - int dataSize = 0; - for (int i = 0; i < incrementalPreOperations_.size(); i++) { - dataSize += computeStringSizeNoTag(incrementalPreOperations_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncrementalPreOperationsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < incrementalPostOperations_.size(); i++) { - dataSize += computeStringSizeNoTag(incrementalPostOperations_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncrementalPostOperationsList().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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - other = - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig) - obj; - - if (!getIncrementalSelectQuery().equals(other.getIncrementalSelectQuery())) return false; - if (getRefreshDisabled() != other.getRefreshDisabled()) return false; - if (!getUniqueKeyPartsList().equals(other.getUniqueKeyPartsList())) return false; - if (!getUpdatePartitionFilter().equals(other.getUpdatePartitionFilter())) return false; - if (!getIncrementalPreOperationsList().equals(other.getIncrementalPreOperationsList())) - return false; - if (!getIncrementalPostOperationsList().equals(other.getIncrementalPostOperationsList())) - 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) + INCREMENTAL_SELECT_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getIncrementalSelectQuery().hashCode(); - hash = (37 * hash) + REFRESH_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRefreshDisabled()); - if (getUniqueKeyPartsCount() > 0) { - hash = (37 * hash) + UNIQUE_KEY_PARTS_FIELD_NUMBER; - hash = (53 * hash) + getUniqueKeyPartsList().hashCode(); - } - hash = (37 * hash) + UPDATE_PARTITION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getUpdatePartitionFilter().hashCode(); - if (getIncrementalPreOperationsCount() > 0) { - hash = (37 * hash) + INCREMENTAL_PRE_OPERATIONS_FIELD_NUMBER; - hash = (53 * hash) + getIncrementalPreOperationsList().hashCode(); - } - if (getIncrementalPostOperationsCount() > 0) { - hash = (37 * hash) + INCREMENTAL_POST_OPERATIONS_FIELD_NUMBER; - hash = (53 * hash) + getIncrementalPostOperationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - 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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - 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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - 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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - 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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - 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.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - 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; - } - /** - * - * - *
-       * Contains settings for relations of type `INCREMENTAL_TABLE`.
-       * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig) - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - incrementalSelectQuery_ = ""; - refreshDisabled_ = false; - uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - updatePartitionFilter_ = ""; - incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - build() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - result = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.incrementalSelectQuery_ = incrementalSelectQuery_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.refreshDisabled_ = refreshDisabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - uniqueKeyParts_.makeImmutable(); - result.uniqueKeyParts_ = uniqueKeyParts_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.updatePartitionFilter_ = updatePartitionFilter_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - incrementalPreOperations_.makeImmutable(); - result.incrementalPreOperations_ = incrementalPreOperations_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - incrementalPostOperations_.makeImmutable(); - result.incrementalPostOperations_ = incrementalPostOperations_; - } - } - - @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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - other) { - if (other - == com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance()) return this; - if (!other.getIncrementalSelectQuery().isEmpty()) { - incrementalSelectQuery_ = other.incrementalSelectQuery_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getRefreshDisabled() != false) { - setRefreshDisabled(other.getRefreshDisabled()); - } - if (!other.uniqueKeyParts_.isEmpty()) { - if (uniqueKeyParts_.isEmpty()) { - uniqueKeyParts_ = other.uniqueKeyParts_; - bitField0_ |= 0x00000004; - } else { - ensureUniqueKeyPartsIsMutable(); - uniqueKeyParts_.addAll(other.uniqueKeyParts_); - } - onChanged(); - } - if (!other.getUpdatePartitionFilter().isEmpty()) { - updatePartitionFilter_ = other.updatePartitionFilter_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.incrementalPreOperations_.isEmpty()) { - if (incrementalPreOperations_.isEmpty()) { - incrementalPreOperations_ = other.incrementalPreOperations_; - bitField0_ |= 0x00000010; - } else { - ensureIncrementalPreOperationsIsMutable(); - incrementalPreOperations_.addAll(other.incrementalPreOperations_); - } - onChanged(); - } - if (!other.incrementalPostOperations_.isEmpty()) { - if (incrementalPostOperations_.isEmpty()) { - incrementalPostOperations_ = other.incrementalPostOperations_; - bitField0_ |= 0x00000020; - } else { - ensureIncrementalPostOperationsIsMutable(); - incrementalPostOperations_.addAll(other.incrementalPostOperations_); - } - 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: - { - incrementalSelectQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - refreshDisabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUniqueKeyPartsIsMutable(); - uniqueKeyParts_.add(s); - break; - } // case 26 - case 34: - { - updatePartitionFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncrementalPreOperationsIsMutable(); - incrementalPreOperations_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncrementalPostOperationsIsMutable(); - incrementalPostOperations_.add(s); - 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.lang.Object incrementalSelectQuery_ = ""; - /** - * - * - *
-         * The SELECT query which returns rows which should be inserted into the
-         * relation if it already exists and is not being refreshed.
-         * 
- * - * string incremental_select_query = 1; - * - * @return The incrementalSelectQuery. - */ - public java.lang.String getIncrementalSelectQuery() { - java.lang.Object ref = incrementalSelectQuery_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - incrementalSelectQuery_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The SELECT query which returns rows which should be inserted into the
-         * relation if it already exists and is not being refreshed.
-         * 
- * - * string incremental_select_query = 1; - * - * @return The bytes for incrementalSelectQuery. - */ - public com.google.protobuf.ByteString getIncrementalSelectQueryBytes() { - java.lang.Object ref = incrementalSelectQuery_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - incrementalSelectQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The SELECT query which returns rows which should be inserted into the
-         * relation if it already exists and is not being refreshed.
-         * 
- * - * string incremental_select_query = 1; - * - * @param value The incrementalSelectQuery to set. - * @return This builder for chaining. - */ - public Builder setIncrementalSelectQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - incrementalSelectQuery_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-         * The SELECT query which returns rows which should be inserted into the
-         * relation if it already exists and is not being refreshed.
-         * 
- * - * string incremental_select_query = 1; - * - * @return This builder for chaining. - */ - public Builder clearIncrementalSelectQuery() { - incrementalSelectQuery_ = getDefaultInstance().getIncrementalSelectQuery(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-         * The SELECT query which returns rows which should be inserted into the
-         * relation if it already exists and is not being refreshed.
-         * 
- * - * string incremental_select_query = 1; - * - * @param value The bytes for incrementalSelectQuery to set. - * @return This builder for chaining. - */ - public Builder setIncrementalSelectQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - incrementalSelectQuery_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean refreshDisabled_; - /** - * - * - *
-         * Whether this table should be protected from being refreshed.
-         * 
- * - * bool refresh_disabled = 2; - * - * @return The refreshDisabled. - */ - @java.lang.Override - public boolean getRefreshDisabled() { - return refreshDisabled_; - } - /** - * - * - *
-         * Whether this table should be protected from being refreshed.
-         * 
- * - * bool refresh_disabled = 2; - * - * @param value The refreshDisabled to set. - * @return This builder for chaining. - */ - public Builder setRefreshDisabled(boolean value) { - - refreshDisabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * Whether this table should be protected from being refreshed.
-         * 
- * - * bool refresh_disabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearRefreshDisabled() { - bitField0_ = (bitField0_ & ~0x00000002); - refreshDisabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList uniqueKeyParts_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureUniqueKeyPartsIsMutable() { - if (!uniqueKeyParts_.isModifiable()) { - uniqueKeyParts_ = new com.google.protobuf.LazyStringArrayList(uniqueKeyParts_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @return A list containing the uniqueKeyParts. - */ - public com.google.protobuf.ProtocolStringList getUniqueKeyPartsList() { - uniqueKeyParts_.makeImmutable(); - return uniqueKeyParts_; - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @return The count of uniqueKeyParts. - */ - public int getUniqueKeyPartsCount() { - return uniqueKeyParts_.size(); - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index of the element to return. - * @return The uniqueKeyParts at the given index. - */ - public java.lang.String getUniqueKeyParts(int index) { - return uniqueKeyParts_.get(index); - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index of the value to return. - * @return The bytes of the uniqueKeyParts at the given index. - */ - public com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index) { - return uniqueKeyParts_.getByteString(index); - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @param index The index to set the value at. - * @param value The uniqueKeyParts to set. - * @return This builder for chaining. - */ - public Builder setUniqueKeyParts(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUniqueKeyPartsIsMutable(); - uniqueKeyParts_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @param value The uniqueKeyParts to add. - * @return This builder for chaining. - */ - public Builder addUniqueKeyParts(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUniqueKeyPartsIsMutable(); - uniqueKeyParts_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @param values The uniqueKeyParts to add. - * @return This builder for chaining. - */ - public Builder addAllUniqueKeyParts(java.lang.Iterable values) { - ensureUniqueKeyPartsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uniqueKeyParts_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @return This builder for chaining. - */ - public Builder clearUniqueKeyParts() { - uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * A set of columns or SQL expressions used to define row uniqueness.
-         * If any duplicates are discovered (as defined by `unique_key_parts`),
-         * only the newly selected rows (as defined by `incremental_select_query`)
-         * will be included in the relation.
-         * 
- * - * repeated string unique_key_parts = 3; - * - * @param value The bytes of the uniqueKeyParts to add. - * @return This builder for chaining. - */ - public Builder addUniqueKeyPartsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUniqueKeyPartsIsMutable(); - uniqueKeyParts_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object updatePartitionFilter_ = ""; - /** - * - * - *
-         * A SQL expression conditional used to limit the set of existing rows
-         * considered for a merge operation (see `unique_key_parts` for more
-         * information).
-         * 
- * - * string update_partition_filter = 4; - * - * @return The updatePartitionFilter. - */ - public java.lang.String getUpdatePartitionFilter() { - java.lang.Object ref = updatePartitionFilter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - updatePartitionFilter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * A SQL expression conditional used to limit the set of existing rows
-         * considered for a merge operation (see `unique_key_parts` for more
-         * information).
-         * 
- * - * string update_partition_filter = 4; - * - * @return The bytes for updatePartitionFilter. - */ - public com.google.protobuf.ByteString getUpdatePartitionFilterBytes() { - java.lang.Object ref = updatePartitionFilter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - updatePartitionFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * A SQL expression conditional used to limit the set of existing rows
-         * considered for a merge operation (see `unique_key_parts` for more
-         * information).
-         * 
- * - * string update_partition_filter = 4; - * - * @param value The updatePartitionFilter to set. - * @return This builder for chaining. - */ - public Builder setUpdatePartitionFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - updatePartitionFilter_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-         * A SQL expression conditional used to limit the set of existing rows
-         * considered for a merge operation (see `unique_key_parts` for more
-         * information).
-         * 
- * - * string update_partition_filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearUpdatePartitionFilter() { - updatePartitionFilter_ = getDefaultInstance().getUpdatePartitionFilter(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-         * A SQL expression conditional used to limit the set of existing rows
-         * considered for a merge operation (see `unique_key_parts` for more
-         * information).
-         * 
- * - * string update_partition_filter = 4; - * - * @param value The bytes for updatePartitionFilter to set. - * @return This builder for chaining. - */ - public Builder setUpdatePartitionFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - updatePartitionFilter_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList incrementalPreOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncrementalPreOperationsIsMutable() { - if (!incrementalPreOperations_.isModifiable()) { - incrementalPreOperations_ = - new com.google.protobuf.LazyStringArrayList(incrementalPreOperations_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return A list containing the incrementalPreOperations. - */ - public com.google.protobuf.ProtocolStringList getIncrementalPreOperationsList() { - incrementalPreOperations_.makeImmutable(); - return incrementalPreOperations_; - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return The count of incrementalPreOperations. - */ - public int getIncrementalPreOperationsCount() { - return incrementalPreOperations_.size(); - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index of the element to return. - * @return The incrementalPreOperations at the given index. - */ - public java.lang.String getIncrementalPreOperations(int index) { - return incrementalPreOperations_.get(index); - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index of the value to return. - * @return The bytes of the incrementalPreOperations at the given index. - */ - public com.google.protobuf.ByteString getIncrementalPreOperationsBytes(int index) { - return incrementalPreOperations_.getByteString(index); - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param index The index to set the value at. - * @param value The incrementalPreOperations to set. - * @return This builder for chaining. - */ - public Builder setIncrementalPreOperations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncrementalPreOperationsIsMutable(); - incrementalPreOperations_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param value The incrementalPreOperations to add. - * @return This builder for chaining. - */ - public Builder addIncrementalPreOperations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncrementalPreOperationsIsMutable(); - incrementalPreOperations_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param values The incrementalPreOperations to add. - * @return This builder for chaining. - */ - public Builder addAllIncrementalPreOperations(java.lang.Iterable values) { - ensureIncrementalPreOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, incrementalPreOperations_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @return This builder for chaining. - */ - public Builder clearIncrementalPreOperations() { - incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed before inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_pre_operations = 5; - * - * @param value The bytes of the incrementalPreOperations to add. - * @return This builder for chaining. - */ - public Builder addIncrementalPreOperationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncrementalPreOperationsIsMutable(); - incrementalPreOperations_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList incrementalPostOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncrementalPostOperationsIsMutable() { - if (!incrementalPostOperations_.isModifiable()) { - incrementalPostOperations_ = - new com.google.protobuf.LazyStringArrayList(incrementalPostOperations_); - } - bitField0_ |= 0x00000020; - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @return A list containing the incrementalPostOperations. - */ - public com.google.protobuf.ProtocolStringList getIncrementalPostOperationsList() { - incrementalPostOperations_.makeImmutable(); - return incrementalPostOperations_; - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @return The count of incrementalPostOperations. - */ - public int getIncrementalPostOperationsCount() { - return incrementalPostOperations_.size(); - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index of the element to return. - * @return The incrementalPostOperations at the given index. - */ - public java.lang.String getIncrementalPostOperations(int index) { - return incrementalPostOperations_.get(index); - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index of the value to return. - * @return The bytes of the incrementalPostOperations at the given index. - */ - public com.google.protobuf.ByteString getIncrementalPostOperationsBytes(int index) { - return incrementalPostOperations_.getByteString(index); - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @param index The index to set the value at. - * @param value The incrementalPostOperations to set. - * @return This builder for chaining. - */ - public Builder setIncrementalPostOperations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncrementalPostOperationsIsMutable(); - incrementalPostOperations_.set(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @param value The incrementalPostOperations to add. - * @return This builder for chaining. - */ - public Builder addIncrementalPostOperations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncrementalPostOperationsIsMutable(); - incrementalPostOperations_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @param values The incrementalPostOperations to add. - * @return This builder for chaining. - */ - public Builder addAllIncrementalPostOperations( - java.lang.Iterable values) { - ensureIncrementalPostOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, incrementalPostOperations_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @return This builder for chaining. - */ - public Builder clearIncrementalPostOperations() { - incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * SQL statements to be executed after inserting new rows into the
-         * relation.
-         * 
- * - * repeated string incremental_post_operations = 6; - * - * @param value The bytes of the incrementalPostOperations to add. - * @return This builder for chaining. - */ - public Builder addIncrementalPostOperationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncrementalPostOperationsIsMutable(); - incrementalPostOperations_.add(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.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig) - private static final com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IncrementalTableConfig 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.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List dependencyTargets_; - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public java.util.List getDependencyTargetsList() { - return dependencyTargets_; - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public java.util.List - getDependencyTargetsOrBuilderList() { - return dependencyTargets_; - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public int getDependencyTargetsCount() { - return dependencyTargets_.size(); - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index) { - return dependencyTargets_.get(index); - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder( - int index) { - return dependencyTargets_.get(index); - } - - public static final int DISABLED_FIELD_NUMBER = 2; - private boolean disabled_ = false; - /** - * - * - *
-     * Whether this action is disabled (i.e. should not be run).
-     * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 4; - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - /** - * - * - *
-     * Descriptor for the relation and its columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - * - * @return Whether the relationDescriptor field is set. - */ - @java.lang.Override - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Descriptor for the relation and its columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - * - * @return The relationDescriptor. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - /** - * - * - *
-     * Descriptor for the relation and its columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - - public static final int RELATION_TYPE_FIELD_NUMBER = 5; - private int relationType_ = 0; - /** - * - * - *
-     * The type of this relation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return The enum numeric value on the wire for relationType. - */ - @java.lang.Override - public int getRelationTypeValue() { - return relationType_; - } - /** - * - * - *
-     * The type of this relation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return The relationType. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - getRelationType() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType result = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - .forNumber(relationType_); - return result == null - ? com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - .UNRECOGNIZED - : result; - } - - public static final int SELECT_QUERY_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object selectQuery_ = ""; - /** - * - * - *
-     * The SELECT query which returns rows which this relation should contain.
-     * 
- * - * string select_query = 6; - * - * @return The selectQuery. - */ - @java.lang.Override - public java.lang.String getSelectQuery() { - java.lang.Object ref = selectQuery_; - 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(); - selectQuery_ = s; - return s; - } - } - /** - * - * - *
-     * The SELECT query which returns rows which this relation should contain.
-     * 
- * - * string select_query = 6; - * - * @return The bytes for selectQuery. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelectQueryBytes() { - java.lang.Object ref = selectQuery_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selectQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRE_OPERATIONS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList preOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @return A list containing the preOperations. - */ - public com.google.protobuf.ProtocolStringList getPreOperationsList() { - return preOperations_; - } - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @return The count of preOperations. - */ - public int getPreOperationsCount() { - return preOperations_.size(); - } - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @param index The index of the element to return. - * @return The preOperations at the given index. - */ - public java.lang.String getPreOperations(int index) { - return preOperations_.get(index); - } - /** - * - * - *
-     * SQL statements to be executed before creating the relation.
-     * 
- * - * repeated string pre_operations = 7; - * - * @param index The index of the value to return. - * @return The bytes of the preOperations at the given index. - */ - public com.google.protobuf.ByteString getPreOperationsBytes(int index) { - return preOperations_.getByteString(index); - } - - public static final int POST_OPERATIONS_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList postOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @return A list containing the postOperations. - */ - public com.google.protobuf.ProtocolStringList getPostOperationsList() { - return postOperations_; - } - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @return The count of postOperations. - */ - public int getPostOperationsCount() { - return postOperations_.size(); - } - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @param index The index of the element to return. - * @return The postOperations at the given index. - */ - public java.lang.String getPostOperations(int index) { - return postOperations_.get(index); - } - /** - * - * - *
-     * SQL statements to be executed after creating the relation.
-     * 
- * - * repeated string post_operations = 8; - * - * @param index The index of the value to return. - * @return The bytes of the postOperations at the given index. - */ - public com.google.protobuf.ByteString getPostOperationsBytes(int index) { - return postOperations_.getByteString(index); - } - - public static final int INCREMENTAL_TABLE_CONFIG_FIELD_NUMBER = 9; - private com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - incrementalTableConfig_; - /** - * - * - *
-     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-     * `relation_type` is `INCREMENTAL_TABLE`.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - * - * @return Whether the incrementalTableConfig field is set. - */ - @java.lang.Override - public boolean hasIncrementalTableConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-     * `relation_type` is `INCREMENTAL_TABLE`.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - * - * @return The incrementalTableConfig. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - getIncrementalTableConfig() { - return incrementalTableConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance() - : incrementalTableConfig_; - } - /** - * - * - *
-     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-     * `relation_type` is `INCREMENTAL_TABLE`.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder - getIncrementalTableConfigOrBuilder() { - return incrementalTableConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance() - : incrementalTableConfig_; - } - - public static final int PARTITION_EXPRESSION_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private volatile java.lang.Object partitionExpression_ = ""; - /** - * - * - *
-     * The SQL expression used to partition the relation.
-     * 
- * - * string partition_expression = 10; - * - * @return The partitionExpression. - */ - @java.lang.Override - public java.lang.String getPartitionExpression() { - java.lang.Object ref = partitionExpression_; - 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(); - partitionExpression_ = s; - return s; - } - } - /** - * - * - *
-     * The SQL expression used to partition the relation.
-     * 
- * - * string partition_expression = 10; - * - * @return The bytes for partitionExpression. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPartitionExpressionBytes() { - java.lang.Object ref = partitionExpression_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - partitionExpression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_EXPRESSIONS_FIELD_NUMBER = 11; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList clusterExpressions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @return A list containing the clusterExpressions. - */ - public com.google.protobuf.ProtocolStringList getClusterExpressionsList() { - return clusterExpressions_; - } - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @return The count of clusterExpressions. - */ - public int getClusterExpressionsCount() { - return clusterExpressions_.size(); - } - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index of the element to return. - * @return The clusterExpressions at the given index. - */ - public java.lang.String getClusterExpressions(int index) { - return clusterExpressions_.get(index); - } - /** - * - * - *
-     * A list of columns or SQL expressions used to cluster the table.
-     * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index of the value to return. - * @return The bytes of the clusterExpressions at the given index. - */ - public com.google.protobuf.ByteString getClusterExpressionsBytes(int index) { - return clusterExpressions_.getByteString(index); - } - - public static final int PARTITION_EXPIRATION_DAYS_FIELD_NUMBER = 12; - private int partitionExpirationDays_ = 0; - /** - * - * - *
-     * Sets the partition expiration in days.
-     * 
- * - * int32 partition_expiration_days = 12; - * - * @return The partitionExpirationDays. - */ - @java.lang.Override - public int getPartitionExpirationDays() { - return partitionExpirationDays_; - } - - public static final int REQUIRE_PARTITION_FILTER_FIELD_NUMBER = 13; - private boolean requirePartitionFilter_ = false; - /** - * - * - *
-     * Specifies whether queries on this table must include a predicate filter
-     * that filters on the partitioning column.
-     * 
- * - * bool require_partition_filter = 13; - * - * @return The requirePartitionFilter. - */ - @java.lang.Override - public boolean getRequirePartitionFilter() { - return requirePartitionFilter_; - } - - public static final int ADDITIONAL_OPTIONS_FIELD_NUMBER = 14; - - private static final class AdditionalOptionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField additionalOptions_; - - private com.google.protobuf.MapField - internalGetAdditionalOptions() { - if (additionalOptions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AdditionalOptionsDefaultEntryHolder.defaultEntry); - } - return additionalOptions_; - } - - public int getAdditionalOptionsCount() { - return internalGetAdditionalOptions().getMap().size(); - } - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public boolean containsAdditionalOptions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetAdditionalOptions().getMap().containsKey(key); - } - /** Use {@link #getAdditionalOptionsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAdditionalOptions() { - return getAdditionalOptionsMap(); - } - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public java.util.Map getAdditionalOptionsMap() { - return internalGetAdditionalOptions().getMap(); - } - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public /* nullable */ java.lang.String getAdditionalOptionsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetAdditionalOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Additional options that will be provided as key/value pairs into the
-     * options clause of a create table/view statement. See
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-     * for more information on which options are supported.
-     * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetAdditionalOptions().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 { - for (int i = 0; i < dependencyTargets_.size(); i++) { - output.writeMessage(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - output.writeBool(2, disabled_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getRelationDescriptor()); - } - if (relationType_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - .RELATION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, relationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selectQuery_); - } - for (int i = 0; i < preOperations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, preOperations_.getRaw(i)); - } - for (int i = 0; i < postOperations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, postOperations_.getRaw(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(9, getIncrementalTableConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionExpression_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, partitionExpression_); - } - for (int i = 0; i < clusterExpressions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 11, clusterExpressions_.getRaw(i)); - } - if (partitionExpirationDays_ != 0) { - output.writeInt32(12, partitionExpirationDays_); - } - if (requirePartitionFilter_ != false) { - output.writeBool(13, requirePartitionFilter_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, - internalGetAdditionalOptions(), - AdditionalOptionsDefaultEntryHolder.defaultEntry, - 14); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dependencyTargets_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRelationDescriptor()); - } - if (relationType_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - .RELATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, relationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selectQuery_); - } - { - int dataSize = 0; - for (int i = 0; i < preOperations_.size(); i++) { - dataSize += computeStringSizeNoTag(preOperations_.getRaw(i)); - } - size += dataSize; - size += 1 * getPreOperationsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < postOperations_.size(); i++) { - dataSize += computeStringSizeNoTag(postOperations_.getRaw(i)); - } - size += dataSize; - size += 1 * getPostOperationsList().size(); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, getIncrementalTableConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionExpression_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, partitionExpression_); - } - { - int dataSize = 0; - for (int i = 0; i < clusterExpressions_.size(); i++) { - dataSize += computeStringSizeNoTag(clusterExpressions_.getRaw(i)); - } - size += dataSize; - size += 1 * getClusterExpressionsList().size(); - } - if (partitionExpirationDays_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(12, partitionExpirationDays_); - } - if (requirePartitionFilter_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, requirePartitionFilter_); - } - for (java.util.Map.Entry entry : - internalGetAdditionalOptions().getMap().entrySet()) { - com.google.protobuf.MapEntry additionalOptions__ = - AdditionalOptionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, additionalOptions__); - } - 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.v1alpha2.CompilationResultAction.Relation)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation other = - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) obj; - - if (!getDependencyTargetsList().equals(other.getDependencyTargetsList())) return false; - if (getDisabled() != other.getDisabled()) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false; - if (hasRelationDescriptor()) { - if (!getRelationDescriptor().equals(other.getRelationDescriptor())) return false; - } - if (relationType_ != other.relationType_) return false; - if (!getSelectQuery().equals(other.getSelectQuery())) return false; - if (!getPreOperationsList().equals(other.getPreOperationsList())) return false; - if (!getPostOperationsList().equals(other.getPostOperationsList())) return false; - if (hasIncrementalTableConfig() != other.hasIncrementalTableConfig()) return false; - if (hasIncrementalTableConfig()) { - if (!getIncrementalTableConfig().equals(other.getIncrementalTableConfig())) return false; - } - if (!getPartitionExpression().equals(other.getPartitionExpression())) return false; - if (!getClusterExpressionsList().equals(other.getClusterExpressionsList())) return false; - if (getPartitionExpirationDays() != other.getPartitionExpirationDays()) return false; - if (getRequirePartitionFilter() != other.getRequirePartitionFilter()) return false; - if (!internalGetAdditionalOptions().equals(other.internalGetAdditionalOptions())) - 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 (getDependencyTargetsCount() > 0) { - hash = (37 * hash) + DEPENDENCY_TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getDependencyTargetsList().hashCode(); - } - hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasRelationDescriptor()) { - hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER; - hash = (53 * hash) + getRelationDescriptor().hashCode(); - } - hash = (37 * hash) + RELATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + relationType_; - hash = (37 * hash) + SELECT_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getSelectQuery().hashCode(); - if (getPreOperationsCount() > 0) { - hash = (37 * hash) + PRE_OPERATIONS_FIELD_NUMBER; - hash = (53 * hash) + getPreOperationsList().hashCode(); - } - if (getPostOperationsCount() > 0) { - hash = (37 * hash) + POST_OPERATIONS_FIELD_NUMBER; - hash = (53 * hash) + getPostOperationsList().hashCode(); - } - if (hasIncrementalTableConfig()) { - hash = (37 * hash) + INCREMENTAL_TABLE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getIncrementalTableConfig().hashCode(); - } - hash = (37 * hash) + PARTITION_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getPartitionExpression().hashCode(); - if (getClusterExpressionsCount() > 0) { - hash = (37 * hash) + CLUSTER_EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getClusterExpressionsList().hashCode(); - } - hash = (37 * hash) + PARTITION_EXPIRATION_DAYS_FIELD_NUMBER; - hash = (53 * hash) + getPartitionExpirationDays(); - hash = (37 * hash) + REQUIRE_PARTITION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePartitionFilter()); - if (!internalGetAdditionalOptions().getMap().isEmpty()) { - hash = (37 * hash) + ADDITIONAL_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAdditionalOptions().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation 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.v1alpha2.CompilationResultAction.Relation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation 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.v1alpha2.CompilationResultAction.Relation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation 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.v1alpha2.CompilationResultAction.Relation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - 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.v1alpha2.CompilationResultAction.Relation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation 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.v1alpha2.CompilationResultAction.Relation 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 database relation.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Relation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetAdditionalOptions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetMutableAdditionalOptions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDependencyTargetsFieldBuilder(); - getRelationDescriptorFieldBuilder(); - getIncrementalTableConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dependencyTargetsBuilder_ == null) { - dependencyTargets_ = java.util.Collections.emptyList(); - } else { - dependencyTargets_ = null; - dependencyTargetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - relationType_ = 0; - selectQuery_ = ""; - preOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - incrementalTableConfig_ = null; - if (incrementalTableConfigBuilder_ != null) { - incrementalTableConfigBuilder_.dispose(); - incrementalTableConfigBuilder_ = null; - } - partitionExpression_ = ""; - clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - partitionExpirationDays_ = 0; - requirePartitionFilter_ = false; - internalGetMutableAdditionalOptions().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation build() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation result = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation result) { - if (dependencyTargetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dependencyTargets_ = dependencyTargets_; - } else { - result.dependencyTargets_ = dependencyTargetsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.disabled_ = disabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.relationDescriptor_ = - relationDescriptorBuilder_ == null - ? relationDescriptor_ - : relationDescriptorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.relationType_ = relationType_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.selectQuery_ = selectQuery_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - preOperations_.makeImmutable(); - result.preOperations_ = preOperations_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - postOperations_.makeImmutable(); - result.postOperations_ = postOperations_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.incrementalTableConfig_ = - incrementalTableConfigBuilder_ == null - ? incrementalTableConfig_ - : incrementalTableConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.partitionExpression_ = partitionExpression_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - clusterExpressions_.makeImmutable(); - result.clusterExpressions_ = clusterExpressions_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.partitionExpirationDays_ = partitionExpirationDays_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.requirePartitionFilter_ = requirePartitionFilter_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.additionalOptions_ = internalGetAdditionalOptions(); - result.additionalOptions_.makeImmutable(); - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CompilationResultAction.Relation) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation other) { - if (other - == com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance()) return this; - if (dependencyTargetsBuilder_ == null) { - if (!other.dependencyTargets_.isEmpty()) { - if (dependencyTargets_.isEmpty()) { - dependencyTargets_ = other.dependencyTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.addAll(other.dependencyTargets_); - } - onChanged(); - } - } else { - if (!other.dependencyTargets_.isEmpty()) { - if (dependencyTargetsBuilder_.isEmpty()) { - dependencyTargetsBuilder_.dispose(); - dependencyTargetsBuilder_ = null; - dependencyTargets_ = other.dependencyTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - dependencyTargetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDependencyTargetsFieldBuilder() - : null; - } else { - dependencyTargetsBuilder_.addAllMessages(other.dependencyTargets_); - } - } - } - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000004; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasRelationDescriptor()) { - mergeRelationDescriptor(other.getRelationDescriptor()); - } - if (other.relationType_ != 0) { - setRelationTypeValue(other.getRelationTypeValue()); - } - if (!other.getSelectQuery().isEmpty()) { - selectQuery_ = other.selectQuery_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.preOperations_.isEmpty()) { - if (preOperations_.isEmpty()) { - preOperations_ = other.preOperations_; - bitField0_ |= 0x00000040; - } else { - ensurePreOperationsIsMutable(); - preOperations_.addAll(other.preOperations_); - } - onChanged(); - } - if (!other.postOperations_.isEmpty()) { - if (postOperations_.isEmpty()) { - postOperations_ = other.postOperations_; - bitField0_ |= 0x00000080; - } else { - ensurePostOperationsIsMutable(); - postOperations_.addAll(other.postOperations_); - } - onChanged(); - } - if (other.hasIncrementalTableConfig()) { - mergeIncrementalTableConfig(other.getIncrementalTableConfig()); - } - if (!other.getPartitionExpression().isEmpty()) { - partitionExpression_ = other.partitionExpression_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.clusterExpressions_.isEmpty()) { - if (clusterExpressions_.isEmpty()) { - clusterExpressions_ = other.clusterExpressions_; - bitField0_ |= 0x00000400; - } else { - ensureClusterExpressionsIsMutable(); - clusterExpressions_.addAll(other.clusterExpressions_); - } - onChanged(); - } - if (other.getPartitionExpirationDays() != 0) { - setPartitionExpirationDays(other.getPartitionExpirationDays()); - } - if (other.getRequirePartitionFilter() != false) { - setRequirePartitionFilter(other.getRequirePartitionFilter()); - } - internalGetMutableAdditionalOptions().mergeFrom(other.internalGetAdditionalOptions()); - bitField0_ |= 0x00002000; - 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.v1alpha2.Target m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.Target.parser(), extensionRegistry); - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(m); - } else { - dependencyTargetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 26 - case 34: - { - input.readMessage( - getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - relationType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - selectQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePreOperationsIsMutable(); - preOperations_.add(s); - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePostOperationsIsMutable(); - postOperations_.add(s); - break; - } // case 66 - case 74: - { - input.readMessage( - getIncrementalTableConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - partitionExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureClusterExpressionsIsMutable(); - clusterExpressions_.add(s); - break; - } // case 90 - case 96: - { - partitionExpirationDays_ = input.readInt32(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 104: - { - requirePartitionFilter_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 114: - { - com.google.protobuf.MapEntry - additionalOptions__ = - input.readMessage( - AdditionalOptionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAdditionalOptions() - .getMutableMap() - .put(additionalOptions__.getKey(), additionalOptions__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 114 - 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 dependencyTargets_ = - java.util.Collections.emptyList(); - - private void ensureDependencyTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dependencyTargets_ = - new java.util.ArrayList( - dependencyTargets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - dependencyTargetsBuilder_; - - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List getDependencyTargetsList() { - if (dependencyTargetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dependencyTargets_); - } else { - return dependencyTargetsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public int getDependencyTargetsCount() { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.size(); - } else { - return dependencyTargetsBuilder_.getCount(); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index) { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.get(index); - } else { - return dependencyTargetsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder setDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.set(index, value); - onChanged(); - } else { - dependencyTargetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder setDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.set(index, builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets(com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(value); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(index, value); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(index, builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addAllDependencyTargets( - java.lang.Iterable values) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencyTargets_); - onChanged(); - } else { - dependencyTargetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder clearDependencyTargets() { - if (dependencyTargetsBuilder_ == null) { - dependencyTargets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dependencyTargetsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder removeDependencyTargets(int index) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.remove(index); - onChanged(); - } else { - dependencyTargetsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getDependencyTargetsBuilder( - int index) { - return getDependencyTargetsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder( - int index) { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.get(index); - } else { - return dependencyTargetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List - getDependencyTargetsOrBuilderList() { - if (dependencyTargetsBuilder_ != null) { - return dependencyTargetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dependencyTargets_); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addDependencyTargetsBuilder() { - return getDependencyTargetsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addDependencyTargetsBuilder( - int index) { - return getDependencyTargetsFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List - getDependencyTargetsBuilderList() { - return getDependencyTargetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getDependencyTargetsFieldBuilder() { - if (dependencyTargetsBuilder_ == null) { - dependencyTargetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - dependencyTargets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dependencyTargets_ = null; - } - return dependencyTargetsBuilder_; - } - - private boolean disabled_; - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000002); - disabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - return tags_; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - relationDescriptorBuilder_; - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - * - * @return Whether the relationDescriptor field is set. - */ - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - * - * @return The relationDescriptor. - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - if (relationDescriptorBuilder_ == null) { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } else { - return relationDescriptorBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relationDescriptor_ = value; - } else { - relationDescriptorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder builderForValue) { - if (relationDescriptorBuilder_ == null) { - relationDescriptor_ = builderForValue.build(); - } else { - relationDescriptorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - public Builder mergeRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && relationDescriptor_ != null - && relationDescriptor_ - != com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance()) { - getRelationDescriptorBuilder().mergeFrom(value); - } else { - relationDescriptor_ = value; - } - } else { - relationDescriptorBuilder_.mergeFrom(value); - } - if (relationDescriptor_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - public Builder clearRelationDescriptor() { - bitField0_ = (bitField0_ & ~0x00000008); - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder - getRelationDescriptorBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getRelationDescriptorFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - if (relationDescriptorBuilder_ != null) { - return relationDescriptorBuilder_.getMessageOrBuilder(); - } else { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - } - /** - * - * - *
-       * Descriptor for the relation and its columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - getRelationDescriptorFieldBuilder() { - if (relationDescriptorBuilder_ == null) { - relationDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder>( - getRelationDescriptor(), getParentForChildren(), isClean()); - relationDescriptor_ = null; - } - return relationDescriptorBuilder_; - } - - private int relationType_ = 0; - /** - * - * - *
-       * The type of this relation.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return The enum numeric value on the wire for relationType. - */ - @java.lang.Override - public int getRelationTypeValue() { - return relationType_; - } - /** - * - * - *
-       * The type of this relation.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @param value The enum numeric value on the wire for relationType to set. - * @return This builder for chaining. - */ - public Builder setRelationTypeValue(int value) { - relationType_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-       * The type of this relation.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return The relationType. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - getRelationType() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType result = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - .forNumber(relationType_); - return result == null - ? com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The type of this relation.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @param value The relationType to set. - * @return This builder for chaining. - */ - public Builder setRelationType( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - relationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The type of this relation.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.RelationType relation_type = 5; - * - * - * @return This builder for chaining. - */ - public Builder clearRelationType() { - bitField0_ = (bitField0_ & ~0x00000010); - relationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object selectQuery_ = ""; - /** - * - * - *
-       * The SELECT query which returns rows which this relation should contain.
-       * 
- * - * string select_query = 6; - * - * @return The selectQuery. - */ - public java.lang.String getSelectQuery() { - java.lang.Object ref = selectQuery_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selectQuery_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The SELECT query which returns rows which this relation should contain.
-       * 
- * - * string select_query = 6; - * - * @return The bytes for selectQuery. - */ - public com.google.protobuf.ByteString getSelectQueryBytes() { - java.lang.Object ref = selectQuery_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selectQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The SELECT query which returns rows which this relation should contain.
-       * 
- * - * string select_query = 6; - * - * @param value The selectQuery to set. - * @return This builder for chaining. - */ - public Builder setSelectQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - selectQuery_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-       * The SELECT query which returns rows which this relation should contain.
-       * 
- * - * string select_query = 6; - * - * @return This builder for chaining. - */ - public Builder clearSelectQuery() { - selectQuery_ = getDefaultInstance().getSelectQuery(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-       * The SELECT query which returns rows which this relation should contain.
-       * 
- * - * string select_query = 6; - * - * @param value The bytes for selectQuery to set. - * @return This builder for chaining. - */ - public Builder setSelectQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - selectQuery_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList preOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePreOperationsIsMutable() { - if (!preOperations_.isModifiable()) { - preOperations_ = new com.google.protobuf.LazyStringArrayList(preOperations_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @return A list containing the preOperations. - */ - public com.google.protobuf.ProtocolStringList getPreOperationsList() { - preOperations_.makeImmutable(); - return preOperations_; - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @return The count of preOperations. - */ - public int getPreOperationsCount() { - return preOperations_.size(); - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @param index The index of the element to return. - * @return The preOperations at the given index. - */ - public java.lang.String getPreOperations(int index) { - return preOperations_.get(index); - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @param index The index of the value to return. - * @return The bytes of the preOperations at the given index. - */ - public com.google.protobuf.ByteString getPreOperationsBytes(int index) { - return preOperations_.getByteString(index); - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @param index The index to set the value at. - * @param value The preOperations to set. - * @return This builder for chaining. - */ - public Builder setPreOperations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePreOperationsIsMutable(); - preOperations_.set(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @param value The preOperations to add. - * @return This builder for chaining. - */ - public Builder addPreOperations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePreOperationsIsMutable(); - preOperations_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @param values The preOperations to add. - * @return This builder for chaining. - */ - public Builder addAllPreOperations(java.lang.Iterable values) { - ensurePreOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, preOperations_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @return This builder for chaining. - */ - public Builder clearPreOperations() { - preOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed before creating the relation.
-       * 
- * - * repeated string pre_operations = 7; - * - * @param value The bytes of the preOperations to add. - * @return This builder for chaining. - */ - public Builder addPreOperationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePreOperationsIsMutable(); - preOperations_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList postOperations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePostOperationsIsMutable() { - if (!postOperations_.isModifiable()) { - postOperations_ = new com.google.protobuf.LazyStringArrayList(postOperations_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @return A list containing the postOperations. - */ - public com.google.protobuf.ProtocolStringList getPostOperationsList() { - postOperations_.makeImmutable(); - return postOperations_; - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @return The count of postOperations. - */ - public int getPostOperationsCount() { - return postOperations_.size(); - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @param index The index of the element to return. - * @return The postOperations at the given index. - */ - public java.lang.String getPostOperations(int index) { - return postOperations_.get(index); - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @param index The index of the value to return. - * @return The bytes of the postOperations at the given index. - */ - public com.google.protobuf.ByteString getPostOperationsBytes(int index) { - return postOperations_.getByteString(index); - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @param index The index to set the value at. - * @param value The postOperations to set. - * @return This builder for chaining. - */ - public Builder setPostOperations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePostOperationsIsMutable(); - postOperations_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @param value The postOperations to add. - * @return This builder for chaining. - */ - public Builder addPostOperations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePostOperationsIsMutable(); - postOperations_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @param values The postOperations to add. - * @return This builder for chaining. - */ - public Builder addAllPostOperations(java.lang.Iterable values) { - ensurePostOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postOperations_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @return This builder for chaining. - */ - public Builder clearPostOperations() { - postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * SQL statements to be executed after creating the relation.
-       * 
- * - * repeated string post_operations = 8; - * - * @param value The bytes of the postOperations to add. - * @return This builder for chaining. - */ - public Builder addPostOperationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePostOperationsIsMutable(); - postOperations_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - incrementalTableConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder> - incrementalTableConfigBuilder_; - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - * - * @return Whether the incrementalTableConfig field is set. - */ - public boolean hasIncrementalTableConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - * - * @return The incrementalTableConfig. - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig - getIncrementalTableConfig() { - if (incrementalTableConfigBuilder_ == null) { - return incrementalTableConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance() - : incrementalTableConfig_; - } else { - return incrementalTableConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - public Builder setIncrementalTableConfig( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - value) { - if (incrementalTableConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - incrementalTableConfig_ = value; - } else { - incrementalTableConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - public Builder setIncrementalTableConfig( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - .Builder - builderForValue) { - if (incrementalTableConfigBuilder_ == null) { - incrementalTableConfig_ = builderForValue.build(); - } else { - incrementalTableConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - public Builder mergeIncrementalTableConfig( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig - value) { - if (incrementalTableConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && incrementalTableConfig_ != null - && incrementalTableConfig_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance()) { - getIncrementalTableConfigBuilder().mergeFrom(value); - } else { - incrementalTableConfig_ = value; - } - } else { - incrementalTableConfigBuilder_.mergeFrom(value); - } - if (incrementalTableConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - public Builder clearIncrementalTableConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - incrementalTableConfig_ = null; - if (incrementalTableConfigBuilder_ != null) { - incrementalTableConfigBuilder_.dispose(); - incrementalTableConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.Builder - getIncrementalTableConfigBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getIncrementalTableConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder - getIncrementalTableConfigOrBuilder() { - if (incrementalTableConfigBuilder_ != null) { - return incrementalTableConfigBuilder_.getMessageOrBuilder(); - } else { - return incrementalTableConfig_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.getDefaultInstance() - : incrementalTableConfig_; - } - } - /** - * - * - *
-       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
-       * `relation_type` is `INCREMENTAL_TABLE`.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder> - getIncrementalTableConfigFieldBuilder() { - if (incrementalTableConfigBuilder_ == null) { - incrementalTableConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfig.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .IncrementalTableConfigOrBuilder>( - getIncrementalTableConfig(), getParentForChildren(), isClean()); - incrementalTableConfig_ = null; - } - return incrementalTableConfigBuilder_; - } - - private java.lang.Object partitionExpression_ = ""; - /** - * - * - *
-       * The SQL expression used to partition the relation.
-       * 
- * - * string partition_expression = 10; - * - * @return The partitionExpression. - */ - public java.lang.String getPartitionExpression() { - java.lang.Object ref = partitionExpression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partitionExpression_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The SQL expression used to partition the relation.
-       * 
- * - * string partition_expression = 10; - * - * @return The bytes for partitionExpression. - */ - public com.google.protobuf.ByteString getPartitionExpressionBytes() { - java.lang.Object ref = partitionExpression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - partitionExpression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The SQL expression used to partition the relation.
-       * 
- * - * string partition_expression = 10; - * - * @param value The partitionExpression to set. - * @return This builder for chaining. - */ - public Builder setPartitionExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - partitionExpression_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-       * The SQL expression used to partition the relation.
-       * 
- * - * string partition_expression = 10; - * - * @return This builder for chaining. - */ - public Builder clearPartitionExpression() { - partitionExpression_ = getDefaultInstance().getPartitionExpression(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * - * - *
-       * The SQL expression used to partition the relation.
-       * 
- * - * string partition_expression = 10; - * - * @param value The bytes for partitionExpression to set. - * @return This builder for chaining. - */ - public Builder setPartitionExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - partitionExpression_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList clusterExpressions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureClusterExpressionsIsMutable() { - if (!clusterExpressions_.isModifiable()) { - clusterExpressions_ = new com.google.protobuf.LazyStringArrayList(clusterExpressions_); - } - bitField0_ |= 0x00000400; - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @return A list containing the clusterExpressions. - */ - public com.google.protobuf.ProtocolStringList getClusterExpressionsList() { - clusterExpressions_.makeImmutable(); - return clusterExpressions_; - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @return The count of clusterExpressions. - */ - public int getClusterExpressionsCount() { - return clusterExpressions_.size(); - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index of the element to return. - * @return The clusterExpressions at the given index. - */ - public java.lang.String getClusterExpressions(int index) { - return clusterExpressions_.get(index); - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index of the value to return. - * @return The bytes of the clusterExpressions at the given index. - */ - public com.google.protobuf.ByteString getClusterExpressionsBytes(int index) { - return clusterExpressions_.getByteString(index); - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @param index The index to set the value at. - * @param value The clusterExpressions to set. - * @return This builder for chaining. - */ - public Builder setClusterExpressions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterExpressionsIsMutable(); - clusterExpressions_.set(index, value); - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @param value The clusterExpressions to add. - * @return This builder for chaining. - */ - public Builder addClusterExpressions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterExpressionsIsMutable(); - clusterExpressions_.add(value); - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @param values The clusterExpressions to add. - * @return This builder for chaining. - */ - public Builder addAllClusterExpressions(java.lang.Iterable values) { - ensureClusterExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterExpressions_); - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @return This builder for chaining. - */ - public Builder clearClusterExpressions() { - clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of columns or SQL expressions used to cluster the table.
-       * 
- * - * repeated string cluster_expressions = 11; - * - * @param value The bytes of the clusterExpressions to add. - * @return This builder for chaining. - */ - public Builder addClusterExpressionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureClusterExpressionsIsMutable(); - clusterExpressions_.add(value); - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private int partitionExpirationDays_; - /** - * - * - *
-       * Sets the partition expiration in days.
-       * 
- * - * int32 partition_expiration_days = 12; - * - * @return The partitionExpirationDays. - */ - @java.lang.Override - public int getPartitionExpirationDays() { - return partitionExpirationDays_; - } - /** - * - * - *
-       * Sets the partition expiration in days.
-       * 
- * - * int32 partition_expiration_days = 12; - * - * @param value The partitionExpirationDays to set. - * @return This builder for chaining. - */ - public Builder setPartitionExpirationDays(int value) { - - partitionExpirationDays_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-       * Sets the partition expiration in days.
-       * 
- * - * int32 partition_expiration_days = 12; - * - * @return This builder for chaining. - */ - public Builder clearPartitionExpirationDays() { - bitField0_ = (bitField0_ & ~0x00000800); - partitionExpirationDays_ = 0; - onChanged(); - return this; - } - - private boolean requirePartitionFilter_; - /** - * - * - *
-       * Specifies whether queries on this table must include a predicate filter
-       * that filters on the partitioning column.
-       * 
- * - * bool require_partition_filter = 13; - * - * @return The requirePartitionFilter. - */ - @java.lang.Override - public boolean getRequirePartitionFilter() { - return requirePartitionFilter_; - } - /** - * - * - *
-       * Specifies whether queries on this table must include a predicate filter
-       * that filters on the partitioning column.
-       * 
- * - * bool require_partition_filter = 13; - * - * @param value The requirePartitionFilter to set. - * @return This builder for chaining. - */ - public Builder setRequirePartitionFilter(boolean value) { - - requirePartitionFilter_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies whether queries on this table must include a predicate filter
-       * that filters on the partitioning column.
-       * 
- * - * bool require_partition_filter = 13; - * - * @return This builder for chaining. - */ - public Builder clearRequirePartitionFilter() { - bitField0_ = (bitField0_ & ~0x00001000); - requirePartitionFilter_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField additionalOptions_; - - private com.google.protobuf.MapField - internalGetAdditionalOptions() { - if (additionalOptions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AdditionalOptionsDefaultEntryHolder.defaultEntry); - } - return additionalOptions_; - } - - private com.google.protobuf.MapField - internalGetMutableAdditionalOptions() { - if (additionalOptions_ == null) { - additionalOptions_ = - com.google.protobuf.MapField.newMapField( - AdditionalOptionsDefaultEntryHolder.defaultEntry); - } - if (!additionalOptions_.isMutable()) { - additionalOptions_ = additionalOptions_.copy(); - } - bitField0_ |= 0x00002000; - onChanged(); - return additionalOptions_; - } - - public int getAdditionalOptionsCount() { - return internalGetAdditionalOptions().getMap().size(); - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public boolean containsAdditionalOptions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetAdditionalOptions().getMap().containsKey(key); - } - /** Use {@link #getAdditionalOptionsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAdditionalOptions() { - return getAdditionalOptionsMap(); - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public java.util.Map getAdditionalOptionsMap() { - return internalGetAdditionalOptions().getMap(); - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public /* nullable */ java.lang.String getAdditionalOptionsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetAdditionalOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - @java.lang.Override - public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetAdditionalOptions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAdditionalOptions() { - bitField0_ = (bitField0_ & ~0x00002000); - internalGetMutableAdditionalOptions().getMutableMap().clear(); - return this; - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - public Builder removeAdditionalOptions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAdditionalOptions().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableAdditionalOptions() { - bitField0_ |= 0x00002000; - return internalGetMutableAdditionalOptions().getMutableMap(); - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - public Builder putAdditionalOptions(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAdditionalOptions().getMutableMap().put(key, value); - bitField0_ |= 0x00002000; - return this; - } - /** - * - * - *
-       * Additional options that will be provided as key/value pairs into the
-       * options clause of a create table/view statement. See
-       * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
-       * for more information on which options are supported.
-       * 
- * - * map<string, string> additional_options = 14; - */ - public Builder putAllAdditionalOptions( - java.util.Map values) { - internalGetMutableAdditionalOptions().getMutableMap().putAll(values); - bitField0_ |= 0x00002000; - 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.v1alpha2.CompilationResultAction.Relation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - private static final com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Relation 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.v1alpha2.CompilationResultAction.Relation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface OperationsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - java.util.List getDependencyTargetsList(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - int getDependencyTargetsCount(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - java.util.List - getDependencyTargetsOrBuilderList(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder(int index); - - /** - * - * - *
-     * Whether this action is disabled (i.e. should not be run).
-     * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - boolean getDisabled(); - - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - - /** - * - * - *
-     * Descriptor for any output relation and its columns. Only set if
-     * `has_output` is true.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return Whether the relationDescriptor field is set. - */ - boolean hasRelationDescriptor(); - /** - * - * - *
-     * Descriptor for any output relation and its columns. Only set if
-     * `has_output` is true.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return The relationDescriptor. - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor(); - /** - * - * - *
-     * Descriptor for any output relation and its columns. Only set if
-     * `has_output` is true.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder(); - - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @return A list containing the queries. - */ - java.util.List getQueriesList(); - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @return The count of queries. - */ - int getQueriesCount(); - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - java.lang.String getQueries(int index); - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - com.google.protobuf.ByteString getQueriesBytes(int index); - - /** - * - * - *
-     * Whether these operations produce an output relation.
-     * 
- * - * bool has_output = 5; - * - * @return The hasOutput. - */ - boolean getHasOutput(); - } - /** - * - * - *
-   * Represents a list of arbitrary database operations.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Operations} - */ - public static final class Operations extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - OperationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Operations.newBuilder() to construct. - private Operations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Operations() { - dependencyTargets_ = java.util.Collections.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - queries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Operations(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder.class); - } - - private int bitField0_; - public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List dependencyTargets_; - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public java.util.List getDependencyTargetsList() { - return dependencyTargets_; - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public java.util.List - getDependencyTargetsOrBuilderList() { - return dependencyTargets_; - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public int getDependencyTargetsCount() { - return dependencyTargets_.size(); - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index) { - return dependencyTargets_.get(index); - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder( - int index) { - return dependencyTargets_.get(index); - } - - public static final int DISABLED_FIELD_NUMBER = 2; - private boolean disabled_ = false; - /** - * - * - *
-     * Whether this action is disabled (i.e. should not be run).
-     * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 6; - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - /** - * - * - *
-     * Descriptor for any output relation and its columns. Only set if
-     * `has_output` is true.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return Whether the relationDescriptor field is set. - */ - @java.lang.Override - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Descriptor for any output relation and its columns. Only set if
-     * `has_output` is true.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return The relationDescriptor. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - /** - * - * - *
-     * Descriptor for any output relation and its columns. Only set if
-     * `has_output` is true.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - - public static final int QUERIES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList queries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @return A list containing the queries. - */ - public com.google.protobuf.ProtocolStringList getQueriesList() { - return queries_; - } - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @return The count of queries. - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - public java.lang.String getQueries(int index) { - return queries_.get(index); - } - /** - * - * - *
-     * A list of arbitrary SQL statements that will be executed without
-     * alteration.
-     * 
- * - * repeated string queries = 4; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { - return queries_.getByteString(index); - } - - public static final int HAS_OUTPUT_FIELD_NUMBER = 5; - private boolean hasOutput_ = false; - /** - * - * - *
-     * Whether these operations produce an output relation.
-     * 
- * - * bool has_output = 5; - * - * @return The hasOutput. - */ - @java.lang.Override - public boolean getHasOutput() { - return hasOutput_; - } - - 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 < dependencyTargets_.size(); i++) { - output.writeMessage(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - output.writeBool(2, disabled_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - for (int i = 0; i < queries_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queries_.getRaw(i)); - } - if (hasOutput_ != false) { - output.writeBool(5, hasOutput_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getRelationDescriptor()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dependencyTargets_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < queries_.size(); i++) { - dataSize += computeStringSizeNoTag(queries_.getRaw(i)); - } - size += dataSize; - size += 1 * getQueriesList().size(); - } - if (hasOutput_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, hasOutput_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRelationDescriptor()); - } - 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.v1alpha2.CompilationResultAction.Operations)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations other = - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) obj; - - if (!getDependencyTargetsList().equals(other.getDependencyTargetsList())) return false; - if (getDisabled() != other.getDisabled()) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false; - if (hasRelationDescriptor()) { - if (!getRelationDescriptor().equals(other.getRelationDescriptor())) return false; - } - if (!getQueriesList().equals(other.getQueriesList())) return false; - if (getHasOutput() != other.getHasOutput()) 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 (getDependencyTargetsCount() > 0) { - hash = (37 * hash) + DEPENDENCY_TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getDependencyTargetsList().hashCode(); - } - hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasRelationDescriptor()) { - hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER; - hash = (53 * hash) + getRelationDescriptor().hashCode(); - } - if (getQueriesCount() > 0) { - hash = (37 * hash) + QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getQueriesList().hashCode(); - } - hash = (37 * hash) + HAS_OUTPUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasOutput()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations 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.v1alpha2.CompilationResultAction.Operations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations 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.v1alpha2.CompilationResultAction.Operations parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations 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.v1alpha2.CompilationResultAction.Operations - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - 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.v1alpha2.CompilationResultAction.Operations parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations 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.v1alpha2.CompilationResultAction.Operations 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 list of arbitrary database operations.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Operations} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDependencyTargetsFieldBuilder(); - getRelationDescriptorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dependencyTargetsBuilder_ == null) { - dependencyTargets_ = java.util.Collections.emptyList(); - } else { - dependencyTargets_ = null; - dependencyTargetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - queries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - hasOutput_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations build() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations result = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations result) { - if (dependencyTargetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dependencyTargets_ = dependencyTargets_; - } else { - result.dependencyTargets_ = dependencyTargetsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.disabled_ = disabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.relationDescriptor_ = - relationDescriptorBuilder_ == null - ? relationDescriptor_ - : relationDescriptorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - queries_.makeImmutable(); - result.queries_ = queries_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.hasOutput_ = hasOutput_; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CompilationResultAction.Operations) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations other) { - if (other - == com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance()) return this; - if (dependencyTargetsBuilder_ == null) { - if (!other.dependencyTargets_.isEmpty()) { - if (dependencyTargets_.isEmpty()) { - dependencyTargets_ = other.dependencyTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.addAll(other.dependencyTargets_); - } - onChanged(); - } - } else { - if (!other.dependencyTargets_.isEmpty()) { - if (dependencyTargetsBuilder_.isEmpty()) { - dependencyTargetsBuilder_.dispose(); - dependencyTargetsBuilder_ = null; - dependencyTargets_ = other.dependencyTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - dependencyTargetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDependencyTargetsFieldBuilder() - : null; - } else { - dependencyTargetsBuilder_.addAllMessages(other.dependencyTargets_); - } - } - } - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000004; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasRelationDescriptor()) { - mergeRelationDescriptor(other.getRelationDescriptor()); - } - if (!other.queries_.isEmpty()) { - if (queries_.isEmpty()) { - queries_ = other.queries_; - bitField0_ |= 0x00000010; - } else { - ensureQueriesIsMutable(); - queries_.addAll(other.queries_); - } - onChanged(); - } - if (other.getHasOutput() != false) { - setHasOutput(other.getHasOutput()); - } - 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.v1alpha2.Target m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.Target.parser(), extensionRegistry); - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(m); - } else { - dependencyTargetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueriesIsMutable(); - queries_.add(s); - break; - } // case 34 - case 40: - { - hasOutput_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - input.readMessage( - getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - 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 dependencyTargets_ = - java.util.Collections.emptyList(); - - private void ensureDependencyTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dependencyTargets_ = - new java.util.ArrayList( - dependencyTargets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - dependencyTargetsBuilder_; - - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List getDependencyTargetsList() { - if (dependencyTargetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dependencyTargets_); - } else { - return dependencyTargetsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public int getDependencyTargetsCount() { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.size(); - } else { - return dependencyTargetsBuilder_.getCount(); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index) { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.get(index); - } else { - return dependencyTargetsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder setDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.set(index, value); - onChanged(); - } else { - dependencyTargetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder setDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.set(index, builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets(com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(value); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(index, value); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(index, builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addAllDependencyTargets( - java.lang.Iterable values) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencyTargets_); - onChanged(); - } else { - dependencyTargetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder clearDependencyTargets() { - if (dependencyTargetsBuilder_ == null) { - dependencyTargets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dependencyTargetsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder removeDependencyTargets(int index) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.remove(index); - onChanged(); - } else { - dependencyTargetsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getDependencyTargetsBuilder( - int index) { - return getDependencyTargetsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder( - int index) { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.get(index); - } else { - return dependencyTargetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List - getDependencyTargetsOrBuilderList() { - if (dependencyTargetsBuilder_ != null) { - return dependencyTargetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dependencyTargets_); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addDependencyTargetsBuilder() { - return getDependencyTargetsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addDependencyTargetsBuilder( - int index) { - return getDependencyTargetsFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List - getDependencyTargetsBuilderList() { - return getDependencyTargetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getDependencyTargetsFieldBuilder() { - if (dependencyTargetsBuilder_ == null) { - dependencyTargetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - dependencyTargets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dependencyTargets_ = null; - } - return dependencyTargetsBuilder_; - } - - private boolean disabled_; - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000002); - disabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - return tags_; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - relationDescriptorBuilder_; - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return Whether the relationDescriptor field is set. - */ - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return The relationDescriptor. - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - if (relationDescriptorBuilder_ == null) { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } else { - return relationDescriptorBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relationDescriptor_ = value; - } else { - relationDescriptorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder builderForValue) { - if (relationDescriptorBuilder_ == null) { - relationDescriptor_ = builderForValue.build(); - } else { - relationDescriptorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder mergeRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && relationDescriptor_ != null - && relationDescriptor_ - != com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance()) { - getRelationDescriptorBuilder().mergeFrom(value); - } else { - relationDescriptor_ = value; - } - } else { - relationDescriptorBuilder_.mergeFrom(value); - } - if (relationDescriptor_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder clearRelationDescriptor() { - bitField0_ = (bitField0_ & ~0x00000008); - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder - getRelationDescriptorBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getRelationDescriptorFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - if (relationDescriptorBuilder_ != null) { - return relationDescriptorBuilder_.getMessageOrBuilder(); - } else { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - } - /** - * - * - *
-       * Descriptor for any output relation and its columns. Only set if
-       * `has_output` is true.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - getRelationDescriptorFieldBuilder() { - if (relationDescriptorBuilder_ == null) { - relationDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder>( - getRelationDescriptor(), getParentForChildren(), isClean()); - relationDescriptor_ = null; - } - return relationDescriptorBuilder_; - } - - private com.google.protobuf.LazyStringArrayList queries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureQueriesIsMutable() { - if (!queries_.isModifiable()) { - queries_ = new com.google.protobuf.LazyStringArrayList(queries_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @return A list containing the queries. - */ - public com.google.protobuf.ProtocolStringList getQueriesList() { - queries_.makeImmutable(); - return queries_; - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @return The count of queries. - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - public java.lang.String getQueries(int index) { - return queries_.get(index); - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { - return queries_.getByteString(index); - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @param index The index to set the value at. - * @param value The queries to set. - * @return This builder for chaining. - */ - public Builder setQueries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @param value The queries to add. - * @return This builder for chaining. - */ - public Builder addQueries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @param values The queries to add. - * @return This builder for chaining. - */ - public Builder addAllQueries(java.lang.Iterable values) { - ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @return This builder for chaining. - */ - public Builder clearQueries() { - queries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of arbitrary SQL statements that will be executed without
-       * alteration.
-       * 
- * - * repeated string queries = 4; - * - * @param value The bytes of the queries to add. - * @return This builder for chaining. - */ - public Builder addQueriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureQueriesIsMutable(); - queries_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean hasOutput_; - /** - * - * - *
-       * Whether these operations produce an output relation.
-       * 
- * - * bool has_output = 5; - * - * @return The hasOutput. - */ - @java.lang.Override - public boolean getHasOutput() { - return hasOutput_; - } - /** - * - * - *
-       * Whether these operations produce an output relation.
-       * 
- * - * bool has_output = 5; - * - * @param value The hasOutput to set. - * @return This builder for chaining. - */ - public Builder setHasOutput(boolean value) { - - hasOutput_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-       * Whether these operations produce an output relation.
-       * 
- * - * bool has_output = 5; - * - * @return This builder for chaining. - */ - public Builder clearHasOutput() { - bitField0_ = (bitField0_ & ~0x00000020); - hasOutput_ = 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.v1alpha2.CompilationResultAction.Operations) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - private static final com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Operations 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.v1alpha2.CompilationResultAction.Operations - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface AssertionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - java.util.List getDependencyTargetsList(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - int getDependencyTargetsCount(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - java.util.List - getDependencyTargetsOrBuilderList(); - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder(int index); - - /** - * - * - *
-     * The parent action of this assertion. Only set if this assertion was
-     * automatically generated.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - * - * @return Whether the parentAction field is set. - */ - boolean hasParentAction(); - /** - * - * - *
-     * The parent action of this assertion. Only set if this assertion was
-     * automatically generated.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - * - * @return The parentAction. - */ - com.google.cloud.dataform.v1alpha2.Target getParentAction(); - /** - * - * - *
-     * The parent action of this assertion. Only set if this assertion was
-     * automatically generated.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getParentActionOrBuilder(); - - /** - * - * - *
-     * Whether this action is disabled (i.e. should not be run).
-     * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - boolean getDisabled(); - - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - - /** - * - * - *
-     * The SELECT query which must return zero rows in order for this assertion
-     * to succeed.
-     * 
- * - * string select_query = 4; - * - * @return The selectQuery. - */ - java.lang.String getSelectQuery(); - /** - * - * - *
-     * The SELECT query which must return zero rows in order for this assertion
-     * to succeed.
-     * 
- * - * string select_query = 4; - * - * @return The bytes for selectQuery. - */ - com.google.protobuf.ByteString getSelectQueryBytes(); - - /** - * - * - *
-     * Descriptor for the assertion's automatically-generated view and its
-     * columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return Whether the relationDescriptor field is set. - */ - boolean hasRelationDescriptor(); - /** - * - * - *
-     * Descriptor for the assertion's automatically-generated view and its
-     * columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return The relationDescriptor. - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor(); - /** - * - * - *
-     * Descriptor for the assertion's automatically-generated view and its
-     * columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder(); - } - /** - * - * - *
-   * Represents an assertion upon a SQL query which is required return zero
-   * rows.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion} - */ - public static final class Assertion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - AssertionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Assertion.newBuilder() to construct. - private Assertion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Assertion() { - dependencyTargets_ = java.util.Collections.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - selectQuery_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Assertion(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder.class); - } - - private int bitField0_; - public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List dependencyTargets_; - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public java.util.List getDependencyTargetsList() { - return dependencyTargets_; - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public java.util.List - getDependencyTargetsOrBuilderList() { - return dependencyTargets_; - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public int getDependencyTargetsCount() { - return dependencyTargets_.size(); - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index) { - return dependencyTargets_.get(index); - } - /** - * - * - *
-     * A list of actions that this action depends on.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder( - int index) { - return dependencyTargets_.get(index); - } - - public static final int PARENT_ACTION_FIELD_NUMBER = 5; - private com.google.cloud.dataform.v1alpha2.Target parentAction_; - /** - * - * - *
-     * The parent action of this assertion. Only set if this assertion was
-     * automatically generated.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - * - * @return Whether the parentAction field is set. - */ - @java.lang.Override - public boolean hasParentAction() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The parent action of this assertion. Only set if this assertion was
-     * automatically generated.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - * - * @return The parentAction. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getParentAction() { - return parentAction_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : parentAction_; - } - /** - * - * - *
-     * The parent action of this assertion. Only set if this assertion was
-     * automatically generated.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getParentActionOrBuilder() { - return parentAction_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : parentAction_; - } - - public static final int DISABLED_FIELD_NUMBER = 2; - private boolean disabled_ = false; - /** - * - * - *
-     * Whether this action is disabled (i.e. should not be run).
-     * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * Arbitrary, user-defined tags on this action.
-     * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int SELECT_QUERY_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object selectQuery_ = ""; - /** - * - * - *
-     * The SELECT query which must return zero rows in order for this assertion
-     * to succeed.
-     * 
- * - * string select_query = 4; - * - * @return The selectQuery. - */ - @java.lang.Override - public java.lang.String getSelectQuery() { - java.lang.Object ref = selectQuery_; - 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(); - selectQuery_ = s; - return s; - } - } - /** - * - * - *
-     * The SELECT query which must return zero rows in order for this assertion
-     * to succeed.
-     * 
- * - * string select_query = 4; - * - * @return The bytes for selectQuery. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelectQueryBytes() { - java.lang.Object ref = selectQuery_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selectQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 6; - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - /** - * - * - *
-     * Descriptor for the assertion's automatically-generated view and its
-     * columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return Whether the relationDescriptor field is set. - */ - @java.lang.Override - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Descriptor for the assertion's automatically-generated view and its
-     * columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return The relationDescriptor. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - /** - * - * - *
-     * Descriptor for the assertion's automatically-generated view and its
-     * columns.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - - 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 < dependencyTargets_.size(); i++) { - output.writeMessage(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - output.writeBool(2, disabled_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, selectQuery_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getParentAction()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getRelationDescriptor()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dependencyTargets_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, selectQuery_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParentAction()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRelationDescriptor()); - } - 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.v1alpha2.CompilationResultAction.Assertion)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion other = - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) obj; - - if (!getDependencyTargetsList().equals(other.getDependencyTargetsList())) return false; - if (hasParentAction() != other.hasParentAction()) return false; - if (hasParentAction()) { - if (!getParentAction().equals(other.getParentAction())) return false; - } - if (getDisabled() != other.getDisabled()) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getSelectQuery().equals(other.getSelectQuery())) return false; - if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false; - if (hasRelationDescriptor()) { - if (!getRelationDescriptor().equals(other.getRelationDescriptor())) 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 (getDependencyTargetsCount() > 0) { - hash = (37 * hash) + DEPENDENCY_TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getDependencyTargetsList().hashCode(); - } - if (hasParentAction()) { - hash = (37 * hash) + PARENT_ACTION_FIELD_NUMBER; - hash = (53 * hash) + getParentAction().hashCode(); - } - hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (37 * hash) + SELECT_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getSelectQuery().hashCode(); - if (hasRelationDescriptor()) { - hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER; - hash = (53 * hash) + getRelationDescriptor().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion 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.v1alpha2.CompilationResultAction.Assertion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion 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.v1alpha2.CompilationResultAction.Assertion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion 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.v1alpha2.CompilationResultAction.Assertion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - 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.v1alpha2.CompilationResultAction.Assertion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion 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.v1alpha2.CompilationResultAction.Assertion 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 an assertion upon a SQL query which is required return zero
-     * rows.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDependencyTargetsFieldBuilder(); - getParentActionFieldBuilder(); - getRelationDescriptorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dependencyTargetsBuilder_ == null) { - dependencyTargets_ = java.util.Collections.emptyList(); - } else { - dependencyTargets_ = null; - dependencyTargetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - parentAction_ = null; - if (parentActionBuilder_ != null) { - parentActionBuilder_.dispose(); - parentActionBuilder_ = null; - } - disabled_ = false; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - selectQuery_ = ""; - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion build() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion result = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion result) { - if (dependencyTargetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dependencyTargets_ = dependencyTargets_; - } else { - result.dependencyTargets_ = dependencyTargetsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parentAction_ = - parentActionBuilder_ == null ? parentAction_ : parentActionBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.disabled_ = disabled_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.selectQuery_ = selectQuery_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.relationDescriptor_ = - relationDescriptorBuilder_ == null - ? relationDescriptor_ - : relationDescriptorBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CompilationResultAction.Assertion) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion other) { - if (other - == com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance()) return this; - if (dependencyTargetsBuilder_ == null) { - if (!other.dependencyTargets_.isEmpty()) { - if (dependencyTargets_.isEmpty()) { - dependencyTargets_ = other.dependencyTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.addAll(other.dependencyTargets_); - } - onChanged(); - } - } else { - if (!other.dependencyTargets_.isEmpty()) { - if (dependencyTargetsBuilder_.isEmpty()) { - dependencyTargetsBuilder_.dispose(); - dependencyTargetsBuilder_ = null; - dependencyTargets_ = other.dependencyTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - dependencyTargetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDependencyTargetsFieldBuilder() - : null; - } else { - dependencyTargetsBuilder_.addAllMessages(other.dependencyTargets_); - } - } - } - if (other.hasParentAction()) { - mergeParentAction(other.getParentAction()); - } - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000008; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (!other.getSelectQuery().isEmpty()) { - selectQuery_ = other.selectQuery_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasRelationDescriptor()) { - mergeRelationDescriptor(other.getRelationDescriptor()); - } - 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.v1alpha2.Target m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.Target.parser(), extensionRegistry); - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(m); - } else { - dependencyTargetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 26 - case 34: - { - selectQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - input.readMessage(getParentActionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - input.readMessage( - getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry); - 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 dependencyTargets_ = - java.util.Collections.emptyList(); - - private void ensureDependencyTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dependencyTargets_ = - new java.util.ArrayList( - dependencyTargets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - dependencyTargetsBuilder_; - - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List getDependencyTargetsList() { - if (dependencyTargetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dependencyTargets_); - } else { - return dependencyTargetsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public int getDependencyTargetsCount() { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.size(); - } else { - return dependencyTargetsBuilder_.getCount(); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target getDependencyTargets(int index) { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.get(index); - } else { - return dependencyTargetsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder setDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.set(index, value); - onChanged(); - } else { - dependencyTargetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder setDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.set(index, builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets(com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(value); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target value) { - if (dependencyTargetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(index, value); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addDependencyTargets( - int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.add(index, builderForValue.build()); - onChanged(); - } else { - dependencyTargetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder addAllDependencyTargets( - java.lang.Iterable values) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencyTargets_); - onChanged(); - } else { - dependencyTargetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder clearDependencyTargets() { - if (dependencyTargetsBuilder_ == null) { - dependencyTargets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dependencyTargetsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public Builder removeDependencyTargets(int index) { - if (dependencyTargetsBuilder_ == null) { - ensureDependencyTargetsIsMutable(); - dependencyTargets_.remove(index); - onChanged(); - } else { - dependencyTargetsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getDependencyTargetsBuilder( - int index) { - return getDependencyTargetsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getDependencyTargetsOrBuilder( - int index) { - if (dependencyTargetsBuilder_ == null) { - return dependencyTargets_.get(index); - } else { - return dependencyTargetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List - getDependencyTargetsOrBuilderList() { - if (dependencyTargetsBuilder_ != null) { - return dependencyTargetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dependencyTargets_); - } - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addDependencyTargetsBuilder() { - return getDependencyTargetsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addDependencyTargetsBuilder( - int index) { - return getDependencyTargetsFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * A list of actions that this action depends on.
-       * 
- * - * repeated .google.cloud.dataform.v1alpha2.Target dependency_targets = 1; - */ - public java.util.List - getDependencyTargetsBuilderList() { - return getDependencyTargetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getDependencyTargetsFieldBuilder() { - if (dependencyTargetsBuilder_ == null) { - dependencyTargetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - dependencyTargets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dependencyTargets_ = null; - } - return dependencyTargetsBuilder_; - } - - private com.google.cloud.dataform.v1alpha2.Target parentAction_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - parentActionBuilder_; - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - * - * @return Whether the parentAction field is set. - */ - public boolean hasParentAction() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - * - * @return The parentAction. - */ - public com.google.cloud.dataform.v1alpha2.Target getParentAction() { - if (parentActionBuilder_ == null) { - return parentAction_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : parentAction_; - } else { - return parentActionBuilder_.getMessage(); - } - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - public Builder setParentAction(com.google.cloud.dataform.v1alpha2.Target value) { - if (parentActionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentAction_ = value; - } else { - parentActionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - public Builder setParentAction( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (parentActionBuilder_ == null) { - parentAction_ = builderForValue.build(); - } else { - parentActionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - public Builder mergeParentAction(com.google.cloud.dataform.v1alpha2.Target value) { - if (parentActionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && parentAction_ != null - && parentAction_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) { - getParentActionBuilder().mergeFrom(value); - } else { - parentAction_ = value; - } - } else { - parentActionBuilder_.mergeFrom(value); - } - if (parentAction_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - public Builder clearParentAction() { - bitField0_ = (bitField0_ & ~0x00000002); - parentAction_ = null; - if (parentActionBuilder_ != null) { - parentActionBuilder_.dispose(); - parentActionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getParentActionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getParentActionFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getParentActionOrBuilder() { - if (parentActionBuilder_ != null) { - return parentActionBuilder_.getMessageOrBuilder(); - } else { - return parentAction_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : parentAction_; - } - } - /** - * - * - *
-       * The parent action of this assertion. Only set if this assertion was
-       * automatically generated.
-       * 
- * - * .google.cloud.dataform.v1alpha2.Target parent_action = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getParentActionFieldBuilder() { - if (parentActionBuilder_ == null) { - parentActionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - getParentAction(), getParentForChildren(), isClean()); - parentAction_ = null; - } - return parentActionBuilder_; - } - - private boolean disabled_; - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Whether this action is disabled (i.e. should not be run).
-       * 
- * - * bool disabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000004); - disabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - return tags_; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * Arbitrary, user-defined tags on this action.
-       * 
- * - * repeated string tags = 3; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object selectQuery_ = ""; - /** - * - * - *
-       * The SELECT query which must return zero rows in order for this assertion
-       * to succeed.
-       * 
- * - * string select_query = 4; - * - * @return The selectQuery. - */ - public java.lang.String getSelectQuery() { - java.lang.Object ref = selectQuery_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selectQuery_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The SELECT query which must return zero rows in order for this assertion
-       * to succeed.
-       * 
- * - * string select_query = 4; - * - * @return The bytes for selectQuery. - */ - public com.google.protobuf.ByteString getSelectQueryBytes() { - java.lang.Object ref = selectQuery_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selectQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The SELECT query which must return zero rows in order for this assertion
-       * to succeed.
-       * 
- * - * string select_query = 4; - * - * @param value The selectQuery to set. - * @return This builder for chaining. - */ - public Builder setSelectQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - selectQuery_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-       * The SELECT query which must return zero rows in order for this assertion
-       * to succeed.
-       * 
- * - * string select_query = 4; - * - * @return This builder for chaining. - */ - public Builder clearSelectQuery() { - selectQuery_ = getDefaultInstance().getSelectQuery(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-       * The SELECT query which must return zero rows in order for this assertion
-       * to succeed.
-       * 
- * - * string select_query = 4; - * - * @param value The bytes for selectQuery to set. - * @return This builder for chaining. - */ - public Builder setSelectQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - selectQuery_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - relationDescriptorBuilder_; - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return Whether the relationDescriptor field is set. - */ - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - * - * @return The relationDescriptor. - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - if (relationDescriptorBuilder_ == null) { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } else { - return relationDescriptorBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relationDescriptor_ = value; - } else { - relationDescriptorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder builderForValue) { - if (relationDescriptorBuilder_ == null) { - relationDescriptor_ = builderForValue.build(); - } else { - relationDescriptorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder mergeRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && relationDescriptor_ != null - && relationDescriptor_ - != com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance()) { - getRelationDescriptorBuilder().mergeFrom(value); - } else { - relationDescriptor_ = value; - } - } else { - relationDescriptorBuilder_.mergeFrom(value); - } - if (relationDescriptor_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public Builder clearRelationDescriptor() { - bitField0_ = (bitField0_ & ~0x00000020); - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder - getRelationDescriptorBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getRelationDescriptorFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - if (relationDescriptorBuilder_ != null) { - return relationDescriptorBuilder_.getMessageOrBuilder(); - } else { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - } - /** - * - * - *
-       * Descriptor for the assertion's automatically-generated view and its
-       * columns.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - getRelationDescriptorFieldBuilder() { - if (relationDescriptorBuilder_ == null) { - relationDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder>( - getRelationDescriptor(), getParentForChildren(), isClean()); - relationDescriptor_ = null; - } - return relationDescriptorBuilder_; - } - - @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.v1alpha2.CompilationResultAction.Assertion) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - private static final com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Assertion 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.v1alpha2.CompilationResultAction.Assertion - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DeclarationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Descriptor for the relation and its columns. Used as documentation only,
-     * i.e. values here will result in no changes to the relation's metadata.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - * - * @return Whether the relationDescriptor field is set. - */ - boolean hasRelationDescriptor(); - /** - * - * - *
-     * Descriptor for the relation and its columns. Used as documentation only,
-     * i.e. values here will result in no changes to the relation's metadata.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - * - * @return The relationDescriptor. - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor(); - /** - * - * - *
-     * Descriptor for the relation and its columns. Used as documentation only,
-     * i.e. values here will result in no changes to the relation's metadata.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder(); - } - /** - * - * - *
-   * Represents a relation which is not managed by Dataform but which may be
-   * referenced by Dataform actions.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration} - */ - public static final class Declaration extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - DeclarationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Declaration.newBuilder() to construct. - private Declaration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Declaration() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Declaration(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder.class); - } - - private int bitField0_; - public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 1; - private com.google.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - /** - * - * - *
-     * Descriptor for the relation and its columns. Used as documentation only,
-     * i.e. values here will result in no changes to the relation's metadata.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - * - * @return Whether the relationDescriptor field is set. - */ - @java.lang.Override - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Descriptor for the relation and its columns. Used as documentation only,
-     * i.e. values here will result in no changes to the relation's metadata.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - * - * @return The relationDescriptor. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - /** - * - * - *
-     * Descriptor for the relation and its columns. Used as documentation only,
-     * i.e. values here will result in no changes to the relation's metadata.
-     * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getRelationDescriptor()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationDescriptor()); - } - 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.v1alpha2.CompilationResultAction.Declaration)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration other = - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) obj; - - if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false; - if (hasRelationDescriptor()) { - if (!getRelationDescriptor().equals(other.getRelationDescriptor())) 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 (hasRelationDescriptor()) { - hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER; - hash = (53 * hash) + getRelationDescriptor().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration 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.v1alpha2.CompilationResultAction.Declaration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration 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.v1alpha2.CompilationResultAction.Declaration parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration 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.v1alpha2.CompilationResultAction.Declaration - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - 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.v1alpha2.CompilationResultAction.Declaration parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration 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.v1alpha2.CompilationResultAction.Declaration 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 relation which is not managed by Dataform but which may be
-     * referenced by Dataform actions.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRelationDescriptorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration build() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration result = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.relationDescriptor_ = - relationDescriptorBuilder_ == null - ? relationDescriptor_ - : relationDescriptorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CompilationResultAction.Declaration) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration other) { - if (other - == com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance()) return this; - if (other.hasRelationDescriptor()) { - mergeRelationDescriptor(other.getRelationDescriptor()); - } - 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( - getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry); - 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.cloud.dataform.v1alpha2.RelationDescriptor relationDescriptor_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - relationDescriptorBuilder_; - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - * - * @return Whether the relationDescriptor field is set. - */ - public boolean hasRelationDescriptor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - * - * @return The relationDescriptor. - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getRelationDescriptor() { - if (relationDescriptorBuilder_ == null) { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } else { - return relationDescriptorBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relationDescriptor_ = value; - } else { - relationDescriptorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - public Builder setRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder builderForValue) { - if (relationDescriptorBuilder_ == null) { - relationDescriptor_ = builderForValue.build(); - } else { - relationDescriptorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - public Builder mergeRelationDescriptor( - com.google.cloud.dataform.v1alpha2.RelationDescriptor value) { - if (relationDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && relationDescriptor_ != null - && relationDescriptor_ - != com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance()) { - getRelationDescriptorBuilder().mergeFrom(value); - } else { - relationDescriptor_ = value; - } - } else { - relationDescriptorBuilder_.mergeFrom(value); - } - if (relationDescriptor_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - public Builder clearRelationDescriptor() { - bitField0_ = (bitField0_ & ~0x00000001); - relationDescriptor_ = null; - if (relationDescriptorBuilder_ != null) { - relationDescriptorBuilder_.dispose(); - relationDescriptorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder - getRelationDescriptorBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelationDescriptorFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder - getRelationDescriptorOrBuilder() { - if (relationDescriptorBuilder_ != null) { - return relationDescriptorBuilder_.getMessageOrBuilder(); - } else { - return relationDescriptor_ == null - ? com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance() - : relationDescriptor_; - } - } - /** - * - * - *
-       * Descriptor for the relation and its columns. Used as documentation only,
-       * i.e. values here will result in no changes to the relation's metadata.
-       * 
- * - * .google.cloud.dataform.v1alpha2.RelationDescriptor relation_descriptor = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder> - getRelationDescriptorFieldBuilder() { - if (relationDescriptorBuilder_ == null) { - relationDescriptorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder>( - getRelationDescriptor(), getParentForChildren(), isClean()); - relationDescriptor_ = null; - } - return relationDescriptorBuilder_; - } - - @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.v1alpha2.CompilationResultAction.Declaration) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - private static final com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Declaration 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.v1alpha2.CompilationResultAction.Declaration - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int compiledObjectCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object compiledObject_; - - public enum CompiledObjectCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - RELATION(4), - OPERATIONS(5), - ASSERTION(6), - DECLARATION(7), - COMPILEDOBJECT_NOT_SET(0); - private final int value; - - private CompiledObjectCase(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 CompiledObjectCase valueOf(int value) { - return forNumber(value); - } - - public static CompiledObjectCase forNumber(int value) { - switch (value) { - case 4: - return RELATION; - case 5: - return OPERATIONS; - case 6: - return ASSERTION; - case 7: - return DECLARATION; - case 0: - return COMPILEDOBJECT_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public CompiledObjectCase getCompiledObjectCase() { - return CompiledObjectCase.forNumber(compiledObjectCase_); - } - - public static final int TARGET_FIELD_NUMBER = 1; - private com.google.cloud.dataform.v1alpha2.Target target_; - /** - * - * - *
-   * This action's identifier. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - * - * @return Whether the target field is set. - */ - @java.lang.Override - public boolean hasTarget() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * This action's identifier. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - * - * @return The target. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getTarget() { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } - /** - * - * - *
-   * This action's identifier. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getTargetOrBuilder() { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } - - public static final int CANONICAL_TARGET_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.Target canonicalTarget_; - /** - * - * - *
-   * The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - * - * @return Whether the canonicalTarget field is set. - */ - @java.lang.Override - public boolean hasCanonicalTarget() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - * - * @return The canonicalTarget. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getCanonicalTarget() { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } - /** - * - * - *
-   * The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getCanonicalTargetOrBuilder() { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } - - public static final int FILE_PATH_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object filePath_ = ""; - /** - * - * - *
-   * The full path including filename in which this action is located, relative
-   * to the workspace root.
-   * 
- * - * string file_path = 3; - * - * @return The filePath. - */ - @java.lang.Override - public java.lang.String getFilePath() { - java.lang.Object ref = filePath_; - 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(); - filePath_ = s; - return s; - } - } - /** - * - * - *
-   * The full path including filename in which this action is located, relative
-   * to the workspace root.
-   * 
- * - * string file_path = 3; - * - * @return The bytes for filePath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilePathBytes() { - java.lang.Object ref = filePath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELATION_FIELD_NUMBER = 4; - /** - * - * - *
-   * The database relation created/updated by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - * - * @return Whether the relation field is set. - */ - @java.lang.Override - public boolean hasRelation() { - return compiledObjectCase_ == 4; - } - /** - * - * - *
-   * The database relation created/updated by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - * - * @return The relation. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation getRelation() { - if (compiledObjectCase_ == 4) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.getDefaultInstance(); - } - /** - * - * - *
-   * The database relation created/updated by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder - getRelationOrBuilder() { - if (compiledObjectCase_ == 4) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.getDefaultInstance(); - } - - public static final int OPERATIONS_FIELD_NUMBER = 5; - /** - * - * - *
-   * The database operations executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - * @return Whether the operations field is set. - */ - @java.lang.Override - public boolean hasOperations() { - return compiledObjectCase_ == 5; - } - /** - * - * - *
-   * The database operations executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - * @return The operations. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations getOperations() { - if (compiledObjectCase_ == 5) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } - /** - * - * - *
-   * The database operations executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder - getOperationsOrBuilder() { - if (compiledObjectCase_ == 5) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } - - public static final int ASSERTION_FIELD_NUMBER = 6; - /** - * - * - *
-   * The assertion executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - * - * @return Whether the assertion field is set. - */ - @java.lang.Override - public boolean hasAssertion() { - return compiledObjectCase_ == 6; - } - /** - * - * - *
-   * The assertion executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - * - * @return The assertion. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion getAssertion() { - if (compiledObjectCase_ == 6) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } - /** - * - * - *
-   * The assertion executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder - getAssertionOrBuilder() { - if (compiledObjectCase_ == 6) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } - - public static final int DECLARATION_FIELD_NUMBER = 7; - /** - * - * - *
-   * The declaration declared by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - * - * @return Whether the declaration field is set. - */ - @java.lang.Override - public boolean hasDeclaration() { - return compiledObjectCase_ == 7; - } - /** - * - * - *
-   * The declaration declared by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - * - * @return The declaration. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration getDeclaration() { - if (compiledObjectCase_ == 7) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance(); - } - /** - * - * - *
-   * The declaration declared by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder - getDeclarationOrBuilder() { - if (compiledObjectCase_ == 7) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getTarget()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getCanonicalTarget()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filePath_); - } - if (compiledObjectCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) compiledObject_); - } - if (compiledObjectCase_ == 5) { - output.writeMessage( - 5, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) compiledObject_); - } - if (compiledObjectCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) compiledObject_); - } - if (compiledObjectCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) compiledObject_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTarget()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCanonicalTarget()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filePath_); - } - if (compiledObjectCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - compiledObject_); - } - if (compiledObjectCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_); - } - if (compiledObjectCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - compiledObject_); - } - if (compiledObjectCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_); - } - 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.v1alpha2.CompilationResultAction)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CompilationResultAction other = - (com.google.cloud.dataform.v1alpha2.CompilationResultAction) obj; - - if (hasTarget() != other.hasTarget()) return false; - if (hasTarget()) { - if (!getTarget().equals(other.getTarget())) return false; - } - if (hasCanonicalTarget() != other.hasCanonicalTarget()) return false; - if (hasCanonicalTarget()) { - if (!getCanonicalTarget().equals(other.getCanonicalTarget())) return false; - } - if (!getFilePath().equals(other.getFilePath())) return false; - if (!getCompiledObjectCase().equals(other.getCompiledObjectCase())) return false; - switch (compiledObjectCase_) { - case 4: - if (!getRelation().equals(other.getRelation())) return false; - break; - case 5: - if (!getOperations().equals(other.getOperations())) return false; - break; - case 6: - if (!getAssertion().equals(other.getAssertion())) return false; - break; - case 7: - if (!getDeclaration().equals(other.getDeclaration())) 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 (hasTarget()) { - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - } - if (hasCanonicalTarget()) { - hash = (37 * hash) + CANONICAL_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getCanonicalTarget().hashCode(); - } - hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFilePath().hashCode(); - switch (compiledObjectCase_) { - case 4: - hash = (37 * hash) + RELATION_FIELD_NUMBER; - hash = (53 * hash) + getRelation().hashCode(); - break; - case 5: - hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; - hash = (53 * hash) + getOperations().hashCode(); - break; - case 6: - hash = (37 * hash) + ASSERTION_FIELD_NUMBER; - hash = (53 * hash) + getAssertion().hashCode(); - break; - case 7: - hash = (37 * hash) + DECLARATION_FIELD_NUMBER; - hash = (53 * hash) + getDeclaration().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction 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.v1alpha2.CompilationResultAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction 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.v1alpha2.CompilationResultAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction 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.v1alpha2.CompilationResultAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction 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.v1alpha2.CompilationResultAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction 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.v1alpha2.CompilationResultAction 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 Dataform action in a compilation result.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CompilationResultAction} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CompilationResultAction) - com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.class, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.CompilationResultAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTargetFieldBuilder(); - getCanonicalTargetFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - target_ = null; - if (targetBuilder_ != null) { - targetBuilder_.dispose(); - targetBuilder_ = null; - } - canonicalTarget_ = null; - if (canonicalTargetBuilder_ != null) { - canonicalTargetBuilder_.dispose(); - canonicalTargetBuilder_ = null; - } - filePath_ = ""; - if (relationBuilder_ != null) { - relationBuilder_.clear(); - } - if (operationsBuilder_ != null) { - operationsBuilder_.clear(); - } - if (assertionBuilder_ != null) { - assertionBuilder_.clear(); - } - if (declarationBuilder_ != null) { - declarationBuilder_.clear(); - } - compiledObjectCase_ = 0; - compiledObject_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction build() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction buildPartial() { - com.google.cloud.dataform.v1alpha2.CompilationResultAction result = - new com.google.cloud.dataform.v1alpha2.CompilationResultAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.CompilationResultAction result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.canonicalTarget_ = - canonicalTargetBuilder_ == null ? canonicalTarget_ : canonicalTargetBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.filePath_ = filePath_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.dataform.v1alpha2.CompilationResultAction result) { - result.compiledObjectCase_ = compiledObjectCase_; - result.compiledObject_ = this.compiledObject_; - if (compiledObjectCase_ == 4 && relationBuilder_ != null) { - result.compiledObject_ = relationBuilder_.build(); - } - if (compiledObjectCase_ == 5 && operationsBuilder_ != null) { - result.compiledObject_ = operationsBuilder_.build(); - } - if (compiledObjectCase_ == 6 && assertionBuilder_ != null) { - result.compiledObject_ = assertionBuilder_.build(); - } - if (compiledObjectCase_ == 7 && declarationBuilder_ != null) { - result.compiledObject_ = declarationBuilder_.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.v1alpha2.CompilationResultAction) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CompilationResultAction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.CompilationResultAction other) { - if (other == com.google.cloud.dataform.v1alpha2.CompilationResultAction.getDefaultInstance()) - return this; - if (other.hasTarget()) { - mergeTarget(other.getTarget()); - } - if (other.hasCanonicalTarget()) { - mergeCanonicalTarget(other.getCanonicalTarget()); - } - if (!other.getFilePath().isEmpty()) { - filePath_ = other.filePath_; - bitField0_ |= 0x00000004; - onChanged(); - } - switch (other.getCompiledObjectCase()) { - case RELATION: - { - mergeRelation(other.getRelation()); - break; - } - case OPERATIONS: - { - mergeOperations(other.getOperations()); - break; - } - case ASSERTION: - { - mergeAssertion(other.getAssertion()); - break; - } - case DECLARATION: - { - mergeDeclaration(other.getDeclaration()); - break; - } - case COMPILEDOBJECT_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(getTargetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCanonicalTargetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - filePath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getRelationFieldBuilder().getBuilder(), extensionRegistry); - compiledObjectCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getOperationsFieldBuilder().getBuilder(), extensionRegistry); - compiledObjectCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getAssertionFieldBuilder().getBuilder(), extensionRegistry); - compiledObjectCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getDeclarationFieldBuilder().getBuilder(), extensionRegistry); - compiledObjectCase_ = 7; - 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 compiledObjectCase_ = 0; - private java.lang.Object compiledObject_; - - public CompiledObjectCase getCompiledObjectCase() { - return CompiledObjectCase.forNumber(compiledObjectCase_); - } - - public Builder clearCompiledObject() { - compiledObjectCase_ = 0; - compiledObject_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.cloud.dataform.v1alpha2.Target target_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - targetBuilder_; - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - * - * @return Whether the target field is set. - */ - public boolean hasTarget() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - * - * @return The target. - */ - public com.google.cloud.dataform.v1alpha2.Target getTarget() { - if (targetBuilder_ == null) { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } else { - return targetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - public Builder setTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (targetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - } else { - targetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - public Builder setTarget(com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (targetBuilder_ == null) { - target_ = builderForValue.build(); - } else { - targetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - public Builder mergeTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && target_ != null - && target_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) { - getTargetBuilder().mergeFrom(value); - } else { - target_ = value; - } - } else { - targetBuilder_.mergeFrom(value); - } - if (target_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - public Builder clearTarget() { - bitField0_ = (bitField0_ & ~0x00000001); - target_ = null; - if (targetBuilder_ != null) { - targetBuilder_.dispose(); - targetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getTargetBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getTargetOrBuilder() { - if (targetBuilder_ != null) { - return targetBuilder_.getMessageOrBuilder(); - } else { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } - } - /** - * - * - *
-     * This action's identifier. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getTargetFieldBuilder() { - if (targetBuilder_ == null) { - targetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - getTarget(), getParentForChildren(), isClean()); - target_ = null; - } - return targetBuilder_; - } - - private com.google.cloud.dataform.v1alpha2.Target canonicalTarget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - canonicalTargetBuilder_; - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - * - * @return Whether the canonicalTarget field is set. - */ - public boolean hasCanonicalTarget() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - * - * @return The canonicalTarget. - */ - public com.google.cloud.dataform.v1alpha2.Target getCanonicalTarget() { - if (canonicalTargetBuilder_ == null) { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } else { - return canonicalTargetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - public Builder setCanonicalTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (canonicalTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - canonicalTarget_ = value; - } else { - canonicalTargetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - public Builder setCanonicalTarget( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (canonicalTargetBuilder_ == null) { - canonicalTarget_ = builderForValue.build(); - } else { - canonicalTargetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (canonicalTargetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && canonicalTarget_ != null - && canonicalTarget_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) { - getCanonicalTargetBuilder().mergeFrom(value); - } else { - canonicalTarget_ = value; - } - } else { - canonicalTargetBuilder_.mergeFrom(value); - } - if (canonicalTarget_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - public Builder clearCanonicalTarget() { - bitField0_ = (bitField0_ & ~0x00000002); - canonicalTarget_ = null; - if (canonicalTargetBuilder_ != null) { - canonicalTargetBuilder_.dispose(); - canonicalTargetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getCanonicalTargetBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCanonicalTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getCanonicalTargetOrBuilder() { - if (canonicalTargetBuilder_ != null) { - return canonicalTargetBuilder_.getMessageOrBuilder(); - } else { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } - } - /** - * - * - *
-     * The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getCanonicalTargetFieldBuilder() { - if (canonicalTargetBuilder_ == null) { - canonicalTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - getCanonicalTarget(), getParentForChildren(), isClean()); - canonicalTarget_ = null; - } - return canonicalTargetBuilder_; - } - - private java.lang.Object filePath_ = ""; - /** - * - * - *
-     * The full path including filename in which this action is located, relative
-     * to the workspace root.
-     * 
- * - * string file_path = 3; - * - * @return The filePath. - */ - public java.lang.String getFilePath() { - java.lang.Object ref = filePath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filePath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The full path including filename in which this action is located, relative
-     * to the workspace root.
-     * 
- * - * string file_path = 3; - * - * @return The bytes for filePath. - */ - public com.google.protobuf.ByteString getFilePathBytes() { - java.lang.Object ref = filePath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The full path including filename in which this action is located, relative
-     * to the workspace root.
-     * 
- * - * string file_path = 3; - * - * @param value The filePath to set. - * @return This builder for chaining. - */ - public Builder setFilePath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - filePath_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The full path including filename in which this action is located, relative
-     * to the workspace root.
-     * 
- * - * string file_path = 3; - * - * @return This builder for chaining. - */ - public Builder clearFilePath() { - filePath_ = getDefaultInstance().getFilePath(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * The full path including filename in which this action is located, relative
-     * to the workspace root.
-     * 
- * - * string file_path = 3; - * - * @param value The bytes for filePath to set. - * @return This builder for chaining. - */ - public Builder setFilePathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filePath_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder> - relationBuilder_; - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - * - * @return Whether the relation field is set. - */ - @java.lang.Override - public boolean hasRelation() { - return compiledObjectCase_ == 4; - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - * - * @return The relation. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation getRelation() { - if (relationBuilder_ == null) { - if (compiledObjectCase_ == 4) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance(); - } else { - if (compiledObjectCase_ == 4) { - return relationBuilder_.getMessage(); - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - public Builder setRelation( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation value) { - if (relationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledObject_ = value; - onChanged(); - } else { - relationBuilder_.setMessage(value); - } - compiledObjectCase_ = 4; - return this; - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - public Builder setRelation( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder - builderForValue) { - if (relationBuilder_ == null) { - compiledObject_ = builderForValue.build(); - onChanged(); - } else { - relationBuilder_.setMessage(builderForValue.build()); - } - compiledObjectCase_ = 4; - return this; - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - public Builder mergeRelation( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation value) { - if (relationBuilder_ == null) { - if (compiledObjectCase_ == 4 - && compiledObject_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance()) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.newBuilder( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - compiledObject_) - .mergeFrom(value) - .buildPartial(); - } else { - compiledObject_ = value; - } - onChanged(); - } else { - if (compiledObjectCase_ == 4) { - relationBuilder_.mergeFrom(value); - } else { - relationBuilder_.setMessage(value); - } - } - compiledObjectCase_ = 4; - return this; - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - public Builder clearRelation() { - if (relationBuilder_ == null) { - if (compiledObjectCase_ == 4) { - compiledObjectCase_ = 0; - compiledObject_ = null; - onChanged(); - } - } else { - if (compiledObjectCase_ == 4) { - compiledObjectCase_ = 0; - compiledObject_ = null; - } - relationBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder - getRelationBuilder() { - return getRelationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder - getRelationOrBuilder() { - if ((compiledObjectCase_ == 4) && (relationBuilder_ != null)) { - return relationBuilder_.getMessageOrBuilder(); - } else { - if (compiledObjectCase_ == 4) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The database relation created/updated by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder> - getRelationFieldBuilder() { - if (relationBuilder_ == null) { - if (!(compiledObjectCase_ == 4)) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation - .getDefaultInstance(); - } - relationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder>( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation) - compiledObject_, - getParentForChildren(), - isClean()); - compiledObject_ = null; - } - compiledObjectCase_ = 4; - onChanged(); - return relationBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder> - operationsBuilder_; - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - * - * @return Whether the operations field is set. - */ - @java.lang.Override - public boolean hasOperations() { - return compiledObjectCase_ == 5; - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - * - * @return The operations. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations getOperations() { - if (operationsBuilder_ == null) { - if (compiledObjectCase_ == 5) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } else { - if (compiledObjectCase_ == 5) { - return operationsBuilder_.getMessage(); - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - public Builder setOperations( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations value) { - if (operationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledObject_ = value; - onChanged(); - } else { - operationsBuilder_.setMessage(value); - } - compiledObjectCase_ = 5; - return this; - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - public Builder setOperations( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder - builderForValue) { - if (operationsBuilder_ == null) { - compiledObject_ = builderForValue.build(); - onChanged(); - } else { - operationsBuilder_.setMessage(builderForValue.build()); - } - compiledObjectCase_ = 5; - return this; - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - public Builder mergeOperations( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations value) { - if (operationsBuilder_ == null) { - if (compiledObjectCase_ == 5 - && compiledObject_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance()) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.newBuilder( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_) - .mergeFrom(value) - .buildPartial(); - } else { - compiledObject_ = value; - } - onChanged(); - } else { - if (compiledObjectCase_ == 5) { - operationsBuilder_.mergeFrom(value); - } else { - operationsBuilder_.setMessage(value); - } - } - compiledObjectCase_ = 5; - return this; - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - public Builder clearOperations() { - if (operationsBuilder_ == null) { - if (compiledObjectCase_ == 5) { - compiledObjectCase_ = 0; - compiledObject_ = null; - onChanged(); - } - } else { - if (compiledObjectCase_ == 5) { - compiledObjectCase_ = 0; - compiledObject_ = null; - } - operationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder - getOperationsBuilder() { - return getOperationsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder - getOperationsOrBuilder() { - if ((compiledObjectCase_ == 5) && (operationsBuilder_ != null)) { - return operationsBuilder_.getMessageOrBuilder(); - } else { - if (compiledObjectCase_ == 5) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The database operations executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder> - getOperationsFieldBuilder() { - if (operationsBuilder_ == null) { - if (!(compiledObjectCase_ == 5)) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations - .getDefaultInstance(); - } - operationsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder>( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations) - compiledObject_, - getParentForChildren(), - isClean()); - compiledObject_ = null; - } - compiledObjectCase_ = 5; - onChanged(); - return operationsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder> - assertionBuilder_; - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - * - * @return Whether the assertion field is set. - */ - @java.lang.Override - public boolean hasAssertion() { - return compiledObjectCase_ == 6; - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - * - * @return The assertion. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion getAssertion() { - if (assertionBuilder_ == null) { - if (compiledObjectCase_ == 6) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } else { - if (compiledObjectCase_ == 6) { - return assertionBuilder_.getMessage(); - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - public Builder setAssertion( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion value) { - if (assertionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledObject_ = value; - onChanged(); - } else { - assertionBuilder_.setMessage(value); - } - compiledObjectCase_ = 6; - return this; - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - public Builder setAssertion( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder - builderForValue) { - if (assertionBuilder_ == null) { - compiledObject_ = builderForValue.build(); - onChanged(); - } else { - assertionBuilder_.setMessage(builderForValue.build()); - } - compiledObjectCase_ = 6; - return this; - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - public Builder mergeAssertion( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion value) { - if (assertionBuilder_ == null) { - if (compiledObjectCase_ == 6 - && compiledObject_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance()) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.newBuilder( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - compiledObject_) - .mergeFrom(value) - .buildPartial(); - } else { - compiledObject_ = value; - } - onChanged(); - } else { - if (compiledObjectCase_ == 6) { - assertionBuilder_.mergeFrom(value); - } else { - assertionBuilder_.setMessage(value); - } - } - compiledObjectCase_ = 6; - return this; - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - public Builder clearAssertion() { - if (assertionBuilder_ == null) { - if (compiledObjectCase_ == 6) { - compiledObjectCase_ = 0; - compiledObject_ = null; - onChanged(); - } - } else { - if (compiledObjectCase_ == 6) { - compiledObjectCase_ = 0; - compiledObject_ = null; - } - assertionBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder - getAssertionBuilder() { - return getAssertionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder - getAssertionOrBuilder() { - if ((compiledObjectCase_ == 6) && (assertionBuilder_ != null)) { - return assertionBuilder_.getMessageOrBuilder(); - } else { - if (compiledObjectCase_ == 6) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The assertion executed by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder> - getAssertionFieldBuilder() { - if (assertionBuilder_ == null) { - if (!(compiledObjectCase_ == 6)) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion - .getDefaultInstance(); - } - assertionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder>( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion) - compiledObject_, - getParentForChildren(), - isClean()); - compiledObject_ = null; - } - compiledObjectCase_ = 6; - onChanged(); - return assertionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder> - declarationBuilder_; - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - * - * @return Whether the declaration field is set. - */ - @java.lang.Override - public boolean hasDeclaration() { - return compiledObjectCase_ == 7; - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - * - * @return The declaration. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration getDeclaration() { - if (declarationBuilder_ == null) { - if (compiledObjectCase_ == 7) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance(); - } else { - if (compiledObjectCase_ == 7) { - return declarationBuilder_.getMessage(); - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - public Builder setDeclaration( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration value) { - if (declarationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledObject_ = value; - onChanged(); - } else { - declarationBuilder_.setMessage(value); - } - compiledObjectCase_ = 7; - return this; - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - public Builder setDeclaration( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder - builderForValue) { - if (declarationBuilder_ == null) { - compiledObject_ = builderForValue.build(); - onChanged(); - } else { - declarationBuilder_.setMessage(builderForValue.build()); - } - compiledObjectCase_ = 7; - return this; - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - public Builder mergeDeclaration( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration value) { - if (declarationBuilder_ == null) { - if (compiledObjectCase_ == 7 - && compiledObject_ - != com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance()) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.newBuilder( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_) - .mergeFrom(value) - .buildPartial(); - } else { - compiledObject_ = value; - } - onChanged(); - } else { - if (compiledObjectCase_ == 7) { - declarationBuilder_.mergeFrom(value); - } else { - declarationBuilder_.setMessage(value); - } - } - compiledObjectCase_ = 7; - return this; - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - public Builder clearDeclaration() { - if (declarationBuilder_ == null) { - if (compiledObjectCase_ == 7) { - compiledObjectCase_ = 0; - compiledObject_ = null; - onChanged(); - } - } else { - if (compiledObjectCase_ == 7) { - compiledObjectCase_ = 0; - compiledObject_ = null; - } - declarationBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder - getDeclarationBuilder() { - return getDeclarationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder - getDeclarationOrBuilder() { - if ((compiledObjectCase_ == 7) && (declarationBuilder_ != null)) { - return declarationBuilder_.getMessageOrBuilder(); - } else { - if (compiledObjectCase_ == 7) { - return (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_; - } - return com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The declaration declared by this action.
-     * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder> - getDeclarationFieldBuilder() { - if (declarationBuilder_ == null) { - if (!(compiledObjectCase_ == 7)) { - compiledObject_ = - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration - .getDefaultInstance(); - } - declarationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder>( - (com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration) - compiledObject_, - getParentForChildren(), - isClean()); - compiledObject_ = null; - } - compiledObjectCase_ = 7; - onChanged(); - return declarationBuilder_; - } - - @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.v1alpha2.CompilationResultAction) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CompilationResultAction) - private static final com.google.cloud.dataform.v1alpha2.CompilationResultAction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CompilationResultAction(); - } - - public static com.google.cloud.dataform.v1alpha2.CompilationResultAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompilationResultAction 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.v1alpha2.CompilationResultAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultActionOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultActionOrBuilder.java deleted file mode 100644 index 3681c2be7aab..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultActionOrBuilder.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CompilationResultActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResultAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This action's identifier. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - * - * @return Whether the target field is set. - */ - boolean hasTarget(); - /** - * - * - *
-   * This action's identifier. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - * - * @return The target. - */ - com.google.cloud.dataform.v1alpha2.Target getTarget(); - /** - * - * - *
-   * This action's identifier. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target target = 1; - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getTargetOrBuilder(); - - /** - * - * - *
-   * The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - * - * @return Whether the canonicalTarget field is set. - */ - boolean hasCanonicalTarget(); - /** - * - * - *
-   * The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - * - * @return The canonicalTarget. - */ - com.google.cloud.dataform.v1alpha2.Target getCanonicalTarget(); - /** - * - * - *
-   * The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2; - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getCanonicalTargetOrBuilder(); - - /** - * - * - *
-   * The full path including filename in which this action is located, relative
-   * to the workspace root.
-   * 
- * - * string file_path = 3; - * - * @return The filePath. - */ - java.lang.String getFilePath(); - /** - * - * - *
-   * The full path including filename in which this action is located, relative
-   * to the workspace root.
-   * 
- * - * string file_path = 3; - * - * @return The bytes for filePath. - */ - com.google.protobuf.ByteString getFilePathBytes(); - - /** - * - * - *
-   * The database relation created/updated by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - * - * @return Whether the relation field is set. - */ - boolean hasRelation(); - /** - * - * - *
-   * The database relation created/updated by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - * - * @return The relation. - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Relation getRelation(); - /** - * - * - *
-   * The database relation created/updated by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Relation relation = 4; - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.RelationOrBuilder - getRelationOrBuilder(); - - /** - * - * - *
-   * The database operations executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - * @return Whether the operations field is set. - */ - boolean hasOperations(); - /** - * - * - *
-   * The database operations executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - * - * @return The operations. - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Operations getOperations(); - /** - * - * - *
-   * The database operations executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Operations operations = 5; - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.OperationsOrBuilder - getOperationsOrBuilder(); - - /** - * - * - *
-   * The assertion executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - * - * @return Whether the assertion field is set. - */ - boolean hasAssertion(); - /** - * - * - *
-   * The assertion executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - * - * @return The assertion. - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion getAssertion(); - /** - * - * - *
-   * The assertion executed by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Assertion assertion = 6; - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.AssertionOrBuilder - getAssertionOrBuilder(); - - /** - * - * - *
-   * The declaration declared by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - * - * @return Whether the declaration field is set. - */ - boolean hasDeclaration(); - /** - * - * - *
-   * The declaration declared by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - * - * @return The declaration. - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration getDeclaration(); - /** - * - * - *
-   * The declaration declared by this action.
-   * 
- * - * .google.cloud.dataform.v1alpha2.CompilationResultAction.Declaration declaration = 7; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction.DeclarationOrBuilder - getDeclarationOrBuilder(); - - com.google.cloud.dataform.v1alpha2.CompilationResultAction.CompiledObjectCase - getCompiledObjectCase(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultName.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultName.java deleted file mode 100644 index c102052b0b07..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultName.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -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 CompilationResultName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REPOSITORY_COMPILATION_RESULT = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String repository; - private final String compilationResult; - - @Deprecated - protected CompilationResultName() { - project = null; - location = null; - repository = null; - compilationResult = null; - } - - private CompilationResultName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - repository = Preconditions.checkNotNull(builder.getRepository()); - compilationResult = Preconditions.checkNotNull(builder.getCompilationResult()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public String getCompilationResult() { - return compilationResult; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static CompilationResultName of( - String project, String location, String repository, String compilationResult) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .setCompilationResult(compilationResult) - .build(); - } - - public static String format( - String project, String location, String repository, String compilationResult) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .setCompilationResult(compilationResult) - .build() - .toString(); - } - - public static CompilationResultName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REPOSITORY_COMPILATION_RESULT.validatedMatch( - formattedString, "CompilationResultName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("repository"), - matchMap.get("compilation_result")); - } - - 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 (CompilationResultName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_REPOSITORY_COMPILATION_RESULT.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 (compilationResult != null) { - fieldMapBuilder.put("compilation_result", compilationResult); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REPOSITORY_COMPILATION_RESULT.instantiate( - "project", - project, - "location", - location, - "repository", - repository, - "compilation_result", - compilationResult); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - CompilationResultName that = ((CompilationResultName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.repository, that.repository) - && Objects.equals(this.compilationResult, that.compilationResult); - } - 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(compilationResult); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}. - */ - public static class Builder { - private String project; - private String location; - private String repository; - private String compilationResult; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public String getCompilationResult() { - return compilationResult; - } - - 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 setCompilationResult(String compilationResult) { - this.compilationResult = compilationResult; - return this; - } - - private Builder(CompilationResultName compilationResultName) { - this.project = compilationResultName.project; - this.location = compilationResultName.location; - this.repository = compilationResultName.repository; - this.compilationResult = compilationResultName.compilationResult; - } - - public CompilationResultName build() { - return new CompilationResultName(this); - } - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultOrBuilder.java deleted file mode 100644 index 02b9376d2f86..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CompilationResultOrBuilder.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CompilationResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CompilationResult) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The compilation result's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The compilation result's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - 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:
-   * - a commit SHA: `12ade345`
-   * - a tag: `tag1`
-   * - a branch name: `branch1`
-   * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return Whether the gitCommitish field is set. - */ - boolean hasGitCommitish(); - /** - * - * - *
-   * 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`
-   * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The gitCommitish. - */ - java.lang.String getGitCommitish(); - /** - * - * - *
-   * 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`
-   * 
- * - * string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for gitCommitish. - */ - com.google.protobuf.ByteString getGitCommitishBytes(); - - /** - * - * - *
-   * Immutable. The name of the workspace to compile. Must be in the format
-   * `projects/*/locations/*/repositories/*/workspaces/*`.
-   * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return Whether the workspace field is set. - */ - boolean hasWorkspace(); - /** - * - * - *
-   * Immutable. The name of the workspace to compile. Must be in the format
-   * `projects/*/locations/*/repositories/*/workspaces/*`.
-   * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Immutable. The name of the workspace to compile. Must be in the format
-   * `projects/*/locations/*/repositories/*/workspaces/*`.
-   * 
- * - * - * string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return Whether the codeCompilationConfig field is set. - */ - boolean hasCodeCompilationConfig(); - /** - * - * - *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The codeCompilationConfig. - */ - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig - getCodeCompilationConfig(); - /** - * - * - *
-   * Immutable. If set, fields of `code_compilation_overrides` override the default
-   * compilation settings that are specified in dataform.json.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfigOrBuilder - getCodeCompilationConfigOrBuilder(); - - /** - * - * - *
-   * Output only. The version of `@dataform/core` that was used for compilation.
-   * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The dataformCoreVersion. - */ - java.lang.String getDataformCoreVersion(); - /** - * - * - *
-   * Output only. The version of `@dataform/core` that was used for compilation.
-   * 
- * - * string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for dataformCoreVersion. - */ - com.google.protobuf.ByteString getDataformCoreVersionBytes(); - - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getCompilationErrorsList(); - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationError getCompilationErrors( - int index); - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getCompilationErrorsCount(); - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder> - getCompilationErrorsOrBuilderList(); - /** - * - * - *
-   * Output only. Errors encountered during project compilation.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResult.CompilationErrorOrBuilder - getCompilationErrorsOrBuilder(int index); - - com.google.cloud.dataform.v1alpha2.CompilationResult.SourceCase getSourceCase(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateCompilationResultRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateCompilationResultRequest.java deleted file mode 100644 index b55b8e033700..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateCompilationResultRequest.java +++ /dev/null @@ -1,971 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `CreateCompilationResult` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateCompilationResultRequest} - */ -public final class CreateCompilationResultRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) - CreateCompilationResultRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateCompilationResultRequest.newBuilder() to construct. - private CreateCompilationResultRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateCompilationResultRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateCompilationResultRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.class, - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * 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) = { ... } - * - * - * @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 compilation result. 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 COMPILATION_RESULT_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.CompilationResult compilationResult_; - /** - * - * - *
-   * Required. The compilation result to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the compilationResult field is set. - */ - @java.lang.Override - public boolean hasCompilationResult() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The compilation result to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The compilationResult. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResult() { - return compilationResult_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance() - : compilationResult_; - } - /** - * - * - *
-   * Required. The compilation result to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder - getCompilationResultOrBuilder() { - return compilationResult_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance() - : compilationResult_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getCompilationResult()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCompilationResult()); - } - 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.v1alpha2.CreateCompilationResultRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest other = - (com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasCompilationResult() != other.hasCompilationResult()) return false; - if (hasCompilationResult()) { - if (!getCompilationResult().equals(other.getCompilationResult())) 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 (hasCompilationResult()) { - hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; - hash = (53 * hash) + getCompilationResult().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest 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.v1alpha2.CreateCompilationResultRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest 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.v1alpha2.CreateCompilationResultRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest 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.v1alpha2.CreateCompilationResultRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest - 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.v1alpha2.CreateCompilationResultRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest 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.v1alpha2.CreateCompilationResultRequest 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; - } - /** - * - * - *
-   * `CreateCompilationResult` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateCompilationResultRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.class, - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCompilationResultFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - compilationResult_ = null; - if (compilationResultBuilder_ != null) { - compilationResultBuilder_.dispose(); - compilationResultBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest build() { - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest result = - new com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.compilationResult_ = - compilationResultBuilder_ == null - ? compilationResult_ - : compilationResultBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CreateCompilationResultRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCompilationResult()) { - mergeCompilationResult(other.getCompilationResult()); - } - 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( - getCompilationResultFieldBuilder().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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * 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) = { ... } - * - * - * @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 compilation result. 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 compilation result. 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 compilation result. 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 compilation result. 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.v1alpha2.CompilationResult compilationResult_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder> - compilationResultBuilder_; - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the compilationResult field is set. - */ - public boolean hasCompilationResult() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The compilationResult. - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResult() { - if (compilationResultBuilder_ == null) { - return compilationResult_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance() - : compilationResult_; - } else { - return compilationResultBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCompilationResult( - com.google.cloud.dataform.v1alpha2.CompilationResult value) { - if (compilationResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compilationResult_ = value; - } else { - compilationResultBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCompilationResult( - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder builderForValue) { - if (compilationResultBuilder_ == null) { - compilationResult_ = builderForValue.build(); - } else { - compilationResultBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCompilationResult( - com.google.cloud.dataform.v1alpha2.CompilationResult value) { - if (compilationResultBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && compilationResult_ != null - && compilationResult_ - != com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance()) { - getCompilationResultBuilder().mergeFrom(value); - } else { - compilationResult_ = value; - } - } else { - compilationResultBuilder_.mergeFrom(value); - } - if (compilationResult_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCompilationResult() { - bitField0_ = (bitField0_ & ~0x00000002); - compilationResult_ = null; - if (compilationResultBuilder_ != null) { - compilationResultBuilder_.dispose(); - compilationResultBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.Builder - getCompilationResultBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCompilationResultFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder - getCompilationResultOrBuilder() { - if (compilationResultBuilder_ != null) { - return compilationResultBuilder_.getMessageOrBuilder(); - } else { - return compilationResult_ == null - ? com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance() - : compilationResult_; - } - } - /** - * - * - *
-     * Required. The compilation result to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder> - getCompilationResultFieldBuilder() { - if (compilationResultBuilder_ == null) { - compilationResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder>( - getCompilationResult(), getParentForChildren(), isClean()); - compilationResult_ = null; - } - return compilationResultBuilder_; - } - - @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.v1alpha2.CreateCompilationResultRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) - private static final com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.CreateCompilationResultRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCompilationResultRequest 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.v1alpha2.CreateCompilationResultRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateCompilationResultRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateCompilationResultRequestOrBuilder.java deleted file mode 100644 index c3c5bf4b735f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateCompilationResultRequestOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CreateCompilationResultRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CreateCompilationResultRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The compilation result to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the compilationResult field is set. - */ - boolean hasCompilationResult(); - /** - * - * - *
-   * Required. The compilation result to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The compilationResult. - */ - com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResult(); - /** - * - * - *
-   * Required. The compilation result to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder getCompilationResultOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateRepositoryRequest.java deleted file mode 100644 index a0fca895c981..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateRepositoryRequest.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `CreateRepository` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateRepositoryRequest} - */ -public final class CreateRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CreateRepositoryRequest) - CreateRepositoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateRepositoryRequest.newBuilder() to construct. - private CreateRepositoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateRepositoryRequest() { - parent_ = ""; - repositoryId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateRepositoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @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 REPOSITORY_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.Repository repository_; - /** - * - * - *
-   * Required. The repository to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the repository field is set. - */ - @java.lang.Override - public boolean hasRepository() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The repository to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The repository. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository getRepository() { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } - /** - * - * - *
-   * Required. The repository to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoryOrBuilder() { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } - - public static final int REPOSITORY_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object repositoryId_ = ""; - /** - * - * - *
-   * 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]; - * - * @return The repositoryId. - */ - @java.lang.Override - public java.lang.String getRepositoryId() { - java.lang.Object ref = repositoryId_; - 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(); - repositoryId_ = s; - return s; - } - } - /** - * - * - *
-   * 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]; - * - * @return The bytes for repositoryId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRepositoryIdBytes() { - java.lang.Object ref = repositoryId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - repositoryId_ = 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getRepository()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, repositoryId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRepository()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, repositoryId_); - } - 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.v1alpha2.CreateRepositoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest other = - (com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRepository() != other.hasRepository()) return false; - if (hasRepository()) { - if (!getRepository().equals(other.getRepository())) return false; - } - if (!getRepositoryId().equals(other.getRepositoryId())) 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 (hasRepository()) { - hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getRepository().hashCode(); - } - hash = (37 * hash) + REPOSITORY_ID_FIELD_NUMBER; - hash = (53 * hash) + getRepositoryId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest 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.v1alpha2.CreateRepositoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest 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.v1alpha2.CreateRepositoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest 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.v1alpha2.CreateRepositoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest 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.v1alpha2.CreateRepositoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest 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.v1alpha2.CreateRepositoryRequest 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; - } - /** - * - * - *
-   * `CreateRepository` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateRepositoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CreateRepositoryRequest) - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRepositoryFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - repository_ = null; - if (repositoryBuilder_ != null) { - repositoryBuilder_.dispose(); - repositoryBuilder_ = null; - } - repositoryId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest build() { - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest result = - new com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.repository_ = repositoryBuilder_ == null ? repository_ : repositoryBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.repositoryId_ = repositoryId_; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CreateRepositoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasRepository()) { - mergeRepository(other.getRepository()); - } - if (!other.getRepositoryId().isEmpty()) { - repositoryId_ = other.repositoryId_; - 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(getRepositoryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - repositoryId_ = 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 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * 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) = { ... } - * - * - * @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.v1alpha2.Repository repository_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder> - repositoryBuilder_; - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the repository field is set. - */ - public boolean hasRepository() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The repository. - */ - public com.google.cloud.dataform.v1alpha2.Repository getRepository() { - if (repositoryBuilder_ == null) { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } else { - return repositoryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRepository(com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - repository_ = value; - } else { - repositoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRepository( - com.google.cloud.dataform.v1alpha2.Repository.Builder builderForValue) { - if (repositoryBuilder_ == null) { - repository_ = builderForValue.build(); - } else { - repositoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRepository(com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && repository_ != null - && repository_ != com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance()) { - getRepositoryBuilder().mergeFrom(value); - } else { - repository_ = value; - } - } else { - repositoryBuilder_.mergeFrom(value); - } - if (repository_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRepository() { - bitField0_ = (bitField0_ & ~0x00000002); - repository_ = null; - if (repositoryBuilder_ != null) { - repositoryBuilder_.dispose(); - repositoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.Repository.Builder getRepositoryBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getRepositoryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoryOrBuilder() { - if (repositoryBuilder_ != null) { - return repositoryBuilder_.getMessageOrBuilder(); - } else { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } - } - /** - * - * - *
-     * Required. The repository to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder> - getRepositoryFieldBuilder() { - if (repositoryBuilder_ == null) { - repositoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder>( - getRepository(), getParentForChildren(), isClean()); - repository_ = null; - } - return repositoryBuilder_; - } - - private java.lang.Object repositoryId_ = ""; - /** - * - * - *
-     * 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]; - * - * @return The repositoryId. - */ - public java.lang.String getRepositoryId() { - java.lang.Object ref = repositoryId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - repositoryId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for repositoryId. - */ - public com.google.protobuf.ByteString getRepositoryIdBytes() { - java.lang.Object ref = repositoryId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - repositoryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @param value The repositoryId to set. - * @return This builder for chaining. - */ - public Builder setRepositoryId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - repositoryId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearRepositoryId() { - repositoryId_ = getDefaultInstance().getRepositoryId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes for repositoryId to set. - * @return This builder for chaining. - */ - public Builder setRepositoryIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - repositoryId_ = 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.v1alpha2.CreateRepositoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CreateRepositoryRequest) - private static final com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.CreateRepositoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRepositoryRequest 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.v1alpha2.CreateRepositoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateRepositoryRequestOrBuilder.java deleted file mode 100644 index b6e847074e6c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateRepositoryRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CreateRepositoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CreateRepositoryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The repository to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the repository field is set. - */ - boolean hasRepository(); - /** - * - * - *
-   * Required. The repository to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The repository. - */ - com.google.cloud.dataform.v1alpha2.Repository getRepository(); - /** - * - * - *
-   * Required. The repository to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoryOrBuilder(); - - /** - * - * - *
-   * 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]; - * - * @return The repositoryId. - */ - java.lang.String getRepositoryId(); - /** - * - * - *
-   * 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]; - * - * @return The bytes for repositoryId. - */ - com.google.protobuf.ByteString getRepositoryIdBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkflowInvocationRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkflowInvocationRequest.java deleted file mode 100644 index 53254a7dd0e4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkflowInvocationRequest.java +++ /dev/null @@ -1,966 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `CreateWorkflowInvocation` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest} - */ -public final class CreateWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) - CreateWorkflowInvocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateWorkflowInvocationRequest.newBuilder() to construct. - private CreateWorkflowInvocationRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateWorkflowInvocationRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateWorkflowInvocationRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The parent resource of the WorkflowInvocation type.
-   * 
- * - * - * 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 parent resource of the WorkflowInvocation type.
-   * 
- * - * - * 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_INVOCATION_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.WorkflowInvocation workflowInvocation_; - /** - * - * - *
-   * Required. The workflow invocation resource to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workflowInvocation field is set. - */ - @java.lang.Override - public boolean hasWorkflowInvocation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The workflow invocation resource to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workflowInvocation. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocation() { - return workflowInvocation_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance() - : workflowInvocation_; - } - /** - * - * - *
-   * Required. The workflow invocation resource to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder - getWorkflowInvocationOrBuilder() { - return workflowInvocation_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance() - : workflowInvocation_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getWorkflowInvocation()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflowInvocation()); - } - 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.v1alpha2.CreateWorkflowInvocationRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest other = - (com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasWorkflowInvocation() != other.hasWorkflowInvocation()) return false; - if (hasWorkflowInvocation()) { - if (!getWorkflowInvocation().equals(other.getWorkflowInvocation())) 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 (hasWorkflowInvocation()) { - hash = (37 * hash) + WORKFLOW_INVOCATION_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowInvocation().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest 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.v1alpha2.CreateWorkflowInvocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest 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.v1alpha2.CreateWorkflowInvocationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest 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.v1alpha2.CreateWorkflowInvocationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - 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.v1alpha2.CreateWorkflowInvocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest 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.v1alpha2.CreateWorkflowInvocationRequest 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; - } - /** - * - * - *
-   * `CreateWorkflowInvocation` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWorkflowInvocationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - workflowInvocation_ = null; - if (workflowInvocationBuilder_ != null) { - workflowInvocationBuilder_.dispose(); - workflowInvocationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest build() { - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest result = - new com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workflowInvocation_ = - workflowInvocationBuilder_ == null - ? workflowInvocation_ - : workflowInvocationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CreateWorkflowInvocationRequest) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasWorkflowInvocation()) { - mergeWorkflowInvocation(other.getWorkflowInvocation()); - } - 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( - getWorkflowInvocationFieldBuilder().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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource of the WorkflowInvocation type.
-     * 
- * - * - * 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 parent resource of the WorkflowInvocation type.
-     * 
- * - * - * 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 parent resource of the WorkflowInvocation type.
-     * 
- * - * - * 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 parent resource of the WorkflowInvocation type.
-     * 
- * - * - * 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 parent resource of the WorkflowInvocation type.
-     * 
- * - * - * 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.v1alpha2.WorkflowInvocation workflowInvocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder> - workflowInvocationBuilder_; - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workflowInvocation field is set. - */ - public boolean hasWorkflowInvocation() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workflowInvocation. - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocation() { - if (workflowInvocationBuilder_ == null) { - return workflowInvocation_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance() - : workflowInvocation_; - } else { - return workflowInvocationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation value) { - if (workflowInvocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowInvocation_ = value; - } else { - workflowInvocationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder builderForValue) { - if (workflowInvocationBuilder_ == null) { - workflowInvocation_ = builderForValue.build(); - } else { - workflowInvocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeWorkflowInvocation( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation value) { - if (workflowInvocationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && workflowInvocation_ != null - && workflowInvocation_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance()) { - getWorkflowInvocationBuilder().mergeFrom(value); - } else { - workflowInvocation_ = value; - } - } else { - workflowInvocationBuilder_.mergeFrom(value); - } - if (workflowInvocation_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearWorkflowInvocation() { - bitField0_ = (bitField0_ & ~0x00000002); - workflowInvocation_ = null; - if (workflowInvocationBuilder_ != null) { - workflowInvocationBuilder_.dispose(); - workflowInvocationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder - getWorkflowInvocationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getWorkflowInvocationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder - getWorkflowInvocationOrBuilder() { - if (workflowInvocationBuilder_ != null) { - return workflowInvocationBuilder_.getMessageOrBuilder(); - } else { - return workflowInvocation_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance() - : workflowInvocation_; - } - } - /** - * - * - *
-     * Required. The workflow invocation resource to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder> - getWorkflowInvocationFieldBuilder() { - if (workflowInvocationBuilder_ == null) { - workflowInvocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder>( - getWorkflowInvocation(), getParentForChildren(), isClean()); - workflowInvocation_ = null; - } - return workflowInvocationBuilder_; - } - - @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.v1alpha2.CreateWorkflowInvocationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) - private static final com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowInvocationRequest 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.v1alpha2.CreateWorkflowInvocationRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkflowInvocationRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkflowInvocationRequestOrBuilder.java deleted file mode 100644 index a4906659879c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkflowInvocationRequestOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CreateWorkflowInvocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CreateWorkflowInvocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource of the WorkflowInvocation type.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource of the WorkflowInvocation type.
-   * 
- * - * - * 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 invocation resource to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workflowInvocation field is set. - */ - boolean hasWorkflowInvocation(); - /** - * - * - *
-   * Required. The workflow invocation resource to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workflowInvocation. - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocation(); - /** - * - * - *
-   * Required. The workflow invocation resource to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder getWorkflowInvocationOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkspaceRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkspaceRequest.java deleted file mode 100644 index d08137c7c3f4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkspaceRequest.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `CreateWorkspace` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateWorkspaceRequest} - */ -public final class CreateWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) - CreateWorkspaceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateWorkspaceRequest.newBuilder() to construct. - private CreateWorkspaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateWorkspaceRequest() { - parent_ = ""; - workspaceId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateWorkspaceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.class, - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * 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) = { ... } - * - * - * @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 workspace. 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 WORKSPACE_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.Workspace workspace_; - /** - * - * - *
-   * Required. The workspace to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workspace field is set. - */ - @java.lang.Override - public boolean hasWorkspace() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The workspace to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workspace. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Workspace getWorkspace() { - return workspace_ == null - ? com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance() - : workspace_; - } - /** - * - * - *
-   * Required. The workspace to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder getWorkspaceOrBuilder() { - return workspace_ == null - ? com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance() - : workspace_; - } - - public static final int WORKSPACE_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspaceId_ = ""; - /** - * - * - *
-   * 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]; - * - * @return The workspaceId. - */ - @java.lang.Override - public java.lang.String getWorkspaceId() { - java.lang.Object ref = workspaceId_; - 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(); - workspaceId_ = s; - return s; - } - } - /** - * - * - *
-   * 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]; - * - * @return The bytes for workspaceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceIdBytes() { - java.lang.Object ref = workspaceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspaceId_ = 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getWorkspace()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workspaceId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkspace()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workspaceId_); - } - 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.v1alpha2.CreateWorkspaceRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest other = - (com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasWorkspace() != other.hasWorkspace()) return false; - if (hasWorkspace()) { - if (!getWorkspace().equals(other.getWorkspace())) return false; - } - if (!getWorkspaceId().equals(other.getWorkspaceId())) 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 (hasWorkspace()) { - hash = (37 * hash) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().hashCode(); - } - hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkspaceId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest 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.v1alpha2.CreateWorkspaceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest 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.v1alpha2.CreateWorkspaceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest 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.v1alpha2.CreateWorkspaceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest 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.v1alpha2.CreateWorkspaceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest 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.v1alpha2.CreateWorkspaceRequest 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; - } - /** - * - * - *
-   * `CreateWorkspace` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.CreateWorkspaceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.class, - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWorkspaceFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - workspace_ = null; - if (workspaceBuilder_ != null) { - workspaceBuilder_.dispose(); - workspaceBuilder_ = null; - } - workspaceId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest build() { - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest result = - new com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workspace_ = workspaceBuilder_ == null ? workspace_ : workspaceBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.workspaceId_ = workspaceId_; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.CreateWorkspaceRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasWorkspace()) { - mergeWorkspace(other.getWorkspace()); - } - if (!other.getWorkspaceId().isEmpty()) { - workspaceId_ = other.workspaceId_; - 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(getWorkspaceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - workspaceId_ = 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 workspace. 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 workspace. 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 workspace. 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 workspace. 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 workspace. 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.v1alpha2.Workspace workspace_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Workspace, - com.google.cloud.dataform.v1alpha2.Workspace.Builder, - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder> - workspaceBuilder_; - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workspace field is set. - */ - public boolean hasWorkspace() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workspace. - */ - public com.google.cloud.dataform.v1alpha2.Workspace getWorkspace() { - if (workspaceBuilder_ == null) { - return workspace_ == null - ? com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance() - : workspace_; - } else { - return workspaceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkspace(com.google.cloud.dataform.v1alpha2.Workspace value) { - if (workspaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - } else { - workspaceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkspace( - com.google.cloud.dataform.v1alpha2.Workspace.Builder builderForValue) { - if (workspaceBuilder_ == null) { - workspace_ = builderForValue.build(); - } else { - workspaceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeWorkspace(com.google.cloud.dataform.v1alpha2.Workspace value) { - if (workspaceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && workspace_ != null - && workspace_ != com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance()) { - getWorkspaceBuilder().mergeFrom(value); - } else { - workspace_ = value; - } - } else { - workspaceBuilder_.mergeFrom(value); - } - if (workspace_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearWorkspace() { - bitField0_ = (bitField0_ & ~0x00000002); - workspace_ = null; - if (workspaceBuilder_ != null) { - workspaceBuilder_.dispose(); - workspaceBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.Workspace.Builder getWorkspaceBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getWorkspaceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder getWorkspaceOrBuilder() { - if (workspaceBuilder_ != null) { - return workspaceBuilder_.getMessageOrBuilder(); - } else { - return workspace_ == null - ? com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance() - : workspace_; - } - } - /** - * - * - *
-     * Required. The workspace to create.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Workspace, - com.google.cloud.dataform.v1alpha2.Workspace.Builder, - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder> - getWorkspaceFieldBuilder() { - if (workspaceBuilder_ == null) { - workspaceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Workspace, - com.google.cloud.dataform.v1alpha2.Workspace.Builder, - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder>( - getWorkspace(), getParentForChildren(), isClean()); - workspace_ = null; - } - return workspaceBuilder_; - } - - private java.lang.Object workspaceId_ = ""; - /** - * - * - *
-     * 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]; - * - * @return The workspaceId. - */ - public java.lang.String getWorkspaceId() { - java.lang.Object ref = workspaceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspaceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for workspaceId. - */ - public com.google.protobuf.ByteString getWorkspaceIdBytes() { - java.lang.Object ref = workspaceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspaceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @param value The workspaceId to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspaceId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearWorkspaceId() { - workspaceId_ = getDefaultInstance().getWorkspaceId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes for workspaceId to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspaceId_ = 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.v1alpha2.CreateWorkspaceRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) - private static final com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.CreateWorkspaceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkspaceRequest 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.v1alpha2.CreateWorkspaceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkspaceRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkspaceRequestOrBuilder.java deleted file mode 100644 index b23273d7d36a..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/CreateWorkspaceRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface CreateWorkspaceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.CreateWorkspaceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The workspace to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workspace field is set. - */ - boolean hasWorkspace(); - /** - * - * - *
-   * Required. The workspace to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workspace. - */ - com.google.cloud.dataform.v1alpha2.Workspace getWorkspace(); - /** - * - * - *
-   * Required. The workspace to create.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder getWorkspaceOrBuilder(); - - /** - * - * - *
-   * 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]; - * - * @return The workspaceId. - */ - java.lang.String getWorkspaceId(); - /** - * - * - *
-   * 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]; - * - * @return The bytes for workspaceId. - */ - com.google.protobuf.ByteString getWorkspaceIdBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java deleted file mode 100644 index 60c4f803c246..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java +++ /dev/null @@ -1,1619 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public final class DataformProto { - private DataformProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_Repository_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_Workspace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_Workspace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_VarsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_Target_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_Target_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_BigqueryLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_BigqueryLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_AdditionalOptionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/dataform/v1alpha2/datafor" - + "m.proto\022\036google.cloud.dataform.v1alpha2\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\032\033goog" - + "le/protobuf/empty.proto\032 google/protobuf" - + "/field_mask.proto\032\032google/type/interval." - + "proto\"\312\004\n\nRepository\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "^\n\023git_remote_settings\030\002 \001(\0132<.google.cl" - + "oud.dataform.v1alpha2.Repository.GitRemo" - + "teSettingsB\003\340A\001\032\334\002\n\021GitRemoteSettings\022\020\n" - + "\003url\030\001 \001(\tB\003\340A\002\022\033\n\016default_branch\030\002 \001(\tB" - + "\003\340A\002\022_\n#authentication_token_secret_vers" - + "ion\030\003 \001(\tB2\340A\002\372A,\n*secretmanager.googlea" - + "pis.com/SecretVersion\022c\n\014token_status\030\004 " - + "\001(\0162H.google.cloud.dataform.v1alpha2.Rep" - + "ository.GitRemoteSettings.TokenStatusB\003\340" - + "A\003\"R\n\013TokenStatus\022\034\n\030TOKEN_STATUS_UNSPEC" - + "IFIED\020\000\022\r\n\tNOT_FOUND\020\001\022\013\n\007INVALID\020\002\022\t\n\005V" - + "ALID\020\003:j\352Ag\n\"dataform.googleapis.com/Rep" - + "ository\022Aprojects/{project}/locations/{l" - + "ocation}/repositories/{repository}\"\261\001\n\027L" - + "istRepositoriesRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!locations.googleapis.com/Locatio" - + "n\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" - + "\003 \001(\tB\003\340A\001\022\025\n\010order_by\030\004 \001(\tB\003\340A\001\022\023\n\006fil" - + "ter\030\005 \001(\tB\003\340A\001\"\212\001\n\030ListRepositoriesRespo" - + "nse\022@\n\014repositories\030\001 \003(\0132*.google.cloud" - + ".dataform.v1alpha2.Repository\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"P\n\024G" - + "etRepositoryRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A" - + "$\n\"dataform.googleapis.com/Repository\"\265\001" - + "\n\027CreateRepositoryRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022C\n\nrepository\030\002 \001(\0132*.google.cloud." - + "dataform.v1alpha2.RepositoryB\003\340A\002\022\032\n\rrep" - + "ository_id\030\003 \001(\tB\003\340A\002\"\224\001\n\027UpdateReposito" - + "ryRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\001\022C\n\nrepository\030\002 " - + "\001(\0132*.google.cloud.dataform.v1alpha2.Rep" - + "ositoryB\003\340A\002\"b\n\027DeleteRepositoryRequest\022" - + "8\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleap" - + "is.com/Repository\022\r\n\005force\030\002 \001(\010\"V\n\032Fetc" - + "hRemoteBranchesRequest\0228\n\004name\030\001 \001(\tB*\340A" - + "\002\372A$\n\"dataform.googleapis.com/Repository" - + "\"/\n\033FetchRemoteBranchesResponse\022\020\n\010branc" - + "hes\030\001 \003(\t\"\241\001\n\tWorkspace\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\003:\200\001\352A}\n!dataform.googleapis.com/Worksp" - + "ace\022Xprojects/{project}/locations/{locat" - + "ion}/repositories/{repository}/workspace" - + "s/{workspace}\"\260\001\n\025ListWorkspacesRequest\022" - + ":\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.google" - + "apis.com/Repository\022\026\n\tpage_size\030\002 \001(\005B\003" - + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\025\n\010order_by" - + "\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030\005 \001(\tB\003\340A\001\"\205\001\n\026Lis" - + "tWorkspacesResponse\022=\n\nworkspaces\030\001 \003(\0132" - + ").google.cloud.dataform.v1alpha2.Workspa" - + "ce\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"N\n\023GetWorkspaceRequest\0227\n\004name\030" - + "\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.com/W" - + "orkspace\"\262\001\n\026CreateWorkspaceRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis" - + ".com/Repository\022A\n\tworkspace\030\002 \001(\0132).goo" - + "gle.cloud.dataform.v1alpha2.WorkspaceB\003\340" - + "A\002\022\031\n\014workspace_id\030\003 \001(\tB\003\340A\002\"Q\n\026DeleteW" - + "orkspaceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!d" - + "ataform.googleapis.com/Workspace\"=\n\014Comm" - + "itAuthor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\032\n\remail_add" - + "ress\030\002 \001(\tB\003\340A\002\"\257\001\n\025PullGitCommitsReques" - + "t\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.google" - + "apis.com/Workspace\022\032\n\rremote_branch\030\002 \001(" - + "\tB\003\340A\001\022A\n\006author\030\003 \001(\0132,.google.cloud.da" - + "taform.v1alpha2.CommitAuthorB\003\340A\002\"l\n\025Pus" - + "hGitCommitsRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" - + "\n!dataform.googleapis.com/Workspace\022\032\n\rr" - + "emote_branch\030\002 \001(\tB\003\340A\001\"V\n\033FetchFileGitS" - + "tatusesRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!da" - + "taform.googleapis.com/Workspace\"\376\002\n\034Fetc" - + "hFileGitStatusesResponse\022t\n\030uncommitted_" - + "file_changes\030\001 \003(\0132R.google.cloud.datafo" - + "rm.v1alpha2.FetchFileGitStatusesResponse" - + ".UncommittedFileChange\032\347\001\n\025UncommittedFi" - + "leChange\022\014\n\004path\030\001 \001(\t\022g\n\005state\030\002 \001(\0162X." - + "google.cloud.dataform.v1alpha2.FetchFile" - + "GitStatusesResponse.UncommittedFileChang" - + "e.State\"W\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\t\n\005ADDED\020\001\022\013\n\007DELETED\020\002\022\014\n\010MODIFIED\020\003\022\021\n" - + "\rHAS_CONFLICTS\020\004\"q\n\032FetchGitAheadBehindR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.g" - + "oogleapis.com/Workspace\022\032\n\rremote_branch" - + "\030\002 \001(\tB\003\340A\001\"L\n\033FetchGitAheadBehindRespon" - + "se\022\025\n\rcommits_ahead\030\001 \001(\005\022\026\n\016commits_beh" - + "ind\030\002 \001(\005\"\314\001\n\035CommitWorkspaceChangesRequ" - + "est\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.goog" - + "leapis.com/Workspace\022A\n\006author\030\004 \001(\0132,.g" - + "oogle.cloud.dataform.v1alpha2.CommitAuth" - + "orB\003\340A\002\022\033\n\016commit_message\030\002 \001(\tB\003\340A\001\022\022\n\005" - + "paths\030\003 \003(\tB\003\340A\001\"\177\n\034ResetWorkspaceChange" - + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform" - + ".googleapis.com/Workspace\022\022\n\005paths\030\002 \003(\t" - + "B\003\340A\001\022\022\n\005clean\030\003 \001(\010B\003\340A\001\"g\n\024FetchFileDi" - + "ffRequest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!da" - + "taform.googleapis.com/Workspace\022\021\n\004path\030" - + "\002 \001(\tB\003\340A\002\"/\n\025FetchFileDiffResponse\022\026\n\016f" - + "ormatted_diff\030\001 \001(\t\"\241\001\n\035QueryDirectoryCo" - + "ntentsRequest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#" - + "\n!dataform.googleapis.com/Workspace\022\021\n\004p" - + "ath\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\004 \001(\tB\003\340A\001\"\343\001\n\036QueryDirecto" - + "ryContentsResponse\022h\n\021directory_entries\030" - + "\001 \003(\0132M.google.cloud.dataform.v1alpha2.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\"g\n\024MakeDirectoryRequest\022<\n" - + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googl" - + "eapis.com/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\"\027" - + "\n\025MakeDirectoryResponse\"i\n\026RemoveDirecto" - + "ryRequest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!da" - + "taform.googleapis.com/Workspace\022\021\n\004path\030" - + "\002 \001(\tB\003\340A\002\"~\n\024MoveDirectoryRequest\022<\n\two" - + "rkspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleap" - + "is.com/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\025\n\010n" - + "ew_path\030\003 \001(\tB\003\340A\002\"\027\n\025MoveDirectoryRespo" - + "nse\"b\n\017ReadFileRequest\022<\n\tworkspace\030\001 \001(" - + "\tB)\340A\002\372A#\n!dataform.googleapis.com/Works" - + "pace\022\021\n\004path\030\002 \001(\tB\003\340A\002\")\n\020ReadFileRespo" - + "nse\022\025\n\rfile_contents\030\001 \001(\014\"d\n\021RemoveFile" - + "Request\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!data" - + "form.googleapis.com/Workspace\022\021\n\004path\030\002 " - + "\001(\tB\003\340A\002\"y\n\017MoveFileRequest\022<\n\tworkspace" - + "\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.com/" - + "Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\025\n\010new_path" - + "\030\003 \001(\tB\003\340A\002\"\022\n\020MoveFileResponse\"z\n\020Write" - + "FileRequest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!" - + "dataform.googleapis.com/Workspace\022\021\n\004pat" - + "h\030\002 \001(\tB\003\340A\002\022\025\n\010contents\030\003 \001(\014B\003\340A\002\"\023\n\021W" - + "riteFileResponse\"Y\n\031InstallNpmPackagesRe" - + "quest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!datafo" - + "rm.googleapis.com/Workspace\"\034\n\032InstallNp" - + "mPackagesResponse\"\265\010\n\021CompilationResult\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\rgit_commitish\030\002 \001(" - + "\tB\003\340A\005H\000\022>\n\tworkspace\030\003 \001(\tB)\340A\005\372A#\n!dat" - + "aform.googleapis.com/WorkspaceH\000\022m\n\027code" - + "_compilation_config\030\004 \001(\0132G.google.cloud" - + ".dataform.v1alpha2.CompilationResult.Cod" - + "eCompilationConfigB\003\340A\005\022\"\n\025dataform_core" - + "_version\030\005 \001(\tB\003\340A\003\022c\n\022compilation_error" - + "s\030\006 \003(\0132B.google.cloud.dataform.v1alpha2" - + ".CompilationResult.CompilationErrorB\003\340A\003" - + "\032\371\002\n\025CodeCompilationConfig\022\035\n\020default_da" - + "tabase\030\001 \001(\tB\003\340A\001\022\033\n\016default_schema\030\002 \001(" - + "\tB\003\340A\001\022\035\n\020default_location\030\010 \001(\tB\003\340A\001\022\035\n" - + "\020assertion_schema\030\003 \001(\tB\003\340A\001\022d\n\004vars\030\004 \003" - + "(\0132Q.google.cloud.dataform.v1alpha2.Comp" - + "ilationResult.CodeCompilationConfig.Vars" - + "EntryB\003\340A\001\022\034\n\017database_suffix\030\005 \001(\tB\003\340A\001" - + "\022\032\n\rschema_suffix\030\006 \001(\tB\003\340A\001\022\031\n\014table_pr" - + "efix\030\007 \001(\tB\003\340A\001\032+\n\tVarsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\223\001\n\020CompilationErro" - + "r\022\024\n\007message\030\001 \001(\tB\003\340A\003\022\022\n\005stack\030\002 \001(\tB\003" - + "\340A\003\022\021\n\004path\030\003 \001(\tB\003\340A\003\022B\n\raction_target\030" - + "\004 \001(\0132&.google.cloud.dataform.v1alpha2.T" - + "argetB\003\340A\003:\232\001\352A\226\001\n)dataform.googleapis.c" - + "om/CompilationResult\022iprojects/{project}" - + "/locations/{location}/repositories/{repo" - + "sitory}/compilationResults/{compilation_" - + "result}B\010\n\006source\"\214\001\n\035ListCompilationRes" - + "ultsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"dat" - + "aform.googleapis.com/Repository\022\026\n\tpage_" - + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" - + "\"\236\001\n\036ListCompilationResultsResponse\022N\n\023c" - + "ompilation_results\030\001 \003(\01321.google.cloud." - + "dataform.v1alpha2.CompilationResult\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"^\n\033GetCompilationResultRequest\022?\n\004name" - + "\030\001 \001(\tB1\340A\002\372A+\n)dataform.googleapis.com/" - + "CompilationResult\"\260\001\n\036CreateCompilationR" - + "esultRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"da" - + "taform.googleapis.com/Repository\022R\n\022comp" - + "ilation_result\030\002 \001(\01321.google.cloud.data" - + "form.v1alpha2.CompilationResultB\003\340A\002\"8\n\006" - + "Target\022\020\n\010database\030\001 \001(\t\022\016\n\006schema\030\002 \001(\t" - + "\022\014\n\004name\030\003 \001(\t\"\354\002\n\022RelationDescriptor\022\023\n" - + "\013description\030\001 \001(\t\022T\n\007columns\030\002 \003(\0132C.go" - + "ogle.cloud.dataform.v1alpha2.RelationDes" - + "criptor.ColumnDescriptor\022_\n\017bigquery_lab" - + "els\030\003 \003(\0132F.google.cloud.dataform.v1alph" - + "a2.RelationDescriptor.BigqueryLabelsEntr" - + "y\032S\n\020ColumnDescriptor\022\014\n\004path\030\001 \003(\t\022\023\n\013d" - + "escription\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\"\344\021\n\027CompilationRes" - + "ultAction\0226\n\006target\030\001 \001(\0132&.google.cloud" - + ".dataform.v1alpha2.Target\022@\n\020canonical_t" - + "arget\030\002 \001(\0132&.google.cloud.dataform.v1al" - + "pha2.Target\022\021\n\tfile_path\030\003 \001(\t\022T\n\010relati" - + "on\030\004 \001(\0132@.google.cloud.dataform.v1alpha" - + "2.CompilationResultAction.RelationH\000\022X\n\n" - + "operations\030\005 \001(\0132B.google.cloud.dataform" - + ".v1alpha2.CompilationResultAction.Operat" - + "ionsH\000\022V\n\tassertion\030\006 \001(\0132A.google.cloud" - + ".dataform.v1alpha2.CompilationResultActi" - + "on.AssertionH\000\022Z\n\013declaration\030\007 \001(\0132C.go" - + "ogle.cloud.dataform.v1alpha2.Compilation" - + "ResultAction.DeclarationH\000\032\343\010\n\010Relation\022" - + "B\n\022dependency_targets\030\001 \003(\0132&.google.clo" - + "ud.dataform.v1alpha2.Target\022\020\n\010disabled\030" - + "\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022O\n\023relation_descript" - + "or\030\004 \001(\01322.google.cloud.dataform.v1alpha" - + "2.RelationDescriptor\022d\n\rrelation_type\030\005 " - + "\001(\0162M.google.cloud.dataform.v1alpha2.Com" - + "pilationResultAction.Relation.RelationTy" - + "pe\022\024\n\014select_query\030\006 \001(\t\022\026\n\016pre_operatio" - + "ns\030\007 \003(\t\022\027\n\017post_operations\030\010 \003(\t\022y\n\030inc" - + "remental_table_config\030\t \001(\0132W.google.clo" - + "ud.dataform.v1alpha2.CompilationResultAc" - + "tion.Relation.IncrementalTableConfig\022\034\n\024" - + "partition_expression\030\n \001(\t\022\033\n\023cluster_ex" - + "pressions\030\013 \003(\t\022!\n\031partition_expiration_" - + "days\030\014 \001(\005\022 \n\030require_partition_filter\030\r" - + " \001(\010\022s\n\022additional_options\030\016 \003(\0132W.googl" - + "e.cloud.dataform.v1alpha2.CompilationRes" - + "ultAction.Relation.AdditionalOptionsEntr" - + "y\032\330\001\n\026IncrementalTableConfig\022 \n\030incremen" - + "tal_select_query\030\001 \001(\t\022\030\n\020refresh_disabl" - + "ed\030\002 \001(\010\022\030\n\020unique_key_parts\030\003 \003(\t\022\037\n\027up" - + "date_partition_filter\030\004 \001(\t\022\"\n\032increment" - + "al_pre_operations\030\005 \003(\t\022#\n\033incremental_p" - + "ost_operations\030\006 \003(\t\0328\n\026AdditionalOption" - + "sEntry\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_UNSPECIF" - + "IED\020\000\022\t\n\005TABLE\020\001\022\010\n\004VIEW\020\002\022\025\n\021INCREMENTA" - + "L_TABLE\020\003\022\025\n\021MATERIALIZED_VIEW\020\004\032\346\001\n\nOpe" - + "rations\022B\n\022dependency_targets\030\001 \003(\0132&.go" - + "ogle.cloud.dataform.v1alpha2.Target\022\020\n\010d" - + "isabled\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022O\n\023relation_" - + "descriptor\030\006 \001(\01322.google.cloud.dataform" - + ".v1alpha2.RelationDescriptor\022\017\n\007queries\030" - + "\004 \003(\t\022\022\n\nhas_output\030\005 \001(\010\032\225\002\n\tAssertion\022" - + "B\n\022dependency_targets\030\001 \003(\0132&.google.clo" - + "ud.dataform.v1alpha2.Target\022=\n\rparent_ac" - + "tion\030\005 \001(\0132&.google.cloud.dataform.v1alp" - + "ha2.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\022O\n\023relation_des" - + "criptor\030\006 \001(\01322.google.cloud.dataform.v1" - + "alpha2.RelationDescriptor\032^\n\013Declaration" - + "\022O\n\023relation_descriptor\030\001 \001(\01322.google.c" - + "loud.dataform.v1alpha2.RelationDescripto" - + "rB\021\n\017compiled_object\"\255\001\n$QueryCompilatio" - + "nResultActionsRequest\022?\n\004name\030\001 \001(\tB1\340A\002" - + "\372A+\n)dataform.googleapis.com/Compilation" - + "Result\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" - + "oken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"\235\001\n" - + "%QueryCompilationResultActionsResponse\022[" - + "\n\032compilation_result_actions\030\001 \003(\01327.goo" - + "gle.cloud.dataform.v1alpha2.CompilationR" - + "esultAction\022\027\n\017next_page_token\030\002 \001(\t\"\361\006\n" - + "\022WorkflowInvocation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022M" - + "\n\022compilation_result\030\002 \001(\tB1\340A\005\372A+\n)data" - + "form.googleapis.com/CompilationResult\022c\n" - + "\021invocation_config\030\003 \001(\0132C.google.cloud." - + "dataform.v1alpha2.WorkflowInvocation.Inv" - + "ocationConfigB\003\340A\005\022L\n\005state\030\004 \001(\01628.goog" - + "le.cloud.dataform.v1alpha2.WorkflowInvoc" - + "ation.StateB\003\340A\003\0225\n\021invocation_timing\030\005 " - + "\001(\0132\025.google.type.IntervalB\003\340A\003\032\210\002\n\020Invo" - + "cationConfig\022E\n\020included_targets\030\001 \003(\0132&" - + ".google.cloud.dataform.v1alpha2.TargetB\003" - + "\340A\005\022\032\n\rincluded_tags\030\002 \003(\tB\003\340A\005\022-\n trans" - + "itive_dependencies_included\030\003 \001(\010B\003\340A\005\022+" - + "\n\036transitive_dependents_included\030\004 \001(\010B\003" - + "\340A\005\0225\n(fully_refresh_incremental_tables_" - + "enabled\030\005 \001(\010B\003\340A\005\"d\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\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/Workflo" - + "wInvocation\022kprojects/{project}/location" - + "s/{location}/repositories/{repository}/w" - + "orkflowInvocations/{workflow_invocation}" - + "\"\215\001\n\036ListWorkflowInvocationsRequest\022:\n\006p" - + "arent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis" - + ".com/Repository\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022" - + "\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\241\001\n\037ListWorkflo" - + "wInvocationsResponse\022P\n\024workflow_invocat" - + "ions\030\001 \003(\01322.google.cloud.dataform.v1alp" - + "ha2.WorkflowInvocation\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"`\n\034GetWorkf" - + "lowInvocationRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" - + "A,\n*dataform.googleapis.com/WorkflowInvo" - + "cation\"\263\001\n\037CreateWorkflowInvocationReque" - + "st\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.goo" - + "gleapis.com/Repository\022T\n\023workflow_invoc" - + "ation\030\002 \001(\01322.google.cloud.dataform.v1al" - + "pha2.WorkflowInvocationB\003\340A\002\"c\n\037DeleteWo" - + "rkflowInvocationRequest\022@\n\004name\030\001 \001(\tB2\340" - + "A\002\372A,\n*dataform.googleapis.com/WorkflowI" - + "nvocation\"c\n\037CancelWorkflowInvocationReq" - + "uest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dataform.goo" - + "gleapis.com/WorkflowInvocation\"\300\004\n\030Workf" - + "lowInvocationAction\022;\n\006target\030\001 \001(\0132&.go" - + "ogle.cloud.dataform.v1alpha2.TargetB\003\340A\003" - + "\022E\n\020canonical_target\030\002 \001(\0132&.google.clou" - + "d.dataform.v1alpha2.TargetB\003\340A\003\022R\n\005state" - + "\030\004 \001(\0162>.google.cloud.dataform.v1alpha2." - + "WorkflowInvocationAction.StateB\003\340A\003\022\033\n\016f" - + "ailure_reason\030\007 \001(\tB\003\340A\003\0225\n\021invocation_t" - + "iming\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022" - + "e\n\017bigquery_action\030\006 \001(\0132G.google.cloud." - + "dataform.v1alpha2.WorkflowInvocationActi" - + "on.BigQueryActionB\003\340A\003\032)\n\016BigQueryAction" - + "\022\027\n\nsql_script\030\001 \001(\tB\003\340A\003\"f\n\005State\022\013\n\007PE" - + "NDING\020\000\022\013\n\007RUNNING\020\001\022\013\n\007SKIPPED\020\002\022\014\n\010DIS" - + "ABLED\020\003\022\r\n\tSUCCEEDED\020\004\022\r\n\tCANCELLED\020\005\022\n\n" - + "\006FAILED\020\006\"\232\001\n%QueryWorkflowInvocationAct" - + "ionsRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dataf" - + "orm.googleapis.com/WorkflowInvocation\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" - + "\tB\003\340A\001\"\240\001\n&QueryWorkflowInvocationAction" - + "sResponse\022]\n\033workflow_invocation_actions" - + "\030\001 \003(\01328.google.cloud.dataform.v1alpha2." - + "WorkflowInvocationAction\022\027\n\017next_page_to" - + "ken\030\002 \001(\t2\255?\n\010Dataform\022\316\001\n\020ListRepositor" - + "ies\0227.google.cloud.dataform.v1alpha2.Lis" - + "tRepositoriesRequest\0328.google.cloud.data" - + "form.v1alpha2.ListRepositoriesResponse\"G" - + "\332A\006parent\202\323\344\223\0028\0226/v1alpha2/{parent=proje" - + "cts/*/locations/*}/repositories\022\270\001\n\rGetR" - + "epository\0224.google.cloud.dataform.v1alph" - + "a2.GetRepositoryRequest\032*.google.cloud.d" - + "ataform.v1alpha2.Repository\"E\332A\004name\202\323\344\223" - + "\0028\0226/v1alpha2/{name=projects/*/locations" - + "/*/repositories/*}\022\345\001\n\020CreateRepository\022" - + "7.google.cloud.dataform.v1alpha2.CreateR" - + "epositoryRequest\032*.google.cloud.dataform" - + ".v1alpha2.Repository\"l\332A\037parent,reposito" - + "ry,repository_id\202\323\344\223\002D\"6/v1alpha2/{paren" - + "t=projects/*/locations/*}/repositories:\n" - + "repository\022\347\001\n\020UpdateRepository\0227.google" - + ".cloud.dataform.v1alpha2.UpdateRepositor" - + "yRequest\032*.google.cloud.dataform.v1alpha" - + "2.Repository\"n\332A\026repository,update_mask\202" - + "\323\344\223\002O2A/v1alpha2/{repository.name=projec" - + "ts/*/locations/*/repositories/*}:\nreposi" - + "tory\022\252\001\n\020DeleteRepository\0227.google.cloud" - + ".dataform.v1alpha2.DeleteRepositoryReque" - + "st\032\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\002" - + "8*6/v1alpha2/{name=projects/*/locations/" - + "*/repositories/*}\022\342\001\n\023FetchRemoteBranche" - + "s\022:.google.cloud.dataform.v1alpha2.Fetch" - + "RemoteBranchesRequest\032;.google.cloud.dat" - + "aform.v1alpha2.FetchRemoteBranchesRespon" - + "se\"R\202\323\344\223\002L\022J/v1alpha2/{name=projects/*/l" - + "ocations/*/repositories/*}:fetchRemoteBr" - + "anches\022\325\001\n\016ListWorkspaces\0225.google.cloud" - + ".dataform.v1alpha2.ListWorkspacesRequest" - + "\0326.google.cloud.dataform.v1alpha2.ListWo" - + "rkspacesResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1al" - + "pha2/{parent=projects/*/locations/*/repo" - + "sitories/*}/workspaces\022\302\001\n\014GetWorkspace\022" - + "3.google.cloud.dataform.v1alpha2.GetWork" - + "spaceRequest\032).google.cloud.dataform.v1a" - + "lpha2.Workspace\"R\332A\004name\202\323\344\223\002E\022C/v1alpha" - + "2/{name=projects/*/locations/*/repositor" - + "ies/*/workspaces/*}\022\354\001\n\017CreateWorkspace\022" - + "6.google.cloud.dataform.v1alpha2.CreateW" - + "orkspaceRequest\032).google.cloud.dataform." - + "v1alpha2.Workspace\"v\332A\035parent,workspace," - + "workspace_id\202\323\344\223\002P\"C/v1alpha2/{parent=pr" - + "ojects/*/locations/*/repositories/*}/wor" - + "kspaces:\tworkspace\022\265\001\n\017DeleteWorkspace\0226" - + ".google.cloud.dataform.v1alpha2.DeleteWo" - + "rkspaceRequest\032\026.google.protobuf.Empty\"R" - + "\332A\004name\202\323\344\223\002E*C/v1alpha2/{name=projects/" - + "*/locations/*/repositories/*/workspaces/" - + "*}\022\363\001\n\022InstallNpmPackages\0229.google.cloud" - + ".dataform.v1alpha2.InstallNpmPackagesReq" - + "uest\032:.google.cloud.dataform.v1alpha2.In" - + "stallNpmPackagesResponse\"f\202\323\344\223\002`\"[/v1alp" - + "ha2/{workspace=projects/*/locations/*/re" - + "positories/*/workspaces/*}:installNpmPac" - + "kages:\001*\022\264\001\n\016PullGitCommits\0225.google.clo" - + "ud.dataform.v1alpha2.PullGitCommitsReque" - + "st\032\026.google.protobuf.Empty\"S\202\323\344\223\002M\"H/v1a" - + "lpha2/{name=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:pull:\001*\022\264\001\n\016Push" - + "GitCommits\0225.google.cloud.dataform.v1alp" - + "ha2.PushGitCommitsRequest\032\026.google.proto" - + "buf.Empty\"S\202\323\344\223\002M\"H/v1alpha2/{name=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}:push:\001*\022\363\001\n\024FetchFileGitStatuses\022" - + ";.google.cloud.dataform.v1alpha2.FetchFi" - + "leGitStatusesRequest\032<.google.cloud.data" - + "form.v1alpha2.FetchFileGitStatusesRespon" - + "se\"`\202\323\344\223\002Z\022X/v1alpha2/{name=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:" - + "fetchFileGitStatuses\022\357\001\n\023FetchGitAheadBe" - + "hind\022:.google.cloud.dataform.v1alpha2.Fe" - + "tchGitAheadBehindRequest\032;.google.cloud." - + "dataform.v1alpha2.FetchGitAheadBehindRes", - "ponse\"_\202\323\344\223\002Y\022W/v1alpha2/{name=projects/" - + "*/locations/*/repositories/*/workspaces/" - + "*}:fetchGitAheadBehind\022\306\001\n\026CommitWorkspa" - + "ceChanges\022=.google.cloud.dataform.v1alph" - + "a2.CommitWorkspaceChangesRequest\032\026.googl" - + "e.protobuf.Empty\"U\202\323\344\223\002O\"J/v1alpha2/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "workspaces/*}:commit:\001*\022\303\001\n\025ResetWorkspa" - + "ceChanges\022<.google.cloud.dataform.v1alph" - + "a2.ResetWorkspaceChangesRequest\032\026.google" - + ".protobuf.Empty\"T\202\323\344\223\002N\"I/v1alpha2/{name" - + "=projects/*/locations/*/repositories/*/w" - + "orkspaces/*}:reset:\001*\022\334\001\n\rFetchFileDiff\022" - + "4.google.cloud.dataform.v1alpha2.FetchFi" - + "leDiffRequest\0325.google.cloud.dataform.v1" - + "alpha2.FetchFileDiffResponse\"^\202\323\344\223\002X\022V/v" - + "1alpha2/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:fetchFile" - + "Diff\022\200\002\n\026QueryDirectoryContents\022=.google" - + ".cloud.dataform.v1alpha2.QueryDirectoryC" - + "ontentsRequest\032>.google.cloud.dataform.v" - + "1alpha2.QueryDirectoryContentsResponse\"g" - + "\202\323\344\223\002a\022_/v1alpha2/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}" - + ":queryDirectoryContents\022\337\001\n\rMakeDirector" - + "y\0224.google.cloud.dataform.v1alpha2.MakeD" - + "irectoryRequest\0325.google.cloud.dataform." - + "v1alpha2.MakeDirectoryResponse\"a\202\323\344\223\002[\"V" - + "/v1alpha2/{workspace=projects/*/location" - + "s/*/repositories/*/workspaces/*}:makeDir" - + "ectory:\001*\022\306\001\n\017RemoveDirectory\0226.google.c" - + "loud.dataform.v1alpha2.RemoveDirectoryRe" - + "quest\032\026.google.protobuf.Empty\"c\202\323\344\223\002]\"X/" - + "v1alpha2/{workspace=projects/*/locations" - + "/*/repositories/*/workspaces/*}:removeDi" - + "rectory:\001*\022\337\001\n\rMoveDirectory\0224.google.cl" - + "oud.dataform.v1alpha2.MoveDirectoryReque" - + "st\0325.google.cloud.dataform.v1alpha2.Move" - + "DirectoryResponse\"a\202\323\344\223\002[\"V/v1alpha2/{wo" - + "rkspace=projects/*/locations/*/repositor" - + "ies/*/workspaces/*}:moveDirectory:\001*\022\310\001\n" - + "\010ReadFile\022/.google.cloud.dataform.v1alph" - + "a2.ReadFileRequest\0320.google.cloud.datafo" - + "rm.v1alpha2.ReadFileResponse\"Y\202\323\344\223\002S\022Q/v" - + "1alpha2/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:readFile\022" - + "\267\001\n\nRemoveFile\0221.google.cloud.dataform.v" - + "1alpha2.RemoveFileRequest\032\026.google.proto" - + "buf.Empty\"^\202\323\344\223\002X\"S/v1alpha2/{workspace=" - + "projects/*/locations/*/repositories/*/wo" - + "rkspaces/*}:removeFile:\001*\022\313\001\n\010MoveFile\022/" - + ".google.cloud.dataform.v1alpha2.MoveFile" - + "Request\0320.google.cloud.dataform.v1alpha2" - + ".MoveFileResponse\"\\\202\323\344\223\002V\"Q/v1alpha2/{wo" - + "rkspace=projects/*/locations/*/repositor" - + "ies/*/workspaces/*}:moveFile:\001*\022\317\001\n\tWrit" - + "eFile\0220.google.cloud.dataform.v1alpha2.W" - + "riteFileRequest\0321.google.cloud.dataform." - + "v1alpha2.WriteFileResponse\"]\202\323\344\223\002W\"R/v1a" - + "lpha2/{workspace=projects/*/locations/*/" - + "repositories/*/workspaces/*}:writeFile:\001" - + "*\022\365\001\n\026ListCompilationResults\022=.google.cl" - + "oud.dataform.v1alpha2.ListCompilationRes" - + "ultsRequest\032>.google.cloud.dataform.v1al" - + "pha2.ListCompilationResultsResponse\"\\\332A\006" - + "parent\202\323\344\223\002M\022K/v1alpha2/{parent=projects" - + "/*/locations/*/repositories/*}/compilati" - + "onResults\022\342\001\n\024GetCompilationResult\022;.goo" - + "gle.cloud.dataform.v1alpha2.GetCompilati" - + "onResultRequest\0321.google.cloud.dataform." - + "v1alpha2.CompilationResult\"Z\332A\004name\202\323\344\223\002" - + "M\022K/v1alpha2/{name=projects/*/locations/" - + "*/repositories/*/compilationResults/*}\022\222" - + "\002\n\027CreateCompilationResult\022>.google.clou" - + "d.dataform.v1alpha2.CreateCompilationRes" - + "ultRequest\0321.google.cloud.dataform.v1alp" - + "ha2.CompilationResult\"\203\001\332A\031parent,compil" - + "ation_result\202\323\344\223\002a\"K/v1alpha2/{parent=pr" - + "ojects/*/locations/*/repositories/*}/com" - + "pilationResults:\022compilation_result\022\207\002\n\035" - + "QueryCompilationResultActions\022D.google.c" - + "loud.dataform.v1alpha2.QueryCompilationR" - + "esultActionsRequest\032E.google.cloud.dataf" - + "orm.v1alpha2.QueryCompilationResultActio" - + "nsResponse\"Y\202\323\344\223\002S\022Q/v1alpha2/{name=proj" - + "ects/*/locations/*/repositories/*/compil" - + "ationResults/*}:query\022\371\001\n\027ListWorkflowIn" - + "vocations\022>.google.cloud.dataform.v1alph" - + "a2.ListWorkflowInvocationsRequest\032?.goog" - + "le.cloud.dataform.v1alpha2.ListWorkflowI" - + "nvocationsResponse\"]\332A\006parent\202\323\344\223\002N\022L/v1" - + "alpha2/{parent=projects/*/locations/*/re" - + "positories/*}/workflowInvocations\022\346\001\n\025Ge" - + "tWorkflowInvocation\022<.google.cloud.dataf" - + "orm.v1alpha2.GetWorkflowInvocationReques" - + "t\0322.google.cloud.dataform.v1alpha2.Workf" - + "lowInvocation\"[\332A\004name\202\323\344\223\002N\022L/v1alpha2/" - + "{name=projects/*/locations/*/repositorie" - + "s/*/workflowInvocations/*}\022\230\002\n\030CreateWor" - + "kflowInvocation\022?.google.cloud.dataform." - + "v1alpha2.CreateWorkflowInvocationRequest" - + "\0322.google.cloud.dataform.v1alpha2.Workfl" - + "owInvocation\"\206\001\332A\032parent,workflow_invoca" - + "tion\202\323\344\223\002c\"L/v1alpha2/{parent=projects/*" - + "/locations/*/repositories/*}/workflowInv" - + "ocations:\023workflow_invocation\022\320\001\n\030Delete" - + "WorkflowInvocation\022?.google.cloud.datafo" - + "rm.v1alpha2.DeleteWorkflowInvocationRequ" - + "est\032\026.google.protobuf.Empty\"[\332A\004name\202\323\344\223" - + "\002N*L/v1alpha2/{name=projects/*/locations" - + "/*/repositories/*/workflowInvocations/*}" - + "\022\323\001\n\030CancelWorkflowInvocation\022?.google.c" - + "loud.dataform.v1alpha2.CancelWorkflowInv" - + "ocationRequest\032\026.google.protobuf.Empty\"^" - + "\202\323\344\223\002X\"S/v1alpha2/{name=projects/*/locat" - + "ions/*/repositories/*/workflowInvocation" - + "s/*}:cancel:\001*\022\213\002\n\036QueryWorkflowInvocati" - + "onActions\022E.google.cloud.dataform.v1alph" - + "a2.QueryWorkflowInvocationActionsRequest" - + "\032F.google.cloud.dataform.v1alpha2.QueryW" - + "orkflowInvocationActionsResponse\"Z\202\323\344\223\002T" - + "\022R/v1alpha2/{name=projects/*/locations/*" - + "/repositories/*/workflowInvocations/*}:q" - + "uery\032K\312A\027dataform.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\302\002\n\"com.google.cloud.dataform.v1alpha2" - + "B\rDataformProtoP\001Z>cloud.google.com/go/d" - + "ataform/apiv1alpha2/dataformpb;dataformp" - + "b\252\002\036Google.Cloud.Dataform.V1Alpha2\312\002\036Goo" - + "gle\\Cloud\\Dataform\\V1alpha2\352\002!Google::Cl" - + "oud::Dataform::V1alpha2\352Ad\n*secretmanage" - + "r.googleapis.com/SecretVersion\0226projects" - + "/{project}/secrets/{secret}/versions/{ve" - + "rsion}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.type.IntervalProto.getDescriptor(), - }); - internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataform_v1alpha2_Repository_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor, - new java.lang.String[] { - "Name", "GitRemoteSettings", - }); - internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor = - internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor, - new java.lang.String[] { - "Url", "DefaultBranch", "AuthenticationTokenSecretVersion", "TokenStatus", - }); - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor, - new java.lang.String[] { - "Repositories", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CreateRepositoryRequest_descriptor, - new java.lang.String[] { - "Parent", "Repository", "RepositoryId", - }); - internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Repository", - }); - internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_descriptor, - new java.lang.String[] { - "Branches", - }); - internal_static_google_cloud_dataform_v1alpha2_Workspace_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataform_v1alpha2_Workspace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_Workspace_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor, - new java.lang.String[] { - "Workspaces", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CreateWorkspaceRequest_descriptor, - new java.lang.String[] { - "Parent", "Workspace", "WorkspaceId", - }); - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CommitAuthor_descriptor, - new java.lang.String[] { - "Name", "EmailAddress", - }); - internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_descriptor, - new java.lang.String[] { - "Name", "RemoteBranch", "Author", - }); - internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_descriptor, - new java.lang.String[] { - "Name", "RemoteBranch", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor, - new java.lang.String[] { - "UncommittedFileChanges", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor = - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor, - new java.lang.String[] { - "Path", "State", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_descriptor, - new java.lang.String[] { - "Name", "RemoteBranch", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_descriptor, - new java.lang.String[] { - "CommitsAhead", "CommitsBehind", - }); - internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CommitWorkspaceChangesRequest_descriptor, - new java.lang.String[] { - "Name", "Author", "CommitMessage", "Paths", - }); - internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_descriptor, - new java.lang.String[] { - "Name", "Paths", "Clean", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", - }); - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_descriptor, - new java.lang.String[] { - "FormattedDiff", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor, - new java.lang.String[] { - "DirectoryEntries", "NextPageToken", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_descriptor = - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_descriptor, - new java.lang.String[] { - "File", "Directory", "Entry", - }); - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", - }); - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", - }); - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", "NewPath", - }); - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", - }); - internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_descriptor, - new java.lang.String[] { - "FileContents", - }); - internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", - }); - internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", "NewPath", - }); - internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_descriptor, - new java.lang.String[] { - "Workspace", "Path", "Contents", - }); - internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_descriptor, - new java.lang.String[] { - "Workspace", - }); - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor, - new java.lang.String[] { - "Name", - "GitCommitish", - "Workspace", - "CodeCompilationConfig", - "DataformCoreVersion", - "CompilationErrors", - "Source", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor, - new java.lang.String[] { - "DefaultDatabase", - "DefaultSchema", - "DefaultLocation", - "AssertionSchema", - "Vars", - "DatabaseSuffix", - "SchemaSuffix", - "TablePrefix", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_VarsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResult_CompilationError_descriptor, - new java.lang.String[] { - "Message", "Stack", "Path", "ActionTarget", - }); - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor, - new java.lang.String[] { - "CompilationResults", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CreateCompilationResultRequest_descriptor, - new java.lang.String[] { - "Parent", "CompilationResult", - }); - internal_static_google_cloud_dataform_v1alpha2_Target_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_cloud_dataform_v1alpha2_Target_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_Target_descriptor, - new java.lang.String[] { - "Database", "Schema", "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor, - new java.lang.String[] { - "Description", "Columns", "BigqueryLabels", - }); - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_descriptor = - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_descriptor, - new java.lang.String[] { - "Path", "Description", "BigqueryPolicyTags", - }); - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_BigqueryLabelsEntry_descriptor = - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_BigqueryLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_BigqueryLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor, - new java.lang.String[] { - "Target", - "CanonicalTarget", - "FilePath", - "Relation", - "Operations", - "Assertion", - "Declaration", - "CompiledObject", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor, - new java.lang.String[] { - "DependencyTargets", - "Disabled", - "Tags", - "RelationDescriptor", - "RelationType", - "SelectQuery", - "PreOperations", - "PostOperations", - "IncrementalTableConfig", - "PartitionExpression", - "ClusterExpressions", - "PartitionExpirationDays", - "RequirePartitionFilter", - "AdditionalOptions", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_IncrementalTableConfig_descriptor, - new java.lang.String[] { - "IncrementalSelectQuery", - "RefreshDisabled", - "UniqueKeyParts", - "UpdatePartitionFilter", - "IncrementalPreOperations", - "IncrementalPostOperations", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_AdditionalOptionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Operations_descriptor, - new java.lang.String[] { - "DependencyTargets", "Disabled", "Tags", "RelationDescriptor", "Queries", "HasOutput", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Assertion_descriptor, - new java.lang.String[] { - "DependencyTargets", - "ParentAction", - "Disabled", - "Tags", - "SelectQuery", - "RelationDescriptor", - }); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_descriptor = - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CompilationResultAction_Declaration_descriptor, - new java.lang.String[] { - "RelationDescriptor", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_descriptor, - new java.lang.String[] { - "CompilationResultActions", "NextPageToken", - }); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor, - new java.lang.String[] { - "Name", "CompilationResult", "InvocationConfig", "State", "InvocationTiming", - }); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor = - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor, - new java.lang.String[] { - "IncludedTargets", - "IncludedTags", - "TransitiveDependenciesIncluded", - "TransitiveDependentsIncluded", - "FullyRefreshIncrementalTablesEnabled", - }); - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor, - new java.lang.String[] { - "WorkflowInvocations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CreateWorkflowInvocationRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkflowInvocation", - }); - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_CancelWorkflowInvocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor, - new java.lang.String[] { - "Target", - "CanonicalTarget", - "State", - "FailureReason", - "InvocationTiming", - "BigqueryAction", - }); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor = - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor, - new java.lang.String[] { - "SqlScript", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor, - new java.lang.String[] { - "WorkflowInvocationActions", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.type.IntervalProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteRepositoryRequest.java deleted file mode 100644 index ba1fb2579c13..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteRepositoryRequest.java +++ /dev/null @@ -1,741 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `DeleteRepository` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.DeleteRepositoryRequest} - */ -public final class DeleteRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) - DeleteRepositoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteRepositoryRequest.newBuilder() to construct. - private DeleteRepositoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteRepositoryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteRepositoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.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 FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - /** - * - * - *
-   * If set to true, any child resources of this repository will also be
-   * deleted. (Otherwise, the request will only succeed if the repository has no
-   * child resources.)
-   * 
- * - * bool force = 2; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - 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 (force_ != false) { - output.writeBool(2, force_); - } - 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 (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); - } - 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.v1alpha2.DeleteRepositoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest other = - (com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest 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.v1alpha2.DeleteRepositoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest 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.v1alpha2.DeleteRepositoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest 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.v1alpha2.DeleteRepositoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest 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.v1alpha2.DeleteRepositoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest 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.v1alpha2.DeleteRepositoryRequest 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; - } - /** - * - * - *
-   * `DeleteRepository` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.DeleteRepositoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - force_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteRepositoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest build() { - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest result = - new com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.force_ = force_; - } - } - - @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.v1alpha2.DeleteRepositoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getForce() != false) { - setForce(other.getForce()); - } - 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: - { - force_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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 boolean force_; - /** - * - * - *
-     * If set to true, any child resources of this repository will also be
-     * deleted. (Otherwise, the request will only succeed if the repository has no
-     * child resources.)
-     * 
- * - * bool force = 2; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - /** - * - * - *
-     * If set to true, any child resources of this repository will also be
-     * deleted. (Otherwise, the request will only succeed if the repository has no
-     * child resources.)
-     * 
- * - * bool force = 2; - * - * @param value The force to set. - * @return This builder for chaining. - */ - public Builder setForce(boolean value) { - - force_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * If set to true, any child resources of this repository will also be
-     * deleted. (Otherwise, the request will only succeed if the repository has no
-     * child resources.)
-     * 
- * - * bool force = 2; - * - * @return This builder for chaining. - */ - public Builder clearForce() { - bitField0_ = (bitField0_ & ~0x00000002); - force_ = 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.v1alpha2.DeleteRepositoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) - private static final com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteRepositoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRepositoryRequest 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.v1alpha2.DeleteRepositoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteRepositoryRequestOrBuilder.java deleted file mode 100644 index 4e853999bb78..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteRepositoryRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface DeleteRepositoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.DeleteRepositoryRequest) - 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(); - - /** - * - * - *
-   * If set to true, any child resources of this repository will also be
-   * deleted. (Otherwise, the request will only succeed if the repository has no
-   * child resources.)
-   * 
- * - * bool force = 2; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkflowInvocationRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkflowInvocationRequest.java deleted file mode 100644 index dd37011a7b81..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkflowInvocationRequest.java +++ /dev/null @@ -1,652 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `DeleteWorkflowInvocation` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest} - */ -public final class DeleteWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) - DeleteWorkflowInvocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteWorkflowInvocationRequest.newBuilder() to construct. - private DeleteWorkflowInvocationRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteWorkflowInvocationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteWorkflowInvocationRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workflow invocation resource'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 invocation resource'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.v1alpha2.DeleteWorkflowInvocationRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest other = - (com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) 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.v1alpha2.DeleteWorkflowInvocationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest 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.v1alpha2.DeleteWorkflowInvocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest 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.v1alpha2.DeleteWorkflowInvocationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest 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.v1alpha2.DeleteWorkflowInvocationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - 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.v1alpha2.DeleteWorkflowInvocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest 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.v1alpha2.DeleteWorkflowInvocationRequest 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; - } - /** - * - * - *
-   * `DeleteWorkflowInvocation` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest build() { - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest result = - new com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest 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.v1alpha2.DeleteWorkflowInvocationRequest) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - .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 invocation resource'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 invocation resource'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 invocation resource'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 invocation resource'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 invocation resource'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.v1alpha2.DeleteWorkflowInvocationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) - private static final com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowInvocationRequest 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.v1alpha2.DeleteWorkflowInvocationRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkflowInvocationRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkflowInvocationRequestOrBuilder.java deleted file mode 100644 index 0d124e886080..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkflowInvocationRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface DeleteWorkflowInvocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.DeleteWorkflowInvocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workflow invocation resource's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workflow invocation resource'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkspaceRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkspaceRequest.java deleted file mode 100644 index dd1768bd5e72..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkspaceRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `DeleteWorkspace` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest} - */ -public final class DeleteWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) - DeleteWorkspaceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteWorkspaceRequest.newBuilder() to construct. - private DeleteWorkspaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteWorkspaceRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteWorkspaceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.class, - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace resource'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 workspace resource'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.v1alpha2.DeleteWorkspaceRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest other = - (com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) 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.v1alpha2.DeleteWorkspaceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest 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; - } - /** - * - * - *
-   * `DeleteWorkspace` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.class, - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_DeleteWorkspaceRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest build() { - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest result = - new com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest.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 workspace resource'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 workspace resource'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 workspace resource'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 workspace resource'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 workspace resource'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.v1alpha2.DeleteWorkspaceRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) - private static final com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkspaceRequest 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.v1alpha2.DeleteWorkspaceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkspaceRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkspaceRequestOrBuilder.java deleted file mode 100644 index 2a861143f0d3..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DeleteWorkspaceRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface DeleteWorkspaceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.DeleteWorkspaceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace resource's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace resource'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffRequest.java deleted file mode 100644 index 53d3fc868fd4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffRequest.java +++ /dev/null @@ -1,822 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchFileDiff` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileDiffRequest} - */ -public final class FetchFileDiffRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchFileDiffRequest) - FetchFileDiffRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchFileDiffRequest.newBuilder() to construct. - private FetchFileDiffRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchFileDiffRequest() { - workspace_ = ""; - path_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchFileDiffRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.class, - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.v1alpha2.FetchFileDiffRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest other = - (com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().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.v1alpha2.FetchFileDiffRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest 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.v1alpha2.FetchFileDiffRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest 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.v1alpha2.FetchFileDiffRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest 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.v1alpha2.FetchFileDiffRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest 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.v1alpha2.FetchFileDiffRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest 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.v1alpha2.FetchFileDiffRequest 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; - } - /** - * - * - *
-   * `FetchFileDiff` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileDiffRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchFileDiffRequest) - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.class, - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest build() { - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest result = - new com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 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.v1alpha2.FetchFileDiffRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = 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.lang.Object workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 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.v1alpha2.FetchFileDiffRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchFileDiffRequest) - private static final com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchFileDiffRequest 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.v1alpha2.FetchFileDiffRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffRequestOrBuilder.java deleted file mode 100644 index 75b9df1f0b83..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffRequestOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchFileDiffRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchFileDiffRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffResponse.java deleted file mode 100644 index 7569a77d805c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffResponse.java +++ /dev/null @@ -1,626 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchFileDiff` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileDiffResponse} - */ -public final class FetchFileDiffResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchFileDiffResponse) - FetchFileDiffResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchFileDiffResponse.newBuilder() to construct. - private FetchFileDiffResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchFileDiffResponse() { - formattedDiff_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchFileDiffResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.class, - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.Builder.class); - } - - public static final int FORMATTED_DIFF_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object formattedDiff_ = ""; - /** - * - * - *
-   * The raw formatted Git diff for the file.
-   * 
- * - * string formatted_diff = 1; - * - * @return The formattedDiff. - */ - @java.lang.Override - public java.lang.String getFormattedDiff() { - java.lang.Object ref = formattedDiff_; - 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(); - formattedDiff_ = s; - return s; - } - } - /** - * - * - *
-   * The raw formatted Git diff for the file.
-   * 
- * - * string formatted_diff = 1; - * - * @return The bytes for formattedDiff. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFormattedDiffBytes() { - java.lang.Object ref = formattedDiff_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - formattedDiff_ = 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(formattedDiff_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, formattedDiff_); - } - 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(formattedDiff_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, formattedDiff_); - } - 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.v1alpha2.FetchFileDiffResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse other = - (com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse) obj; - - if (!getFormattedDiff().equals(other.getFormattedDiff())) 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) + FORMATTED_DIFF_FIELD_NUMBER; - hash = (53 * hash) + getFormattedDiff().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse 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.v1alpha2.FetchFileDiffResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse 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.v1alpha2.FetchFileDiffResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse 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.v1alpha2.FetchFileDiffResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse 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.v1alpha2.FetchFileDiffResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse 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.v1alpha2.FetchFileDiffResponse 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; - } - /** - * - * - *
-   * `FetchFileDiff` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileDiffResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchFileDiffResponse) - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.class, - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - formattedDiff_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileDiffResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse build() { - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse result = - new com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.formattedDiff_ = formattedDiff_; - } - } - - @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.v1alpha2.FetchFileDiffResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse.getDefaultInstance()) - return this; - if (!other.getFormattedDiff().isEmpty()) { - formattedDiff_ = other.formattedDiff_; - 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: - { - formattedDiff_ = 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 formattedDiff_ = ""; - /** - * - * - *
-     * The raw formatted Git diff for the file.
-     * 
- * - * string formatted_diff = 1; - * - * @return The formattedDiff. - */ - public java.lang.String getFormattedDiff() { - java.lang.Object ref = formattedDiff_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - formattedDiff_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The raw formatted Git diff for the file.
-     * 
- * - * string formatted_diff = 1; - * - * @return The bytes for formattedDiff. - */ - public com.google.protobuf.ByteString getFormattedDiffBytes() { - java.lang.Object ref = formattedDiff_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - formattedDiff_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The raw formatted Git diff for the file.
-     * 
- * - * string formatted_diff = 1; - * - * @param value The formattedDiff to set. - * @return This builder for chaining. - */ - public Builder setFormattedDiff(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - formattedDiff_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The raw formatted Git diff for the file.
-     * 
- * - * string formatted_diff = 1; - * - * @return This builder for chaining. - */ - public Builder clearFormattedDiff() { - formattedDiff_ = getDefaultInstance().getFormattedDiff(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The raw formatted Git diff for the file.
-     * 
- * - * string formatted_diff = 1; - * - * @param value The bytes for formattedDiff to set. - * @return This builder for chaining. - */ - public Builder setFormattedDiffBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - formattedDiff_ = 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.v1alpha2.FetchFileDiffResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchFileDiffResponse) - private static final com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileDiffResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchFileDiffResponse 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.v1alpha2.FetchFileDiffResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffResponseOrBuilder.java deleted file mode 100644 index 8e01c4ea4fb4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileDiffResponseOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchFileDiffResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchFileDiffResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The raw formatted Git diff for the file.
-   * 
- * - * string formatted_diff = 1; - * - * @return The formattedDiff. - */ - java.lang.String getFormattedDiff(); - /** - * - * - *
-   * The raw formatted Git diff for the file.
-   * 
- * - * string formatted_diff = 1; - * - * @return The bytes for formattedDiff. - */ - com.google.protobuf.ByteString getFormattedDiffBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesRequest.java deleted file mode 100644 index 9c1566922e10..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesRequest.java +++ /dev/null @@ -1,646 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchFileGitStatuses` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest} - */ -public final class FetchFileGitStatusesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) - FetchFileGitStatusesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchFileGitStatusesRequest.newBuilder() to construct. - private FetchFileGitStatusesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchFileGitStatusesRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchFileGitStatusesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.class, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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.v1alpha2.FetchFileGitStatusesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest other = - (com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) 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.v1alpha2.FetchFileGitStatusesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest 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; - } - /** - * - * - *
-   * `FetchFileGitStatuses` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.class, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest build() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest result = - new com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest.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 workspace'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 workspace'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 workspace'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 workspace'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 workspace'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.v1alpha2.FetchFileGitStatusesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) - private static final com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchFileGitStatusesRequest 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.v1alpha2.FetchFileGitStatusesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesRequestOrBuilder.java deleted file mode 100644 index 21ffcac97416..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchFileGitStatusesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchFileGitStatusesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesResponse.java deleted file mode 100644 index 1f14d789c273..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesResponse.java +++ /dev/null @@ -1,2202 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchFileGitStatuses` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse} - */ -public final class FetchFileGitStatusesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse) - FetchFileGitStatusesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchFileGitStatusesResponse.newBuilder() to construct. - private FetchFileGitStatusesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchFileGitStatusesResponse() { - uncommittedFileChanges_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchFileGitStatusesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.class, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.Builder.class); - } - - public interface UncommittedFileChangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 1; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-     * The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 1; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); - - /** - * - * - *
-     * Indicates the status of the file.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-     * Indicates the status of the file.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return The state. - */ - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State - getState(); - } - /** - * - * - *
-   * Represents the Git state of a file with uncommitted changes.
-   * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange} - */ - public static final class UncommittedFileChange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) - UncommittedFileChangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use UncommittedFileChange.newBuilder() to construct. - private UncommittedFileChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UncommittedFileChange() { - path_ = ""; - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UncommittedFileChange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .class, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder.class); - } - - /** - * - * - *
-     * Indicates the status of an uncommitted file change.
-     * 
- * - * Protobuf enum {@code - * google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value. This value is unused.
-       * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-       * The file has been newly added.
-       * 
- * - * ADDED = 1; - */ - ADDED(1), - /** - * - * - *
-       * The file has been deleted.
-       * 
- * - * DELETED = 2; - */ - DELETED(2), - /** - * - * - *
-       * The file has been modified.
-       * 
- * - * MODIFIED = 3; - */ - MODIFIED(3), - /** - * - * - *
-       * The file contains merge conflicts.
-       * 
- * - * HAS_CONFLICTS = 4; - */ - HAS_CONFLICTS(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value. This value is unused.
-       * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The file has been newly added.
-       * 
- * - * ADDED = 1; - */ - public static final int ADDED_VALUE = 1; - /** - * - * - *
-       * The file has been deleted.
-       * 
- * - * DELETED = 2; - */ - public static final int DELETED_VALUE = 2; - /** - * - * - *
-       * The file has been modified.
-       * 
- * - * MODIFIED = 3; - */ - public static final int MODIFIED_VALUE = 3; - /** - * - * - *
-       * The file contains merge conflicts.
-       * 
- * - * HAS_CONFLICTS = 4; - */ - public static final int HAS_CONFLICTS_VALUE = 4; - - 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 State 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 State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ADDED; - case 2: - return DELETED; - case 3: - return MODIFIED; - case 4: - return HAS_CONFLICTS; - 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 State findValueByNumber(int number) { - return State.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.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final State[] VALUES = values(); - - public static State 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 State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State) - } - - public static final int PATH_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-     * The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 1; - * - * @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; - } - } - /** - * - * - *
-     * The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 1; - * - * @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 STATE_FIELD_NUMBER = 2; - private int state_ = 0; - /** - * - * - *
-     * Indicates the status of the file.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Indicates the status of the file.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State - getState() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State - result = - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State.forNumber(state_); - return result == null - ? com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State.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(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); - } - if (state_ - != com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State.STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, state_); - } - 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(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); - } - if (state_ - != com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - 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.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange other = - (com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) - obj; - - if (!getPath().equals(other.getPath())) return false; - if (state_ != other.state_) 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) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - 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.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - 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.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - 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.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - 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.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - 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.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - 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 Git state of a file with uncommitted changes.
-     * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange.class, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - path_ = ""; - state_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - build() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - result = - new com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.path_ = path_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.state_ = state_; - } - } - - @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.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .getDefaultInstance()) return this; - if (!other.getPath().isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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 path_ = ""; - /** - * - * - *
-       * The file's full path including filename, relative to the workspace root.
-       * 
- * - * string path = 1; - * - * @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; - } - } - /** - * - * - *
-       * The file's full path including filename, relative to the workspace root.
-       * 
- * - * string path = 1; - * - * @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; - } - } - /** - * - * - *
-       * The file's full path including filename, relative to the workspace root.
-       * 
- * - * string path = 1; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The file's full path including filename, relative to the workspace root.
-       * 
- * - * string path = 1; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * The file's full path including filename, relative to the workspace root.
-       * 
- * - * string path = 1; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-       * Indicates the status of the file.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-       * Indicates the status of the file.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Indicates the status of the file.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State - getState() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State - result = - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange.State.forNumber(state_); - return result == null - ? com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Indicates the status of the file.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .State - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Indicates the status of the file.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 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.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange) - private static final com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UncommittedFileChange 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.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int UNCOMMITTED_FILE_CHANGES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange> - uncommittedFileChanges_; - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange> - getUncommittedFileChangesList() { - return uncommittedFileChanges_; - } - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder> - getUncommittedFileChangesOrBuilderList() { - return uncommittedFileChanges_; - } - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - @java.lang.Override - public int getUncommittedFileChangesCount() { - return uncommittedFileChanges_.size(); - } - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - getUncommittedFileChanges(int index) { - return uncommittedFileChanges_.get(index); - } - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder - getUncommittedFileChangesOrBuilder(int index) { - return uncommittedFileChanges_.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 { - for (int i = 0; i < uncommittedFileChanges_.size(); i++) { - output.writeMessage(1, uncommittedFileChanges_.get(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 < uncommittedFileChanges_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, uncommittedFileChanges_.get(i)); - } - 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.v1alpha2.FetchFileGitStatusesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse other = - (com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse) obj; - - if (!getUncommittedFileChangesList().equals(other.getUncommittedFileChangesList())) - 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 (getUncommittedFileChangesCount() > 0) { - hash = (37 * hash) + UNCOMMITTED_FILE_CHANGES_FIELD_NUMBER; - hash = (53 * hash) + getUncommittedFileChangesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse 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.v1alpha2.FetchFileGitStatusesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse 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.v1alpha2.FetchFileGitStatusesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse 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.v1alpha2.FetchFileGitStatusesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse 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.v1alpha2.FetchFileGitStatusesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse 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.v1alpha2.FetchFileGitStatusesResponse 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; - } - /** - * - * - *
-   * `FetchFileGitStatuses` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse) - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.class, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (uncommittedFileChangesBuilder_ == null) { - uncommittedFileChanges_ = java.util.Collections.emptyList(); - } else { - uncommittedFileChanges_ = null; - uncommittedFileChangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchFileGitStatusesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse build() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse result = - new com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse result) { - if (uncommittedFileChangesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - uncommittedFileChanges_ = java.util.Collections.unmodifiableList(uncommittedFileChanges_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.uncommittedFileChanges_ = uncommittedFileChanges_; - } else { - result.uncommittedFileChanges_ = uncommittedFileChangesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse result) { - int from_bitField0_ = bitField0_; - } - - @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.v1alpha2.FetchFileGitStatusesResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.getDefaultInstance()) - return this; - if (uncommittedFileChangesBuilder_ == null) { - if (!other.uncommittedFileChanges_.isEmpty()) { - if (uncommittedFileChanges_.isEmpty()) { - uncommittedFileChanges_ = other.uncommittedFileChanges_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.addAll(other.uncommittedFileChanges_); - } - onChanged(); - } - } else { - if (!other.uncommittedFileChanges_.isEmpty()) { - if (uncommittedFileChangesBuilder_.isEmpty()) { - uncommittedFileChangesBuilder_.dispose(); - uncommittedFileChangesBuilder_ = null; - uncommittedFileChanges_ = other.uncommittedFileChanges_; - bitField0_ = (bitField0_ & ~0x00000001); - uncommittedFileChangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUncommittedFileChangesFieldBuilder() - : null; - } else { - uncommittedFileChangesBuilder_.addAllMessages(other.uncommittedFileChanges_); - } - } - } - 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.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange - m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange.parser(), - extensionRegistry); - if (uncommittedFileChangesBuilder_ == null) { - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.add(m); - } else { - uncommittedFileChangesBuilder_.addMessage(m); - } - 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.util.List< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange> - uncommittedFileChanges_ = java.util.Collections.emptyList(); - - private void ensureUncommittedFileChangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - uncommittedFileChanges_ = - new java.util.ArrayList< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange>(uncommittedFileChanges_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder> - uncommittedFileChangesBuilder_; - - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public java.util.List< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange> - getUncommittedFileChangesList() { - if (uncommittedFileChangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(uncommittedFileChanges_); - } else { - return uncommittedFileChangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public int getUncommittedFileChangesCount() { - if (uncommittedFileChangesBuilder_ == null) { - return uncommittedFileChanges_.size(); - } else { - return uncommittedFileChangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - getUncommittedFileChanges(int index) { - if (uncommittedFileChangesBuilder_ == null) { - return uncommittedFileChanges_.get(index); - } else { - return uncommittedFileChangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder setUncommittedFileChanges( - int index, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - value) { - if (uncommittedFileChangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.set(index, value); - onChanged(); - } else { - uncommittedFileChangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder setUncommittedFileChanges( - int index, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder - builderForValue) { - if (uncommittedFileChangesBuilder_ == null) { - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.set(index, builderForValue.build()); - onChanged(); - } else { - uncommittedFileChangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder addUncommittedFileChanges( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - value) { - if (uncommittedFileChangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.add(value); - onChanged(); - } else { - uncommittedFileChangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder addUncommittedFileChanges( - int index, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - value) { - if (uncommittedFileChangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.add(index, value); - onChanged(); - } else { - uncommittedFileChangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder addUncommittedFileChanges( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder - builderForValue) { - if (uncommittedFileChangesBuilder_ == null) { - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.add(builderForValue.build()); - onChanged(); - } else { - uncommittedFileChangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder addUncommittedFileChanges( - int index, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder - builderForValue) { - if (uncommittedFileChangesBuilder_ == null) { - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.add(index, builderForValue.build()); - onChanged(); - } else { - uncommittedFileChangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder addAllUncommittedFileChanges( - java.lang.Iterable< - ? extends - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange> - values) { - if (uncommittedFileChangesBuilder_ == null) { - ensureUncommittedFileChangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uncommittedFileChanges_); - onChanged(); - } else { - uncommittedFileChangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder clearUncommittedFileChanges() { - if (uncommittedFileChangesBuilder_ == null) { - uncommittedFileChanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - uncommittedFileChangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public Builder removeUncommittedFileChanges(int index) { - if (uncommittedFileChangesBuilder_ == null) { - ensureUncommittedFileChangesIsMutable(); - uncommittedFileChanges_.remove(index); - onChanged(); - } else { - uncommittedFileChangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder - getUncommittedFileChangesBuilder(int index) { - return getUncommittedFileChangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder - getUncommittedFileChangesOrBuilder(int index) { - if (uncommittedFileChangesBuilder_ == null) { - return uncommittedFileChanges_.get(index); - } else { - return uncommittedFileChangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder> - getUncommittedFileChangesOrBuilderList() { - if (uncommittedFileChangesBuilder_ != null) { - return uncommittedFileChangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(uncommittedFileChanges_); - } - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder - addUncommittedFileChangesBuilder() { - return getUncommittedFileChangesFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .getDefaultInstance()); - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder - addUncommittedFileChangesBuilder(int index) { - return getUncommittedFileChangesFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .getDefaultInstance()); - } - /** - * - * - *
-     * A list of all files which have uncommitted Git changes. There will only be
-     * a single entry for any given file.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - public java.util.List< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder> - getUncommittedFileChangesBuilderList() { - return getUncommittedFileChangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - .Builder, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder> - getUncommittedFileChangesFieldBuilder() { - if (uncommittedFileChangesBuilder_ == null) { - uncommittedFileChangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChange.Builder, - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder>( - uncommittedFileChanges_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - uncommittedFileChanges_ = null; - } - return uncommittedFileChangesBuilder_; - } - - @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.v1alpha2.FetchFileGitStatusesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse) - private static final com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchFileGitStatusesResponse 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.v1alpha2.FetchFileGitStatusesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesResponseOrBuilder.java deleted file mode 100644 index d5be6aa5b897..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchFileGitStatusesResponseOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchFileGitStatusesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - java.util.List< - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange> - getUncommittedFileChangesList(); - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange - getUncommittedFileChanges(int index); - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - int getUncommittedFileChangesCount(); - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse - .UncommittedFileChangeOrBuilder> - getUncommittedFileChangesOrBuilderList(); - /** - * - * - *
-   * A list of all files which have uncommitted Git changes. There will only be
-   * a single entry for any given file.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * - */ - com.google.cloud.dataform.v1alpha2.FetchFileGitStatusesResponse.UncommittedFileChangeOrBuilder - getUncommittedFileChangesOrBuilder(int index); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindRequest.java deleted file mode 100644 index 27b86dd627b6..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindRequest.java +++ /dev/null @@ -1,840 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchGitAheadBehind` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest} - */ -public final class FetchGitAheadBehindRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) - FetchGitAheadBehindRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchGitAheadBehindRequest.newBuilder() to construct. - private FetchGitAheadBehindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchGitAheadBehindRequest() { - name_ = ""; - remoteBranch_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchGitAheadBehindRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.class, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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 REMOTE_BRANCH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object remoteBranch_ = ""; - /** - * - * - *
-   * Optional. The name of the branch in the Git remote against which this workspace
-   * should be compared. If left unset, the repository's default branch name
-   * will be used.
-   * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The remoteBranch. - */ - @java.lang.Override - public java.lang.String getRemoteBranch() { - java.lang.Object ref = remoteBranch_; - 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(); - remoteBranch_ = s; - return s; - } - } - /** - * - * - *
-   * 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]; - * - * @return The bytes for remoteBranch. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRemoteBranchBytes() { - java.lang.Object ref = remoteBranch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteBranch_ = 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(remoteBranch_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteBranch_); - } - 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(remoteBranch_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteBranch_); - } - 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.v1alpha2.FetchGitAheadBehindRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest other = - (com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getRemoteBranch().equals(other.getRemoteBranch())) 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) + REMOTE_BRANCH_FIELD_NUMBER; - hash = (53 * hash) + getRemoteBranch().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest 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.v1alpha2.FetchGitAheadBehindRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest 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.v1alpha2.FetchGitAheadBehindRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest 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.v1alpha2.FetchGitAheadBehindRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest 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.v1alpha2.FetchGitAheadBehindRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest 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.v1alpha2.FetchGitAheadBehindRequest 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; - } - /** - * - * - *
-   * `FetchGitAheadBehind` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.class, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - remoteBranch_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest build() { - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest result = - new com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.remoteBranch_ = remoteBranch_; - } - } - - @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.v1alpha2.FetchGitAheadBehindRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRemoteBranch().isEmpty()) { - remoteBranch_ = other.remoteBranch_; - 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: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - remoteBranch_ = 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.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The workspace'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 workspace'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 workspace'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 workspace'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 workspace'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 remoteBranch_ = ""; - /** - * - * - *
-     * Optional. The name of the branch in the Git remote against which this workspace
-     * should be compared. If left unset, the repository's default branch name
-     * will be used.
-     * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The remoteBranch. - */ - public java.lang.String getRemoteBranch() { - java.lang.Object ref = remoteBranch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteBranch_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for remoteBranch. - */ - public com.google.protobuf.ByteString getRemoteBranchBytes() { - java.lang.Object ref = remoteBranch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteBranch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @param value The remoteBranch to set. - * @return This builder for chaining. - */ - public Builder setRemoteBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - remoteBranch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearRemoteBranch() { - remoteBranch_ = getDefaultInstance().getRemoteBranch(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes for remoteBranch to set. - * @return This builder for chaining. - */ - public Builder setRemoteBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - remoteBranch_ = 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.v1alpha2.FetchGitAheadBehindRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) - private static final com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchGitAheadBehindRequest 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.v1alpha2.FetchGitAheadBehindRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindRequestOrBuilder.java deleted file mode 100644 index dff580278fe9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindRequestOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchGitAheadBehindRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchGitAheadBehindRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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 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]; - * - * @return The remoteBranch. - */ - 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.
-   * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for remoteBranch. - */ - com.google.protobuf.ByteString getRemoteBranchBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindResponse.java deleted file mode 100644 index 558e52a25c34..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindResponse.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchGitAheadBehind` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse} - */ -public final class FetchGitAheadBehindResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse) - FetchGitAheadBehindResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchGitAheadBehindResponse.newBuilder() to construct. - private FetchGitAheadBehindResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchGitAheadBehindResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchGitAheadBehindResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.class, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.Builder.class); - } - - public static final int COMMITS_AHEAD_FIELD_NUMBER = 1; - private int commitsAhead_ = 0; - /** - * - * - *
-   * The number of commits in the remote branch that are not in the workspace.
-   * 
- * - * int32 commits_ahead = 1; - * - * @return The commitsAhead. - */ - @java.lang.Override - public int getCommitsAhead() { - return commitsAhead_; - } - - public static final int COMMITS_BEHIND_FIELD_NUMBER = 2; - private int commitsBehind_ = 0; - /** - * - * - *
-   * The number of commits in the workspace that are not in the remote branch.
-   * 
- * - * int32 commits_behind = 2; - * - * @return The commitsBehind. - */ - @java.lang.Override - public int getCommitsBehind() { - return commitsBehind_; - } - - 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 (commitsAhead_ != 0) { - output.writeInt32(1, commitsAhead_); - } - if (commitsBehind_ != 0) { - output.writeInt32(2, commitsBehind_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (commitsAhead_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, commitsAhead_); - } - if (commitsBehind_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, commitsBehind_); - } - 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.v1alpha2.FetchGitAheadBehindResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse other = - (com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse) obj; - - if (getCommitsAhead() != other.getCommitsAhead()) return false; - if (getCommitsBehind() != other.getCommitsBehind()) 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) + COMMITS_AHEAD_FIELD_NUMBER; - hash = (53 * hash) + getCommitsAhead(); - hash = (37 * hash) + COMMITS_BEHIND_FIELD_NUMBER; - hash = (53 * hash) + getCommitsBehind(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse 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.v1alpha2.FetchGitAheadBehindResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse 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.v1alpha2.FetchGitAheadBehindResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse 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.v1alpha2.FetchGitAheadBehindResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse 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.v1alpha2.FetchGitAheadBehindResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse 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.v1alpha2.FetchGitAheadBehindResponse 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; - } - /** - * - * - *
-   * `FetchGitAheadBehind` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse) - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.class, - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - commitsAhead_ = 0; - commitsBehind_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchGitAheadBehindResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse build() { - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse result = - new com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.commitsAhead_ = commitsAhead_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.commitsBehind_ = commitsBehind_; - } - } - - @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.v1alpha2.FetchGitAheadBehindResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse.getDefaultInstance()) - return this; - if (other.getCommitsAhead() != 0) { - setCommitsAhead(other.getCommitsAhead()); - } - if (other.getCommitsBehind() != 0) { - setCommitsBehind(other.getCommitsBehind()); - } - 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: - { - commitsAhead_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - commitsBehind_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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 commitsAhead_; - /** - * - * - *
-     * The number of commits in the remote branch that are not in the workspace.
-     * 
- * - * int32 commits_ahead = 1; - * - * @return The commitsAhead. - */ - @java.lang.Override - public int getCommitsAhead() { - return commitsAhead_; - } - /** - * - * - *
-     * The number of commits in the remote branch that are not in the workspace.
-     * 
- * - * int32 commits_ahead = 1; - * - * @param value The commitsAhead to set. - * @return This builder for chaining. - */ - public Builder setCommitsAhead(int value) { - - commitsAhead_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of commits in the remote branch that are not in the workspace.
-     * 
- * - * int32 commits_ahead = 1; - * - * @return This builder for chaining. - */ - public Builder clearCommitsAhead() { - bitField0_ = (bitField0_ & ~0x00000001); - commitsAhead_ = 0; - onChanged(); - return this; - } - - private int commitsBehind_; - /** - * - * - *
-     * The number of commits in the workspace that are not in the remote branch.
-     * 
- * - * int32 commits_behind = 2; - * - * @return The commitsBehind. - */ - @java.lang.Override - public int getCommitsBehind() { - return commitsBehind_; - } - /** - * - * - *
-     * The number of commits in the workspace that are not in the remote branch.
-     * 
- * - * int32 commits_behind = 2; - * - * @param value The commitsBehind to set. - * @return This builder for chaining. - */ - public Builder setCommitsBehind(int value) { - - commitsBehind_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of commits in the workspace that are not in the remote branch.
-     * 
- * - * int32 commits_behind = 2; - * - * @return This builder for chaining. - */ - public Builder clearCommitsBehind() { - bitField0_ = (bitField0_ & ~0x00000002); - commitsBehind_ = 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.v1alpha2.FetchGitAheadBehindResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse) - private static final com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchGitAheadBehindResponse 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.v1alpha2.FetchGitAheadBehindResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindResponseOrBuilder.java deleted file mode 100644 index d02724cfc543..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchGitAheadBehindResponseOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchGitAheadBehindResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchGitAheadBehindResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of commits in the remote branch that are not in the workspace.
-   * 
- * - * int32 commits_ahead = 1; - * - * @return The commitsAhead. - */ - int getCommitsAhead(); - - /** - * - * - *
-   * The number of commits in the workspace that are not in the remote branch.
-   * 
- * - * int32 commits_behind = 2; - * - * @return The commitsBehind. - */ - int getCommitsBehind(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesRequest.java deleted file mode 100644 index d9a4c197210d..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchRemoteBranches` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest} - */ -public final class FetchRemoteBranchesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) - FetchRemoteBranchesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchRemoteBranchesRequest.newBuilder() to construct. - private FetchRemoteBranchesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchRemoteBranchesRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchRemoteBranchesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.class, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.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.v1alpha2.FetchRemoteBranchesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest other = - (com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) 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.v1alpha2.FetchRemoteBranchesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest 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; - } - /** - * - * - *
-   * `FetchRemoteBranches` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.class, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest build() { - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest result = - new com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest.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.v1alpha2.FetchRemoteBranchesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) - private static final com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchRemoteBranchesRequest 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.v1alpha2.FetchRemoteBranchesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesRequestOrBuilder.java deleted file mode 100644 index 299a38c83ab7..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchRemoteBranchesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchRemoteBranchesRequest) - 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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesResponse.java deleted file mode 100644 index ea183ca563ac..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesResponse.java +++ /dev/null @@ -1,727 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `FetchRemoteBranches` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse} - */ -public final class FetchRemoteBranchesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse) - FetchRemoteBranchesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchRemoteBranchesResponse.newBuilder() to construct. - private FetchRemoteBranchesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchRemoteBranchesResponse() { - branches_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchRemoteBranchesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.class, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.Builder.class); - } - - public static final int BRANCHES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList branches_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @return A list containing the branches. - */ - public com.google.protobuf.ProtocolStringList getBranchesList() { - return branches_; - } - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @return The count of branches. - */ - public int getBranchesCount() { - return branches_.size(); - } - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @param index The index of the element to return. - * @return The branches at the given index. - */ - public java.lang.String getBranches(int index) { - return branches_.get(index); - } - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @param index The index of the value to return. - * @return The bytes of the branches at the given index. - */ - public com.google.protobuf.ByteString getBranchesBytes(int index) { - return branches_.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 < branches_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, branches_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < branches_.size(); i++) { - dataSize += computeStringSizeNoTag(branches_.getRaw(i)); - } - size += dataSize; - size += 1 * getBranchesList().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.v1alpha2.FetchRemoteBranchesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse other = - (com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse) obj; - - if (!getBranchesList().equals(other.getBranchesList())) 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 (getBranchesCount() > 0) { - hash = (37 * hash) + BRANCHES_FIELD_NUMBER; - hash = (53 * hash) + getBranchesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse 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.v1alpha2.FetchRemoteBranchesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse 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.v1alpha2.FetchRemoteBranchesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse 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.v1alpha2.FetchRemoteBranchesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse 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.v1alpha2.FetchRemoteBranchesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse 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.v1alpha2.FetchRemoteBranchesResponse 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; - } - /** - * - * - *
-   * `FetchRemoteBranches` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse) - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.class, - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - branches_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_FetchRemoteBranchesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse build() { - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse result = - new com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - branches_.makeImmutable(); - result.branches_ = branches_; - } - } - - @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.v1alpha2.FetchRemoteBranchesResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse.getDefaultInstance()) - return this; - if (!other.branches_.isEmpty()) { - if (branches_.isEmpty()) { - branches_ = other.branches_; - bitField0_ |= 0x00000001; - } else { - ensureBranchesIsMutable(); - branches_.addAll(other.branches_); - } - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureBranchesIsMutable(); - branches_.add(s); - 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.LazyStringArrayList branches_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureBranchesIsMutable() { - if (!branches_.isModifiable()) { - branches_ = new com.google.protobuf.LazyStringArrayList(branches_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @return A list containing the branches. - */ - public com.google.protobuf.ProtocolStringList getBranchesList() { - branches_.makeImmutable(); - return branches_; - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @return The count of branches. - */ - public int getBranchesCount() { - return branches_.size(); - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @param index The index of the element to return. - * @return The branches at the given index. - */ - public java.lang.String getBranches(int index) { - return branches_.get(index); - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @param index The index of the value to return. - * @return The bytes of the branches at the given index. - */ - public com.google.protobuf.ByteString getBranchesBytes(int index) { - return branches_.getByteString(index); - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @param index The index to set the value at. - * @param value The branches to set. - * @return This builder for chaining. - */ - public Builder setBranches(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBranchesIsMutable(); - branches_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @param value The branches to add. - * @return This builder for chaining. - */ - public Builder addBranches(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBranchesIsMutable(); - branches_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @param values The branches to add. - * @return This builder for chaining. - */ - public Builder addAllBranches(java.lang.Iterable values) { - ensureBranchesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, branches_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @return This builder for chaining. - */ - public Builder clearBranches() { - branches_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The remote repository's branch names.
-     * 
- * - * repeated string branches = 1; - * - * @param value The bytes of the branches to add. - * @return This builder for chaining. - */ - public Builder addBranchesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureBranchesIsMutable(); - branches_.add(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.v1alpha2.FetchRemoteBranchesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse) - private static final com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchRemoteBranchesResponse 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.v1alpha2.FetchRemoteBranchesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesResponseOrBuilder.java deleted file mode 100644 index c188ee9504cb..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/FetchRemoteBranchesResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface FetchRemoteBranchesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.FetchRemoteBranchesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @return A list containing the branches. - */ - java.util.List getBranchesList(); - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @return The count of branches. - */ - int getBranchesCount(); - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @param index The index of the element to return. - * @return The branches at the given index. - */ - java.lang.String getBranches(int index); - /** - * - * - *
-   * The remote repository's branch names.
-   * 
- * - * repeated string branches = 1; - * - * @param index The index of the value to return. - * @return The bytes of the branches at the given index. - */ - com.google.protobuf.ByteString getBranchesBytes(int index); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetCompilationResultRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetCompilationResultRequest.java deleted file mode 100644 index 5eebc0f30bb9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetCompilationResultRequest.java +++ /dev/null @@ -1,646 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `GetCompilationResult` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetCompilationResultRequest} - */ -public final class GetCompilationResultRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.GetCompilationResultRequest) - GetCompilationResultRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetCompilationResultRequest.newBuilder() to construct. - private GetCompilationResultRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetCompilationResultRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetCompilationResultRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.class, - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The compilation result'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 compilation result'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.v1alpha2.GetCompilationResultRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest other = - (com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest) 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.v1alpha2.GetCompilationResultRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest 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; - } - /** - * - * - *
-   * `GetCompilationResult` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetCompilationResultRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.GetCompilationResultRequest) - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.class, - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest build() { - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest result = - new com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest.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 compilation result'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 compilation result'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 compilation result'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 compilation result'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 compilation result'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.v1alpha2.GetCompilationResultRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.GetCompilationResultRequest) - private static final com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.GetCompilationResultRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCompilationResultRequest 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.v1alpha2.GetCompilationResultRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetCompilationResultRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetCompilationResultRequestOrBuilder.java deleted file mode 100644 index 401f37b80f66..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetCompilationResultRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface GetCompilationResultRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.GetCompilationResultRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The compilation result's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The compilation result'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetRepositoryRequest.java deleted file mode 100644 index 45b05b2c94e6..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetRepositoryRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `GetRepository` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetRepositoryRequest} - */ -public final class GetRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.GetRepositoryRequest) - GetRepositoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRepositoryRequest.newBuilder() to construct. - private GetRepositoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetRepositoryRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetRepositoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.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.v1alpha2.GetRepositoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest other = - (com.google.cloud.dataform.v1alpha2.GetRepositoryRequest) 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.v1alpha2.GetRepositoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest 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; - } - /** - * - * - *
-   * `GetRepository` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetRepositoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.GetRepositoryRequest) - com.google.cloud.dataform.v1alpha2.GetRepositoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetRepositoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetRepositoryRequest build() { - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetRepositoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.GetRepositoryRequest result = - new com.google.cloud.dataform.v1alpha2.GetRepositoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.GetRepositoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.GetRepositoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.GetRepositoryRequest.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.v1alpha2.GetRepositoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.GetRepositoryRequest) - private static final com.google.cloud.dataform.v1alpha2.GetRepositoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.GetRepositoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.GetRepositoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRepositoryRequest 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.v1alpha2.GetRepositoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetRepositoryRequestOrBuilder.java deleted file mode 100644 index 3959d9561400..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetRepositoryRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface GetRepositoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.GetRepositoryRequest) - 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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkflowInvocationRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkflowInvocationRequest.java deleted file mode 100644 index 7b6fa92d2e9f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkflowInvocationRequest.java +++ /dev/null @@ -1,647 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `GetWorkflowInvocation` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest} - */ -public final class GetWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) - GetWorkflowInvocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetWorkflowInvocationRequest.newBuilder() to construct. - private GetWorkflowInvocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetWorkflowInvocationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetWorkflowInvocationRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workflow invocation resource'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 invocation resource'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.v1alpha2.GetWorkflowInvocationRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest other = - (com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) 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.v1alpha2.GetWorkflowInvocationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest 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; - } - /** - * - * - *
-   * `GetWorkflowInvocation` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.class, - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest build() { - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest result = - new com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest.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 invocation resource'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 invocation resource'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 invocation resource'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 invocation resource'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 invocation resource'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.v1alpha2.GetWorkflowInvocationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) - private static final com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowInvocationRequest 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.v1alpha2.GetWorkflowInvocationRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkflowInvocationRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkflowInvocationRequestOrBuilder.java deleted file mode 100644 index b00d7667d74f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkflowInvocationRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface GetWorkflowInvocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.GetWorkflowInvocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workflow invocation resource's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workflow invocation resource'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkspaceRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkspaceRequest.java deleted file mode 100644 index 7505d8e75ef9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkspaceRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `GetWorkspace` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetWorkspaceRequest} - */ -public final class GetWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.GetWorkspaceRequest) - GetWorkspaceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetWorkspaceRequest.newBuilder() to construct. - private GetWorkspaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetWorkspaceRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetWorkspaceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.class, - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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.v1alpha2.GetWorkspaceRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest other = - (com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest) 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.v1alpha2.GetWorkspaceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest 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; - } - /** - * - * - *
-   * `GetWorkspace` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.GetWorkspaceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.GetWorkspaceRequest) - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.class, - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest build() { - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest result = - new com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest.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 workspace'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 workspace'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 workspace'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 workspace'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 workspace'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.v1alpha2.GetWorkspaceRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.GetWorkspaceRequest) - private static final com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.GetWorkspaceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkspaceRequest 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.v1alpha2.GetWorkspaceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkspaceRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkspaceRequestOrBuilder.java deleted file mode 100644 index 39c08cca6e2c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/GetWorkspaceRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface GetWorkspaceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.GetWorkspaceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesRequest.java deleted file mode 100644 index 8bc4c4cebbeb..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `InstallNpmPackages` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest} - */ -public final class InstallNpmPackagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) - InstallNpmPackagesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstallNpmPackagesRequest.newBuilder() to construct. - private InstallNpmPackagesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstallNpmPackagesRequest() { - workspace_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstallNpmPackagesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.class, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = 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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - 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.v1alpha2.InstallNpmPackagesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest other = - (com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest 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.v1alpha2.InstallNpmPackagesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest 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.v1alpha2.InstallNpmPackagesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest 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.v1alpha2.InstallNpmPackagesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest 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.v1alpha2.InstallNpmPackagesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest 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.v1alpha2.InstallNpmPackagesRequest 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; - } - /** - * - * - *
-   * `InstallNpmPackages` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.class, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest build() { - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest result = - new com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - } - - @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.v1alpha2.InstallNpmPackagesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - 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: - { - workspace_ = 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 workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = 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.v1alpha2.InstallNpmPackagesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) - private static final com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallNpmPackagesRequest 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.v1alpha2.InstallNpmPackagesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesRequestOrBuilder.java deleted file mode 100644 index 06ea31a6b5b1..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface InstallNpmPackagesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.InstallNpmPackagesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesResponse.java deleted file mode 100644 index 5b33c038216a..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesResponse.java +++ /dev/null @@ -1,436 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `InstallNpmPackages` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse} - */ -public final class InstallNpmPackagesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse) - InstallNpmPackagesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstallNpmPackagesResponse.newBuilder() to construct. - private InstallNpmPackagesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstallNpmPackagesResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstallNpmPackagesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.class, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.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.v1alpha2.InstallNpmPackagesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse other = - (com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse) 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.v1alpha2.InstallNpmPackagesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse 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.v1alpha2.InstallNpmPackagesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse 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.v1alpha2.InstallNpmPackagesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse 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.v1alpha2.InstallNpmPackagesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse 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.v1alpha2.InstallNpmPackagesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse 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.v1alpha2.InstallNpmPackagesResponse 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; - } - /** - * - * - *
-   * `InstallNpmPackages` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse) - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.class, - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_InstallNpmPackagesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse build() { - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse result = - new com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse(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.v1alpha2.InstallNpmPackagesResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse.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.v1alpha2.InstallNpmPackagesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse) - private static final com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallNpmPackagesResponse 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.v1alpha2.InstallNpmPackagesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesResponseOrBuilder.java deleted file mode 100644 index 23aa0d1f3a48..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/InstallNpmPackagesResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface InstallNpmPackagesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.InstallNpmPackagesResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsRequest.java deleted file mode 100644 index 94b43011fb97..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsRequest.java +++ /dev/null @@ -1,965 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListCompilationResults` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListCompilationResultsRequest} - */ -public final class ListCompilationResultsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) - ListCompilationResultsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListCompilationResultsRequest.newBuilder() to construct. - private ListCompilationResultsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListCompilationResultsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListCompilationResultsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.class, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.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 compilation results. 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 compilation results. 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 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]; - * - * @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 `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.
-   * 
- * - * 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 `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.
-   * 
- * - * 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.v1alpha2.ListCompilationResultsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest other = - (com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) 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.v1alpha2.ListCompilationResultsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest 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; - } - /** - * - * - *
-   * `ListCompilationResults` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListCompilationResultsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.class, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest build() { - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest result = - new com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest.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 compilation results. 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 compilation results. 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 compilation results. 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 compilation results. 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 compilation results. 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 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]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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]; - * - * @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 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]; - * - * @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 `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.
-     * 
- * - * 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 `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.
-     * 
- * - * 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 `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.
-     * 
- * - * 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 `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.
-     * 
- * - * 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 `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.
-     * 
- * - * 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.v1alpha2.ListCompilationResultsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) - private static final com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCompilationResultsRequest 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.v1alpha2.ListCompilationResultsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsRequestOrBuilder.java deleted file mode 100644 index 6b402eecb911..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsRequestOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListCompilationResultsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListCompilationResultsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for parent. - */ - 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
-   * appropriate default.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * 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.
-   * 
- * - * 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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java deleted file mode 100644 index 40ce6a608247..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java +++ /dev/null @@ -1,1455 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListCompilationResults` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListCompilationResultsResponse} - */ -public final class ListCompilationResultsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListCompilationResultsResponse) - ListCompilationResultsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListCompilationResultsResponse.newBuilder() to construct. - private ListCompilationResultsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListCompilationResultsResponse() { - compilationResults_ = 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 ListCompilationResultsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.class, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.Builder.class); - } - - public static final int COMPILATION_RESULTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List compilationResults_; - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - @java.lang.Override - public java.util.List - getCompilationResultsList() { - return compilationResults_; - } - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - @java.lang.Override - public java.util.List - getCompilationResultsOrBuilderList() { - return compilationResults_; - } - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - @java.lang.Override - public int getCompilationResultsCount() { - return compilationResults_.size(); - } - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResults(int index) { - return compilationResults_.get(index); - } - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder - getCompilationResultsOrBuilder(int index) { - return compilationResults_.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 < compilationResults_.size(); i++) { - output.writeMessage(1, compilationResults_.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 < compilationResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, compilationResults_.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.v1alpha2.ListCompilationResultsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse other = - (com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse) obj; - - if (!getCompilationResultsList().equals(other.getCompilationResultsList())) 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 (getCompilationResultsCount() > 0) { - hash = (37 * hash) + COMPILATION_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getCompilationResultsList().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.v1alpha2.ListCompilationResultsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse 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.v1alpha2.ListCompilationResultsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse 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.v1alpha2.ListCompilationResultsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse 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.v1alpha2.ListCompilationResultsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse - 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.v1alpha2.ListCompilationResultsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse 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.v1alpha2.ListCompilationResultsResponse 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; - } - /** - * - * - *
-   * `ListCompilationResults` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListCompilationResultsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListCompilationResultsResponse) - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.class, - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (compilationResultsBuilder_ == null) { - compilationResults_ = java.util.Collections.emptyList(); - } else { - compilationResults_ = null; - compilationResultsBuilder_.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse build() { - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse result = - new com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse result) { - if (compilationResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - compilationResults_ = java.util.Collections.unmodifiableList(compilationResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.compilationResults_ = compilationResults_; - } else { - result.compilationResults_ = compilationResultsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse 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.v1alpha2.ListCompilationResultsResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse.getDefaultInstance()) - return this; - if (compilationResultsBuilder_ == null) { - if (!other.compilationResults_.isEmpty()) { - if (compilationResults_.isEmpty()) { - compilationResults_ = other.compilationResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCompilationResultsIsMutable(); - compilationResults_.addAll(other.compilationResults_); - } - onChanged(); - } - } else { - if (!other.compilationResults_.isEmpty()) { - if (compilationResultsBuilder_.isEmpty()) { - compilationResultsBuilder_.dispose(); - compilationResultsBuilder_ = null; - compilationResults_ = other.compilationResults_; - bitField0_ = (bitField0_ & ~0x00000001); - compilationResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCompilationResultsFieldBuilder() - : null; - } else { - compilationResultsBuilder_.addAllMessages(other.compilationResults_); - } - } - } - 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.v1alpha2.CompilationResult m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.CompilationResult.parser(), - extensionRegistry); - if (compilationResultsBuilder_ == null) { - ensureCompilationResultsIsMutable(); - compilationResults_.add(m); - } else { - compilationResultsBuilder_.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 - compilationResults_ = java.util.Collections.emptyList(); - - private void ensureCompilationResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - compilationResults_ = - new java.util.ArrayList( - compilationResults_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder> - compilationResultsBuilder_; - - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public java.util.List - getCompilationResultsList() { - if (compilationResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(compilationResults_); - } else { - return compilationResultsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public int getCompilationResultsCount() { - if (compilationResultsBuilder_ == null) { - return compilationResults_.size(); - } else { - return compilationResultsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResults(int index) { - if (compilationResultsBuilder_ == null) { - return compilationResults_.get(index); - } else { - return compilationResultsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder setCompilationResults( - int index, com.google.cloud.dataform.v1alpha2.CompilationResult value) { - if (compilationResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationResultsIsMutable(); - compilationResults_.set(index, value); - onChanged(); - } else { - compilationResultsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder setCompilationResults( - int index, com.google.cloud.dataform.v1alpha2.CompilationResult.Builder builderForValue) { - if (compilationResultsBuilder_ == null) { - ensureCompilationResultsIsMutable(); - compilationResults_.set(index, builderForValue.build()); - onChanged(); - } else { - compilationResultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder addCompilationResults( - com.google.cloud.dataform.v1alpha2.CompilationResult value) { - if (compilationResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationResultsIsMutable(); - compilationResults_.add(value); - onChanged(); - } else { - compilationResultsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder addCompilationResults( - int index, com.google.cloud.dataform.v1alpha2.CompilationResult value) { - if (compilationResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationResultsIsMutable(); - compilationResults_.add(index, value); - onChanged(); - } else { - compilationResultsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder addCompilationResults( - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder builderForValue) { - if (compilationResultsBuilder_ == null) { - ensureCompilationResultsIsMutable(); - compilationResults_.add(builderForValue.build()); - onChanged(); - } else { - compilationResultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder addCompilationResults( - int index, com.google.cloud.dataform.v1alpha2.CompilationResult.Builder builderForValue) { - if (compilationResultsBuilder_ == null) { - ensureCompilationResultsIsMutable(); - compilationResults_.add(index, builderForValue.build()); - onChanged(); - } else { - compilationResultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder addAllCompilationResults( - java.lang.Iterable values) { - if (compilationResultsBuilder_ == null) { - ensureCompilationResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compilationResults_); - onChanged(); - } else { - compilationResultsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder clearCompilationResults() { - if (compilationResultsBuilder_ == null) { - compilationResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - compilationResultsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public Builder removeCompilationResults(int index) { - if (compilationResultsBuilder_ == null) { - ensureCompilationResultsIsMutable(); - compilationResults_.remove(index); - onChanged(); - } else { - compilationResultsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.Builder - getCompilationResultsBuilder(int index) { - return getCompilationResultsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder - getCompilationResultsOrBuilder(int index) { - if (compilationResultsBuilder_ == null) { - return compilationResults_.get(index); - } else { - return compilationResultsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public java.util.List - getCompilationResultsOrBuilderList() { - if (compilationResultsBuilder_ != null) { - return compilationResultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(compilationResults_); - } - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.Builder - addCompilationResultsBuilder() { - return getCompilationResultsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance()); - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResult.Builder - addCompilationResultsBuilder(int index) { - return getCompilationResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataform.v1alpha2.CompilationResult.getDefaultInstance()); - } - /** - * - * - *
-     * List of compilation results.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - public java.util.List - getCompilationResultsBuilderList() { - return getCompilationResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder> - getCompilationResultsFieldBuilder() { - if (compilationResultsBuilder_ == null) { - compilationResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResult, - com.google.cloud.dataform.v1alpha2.CompilationResult.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder>( - compilationResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - compilationResults_ = null; - } - return compilationResultsBuilder_; - } - - 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.v1alpha2.ListCompilationResultsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListCompilationResultsResponse) - private static final com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCompilationResultsResponse 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.v1alpha2.ListCompilationResultsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java deleted file mode 100644 index 9f20d1523fa9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListCompilationResultsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListCompilationResultsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - java.util.List getCompilationResultsList(); - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResult getCompilationResults(int index); - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - int getCompilationResultsCount(); - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - java.util.List - getCompilationResultsOrBuilderList(); - /** - * - * - *
-   * List of compilation results.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.CompilationResult compilation_results = 1; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder getCompilationResultsOrBuilder( - 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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesRequest.java deleted file mode 100644 index 172954d44fe9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesRequest.java +++ /dev/null @@ -1,1336 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListRepositories` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListRepositoriesRequest} - */ -public final class ListRepositoriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListRepositoriesRequest) - ListRepositoriesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRepositoriesRequest.newBuilder() to construct. - private ListRepositoriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRepositoriesRequest() { - parent_ = ""; - pageToken_ = ""; - orderBy_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRepositoriesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.class, - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The location in which to list repositories. Must be in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * 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 location in which to list repositories. Must be in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * 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 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]; - * - * @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 `ListRepositories` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListRepositories`
-   * must match the call that provided the page token.
-   * 
- * - * 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 `ListRepositories` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListRepositories`
-   * must match the call that provided the page token.
-   * 
- * - * 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; - } - } - - 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 - 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_); - } - 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); - } - - @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_); - } - 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; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest other = - (com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest) 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; - } - - @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 = (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; - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest 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.v1alpha2.ListRepositoriesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest 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.v1alpha2.ListRepositoriesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest 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.v1alpha2.ListRepositoriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest 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.v1alpha2.ListRepositoriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest 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.v1alpha2.ListRepositoriesRequest 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; - } - /** - * - * - *
-   * `ListRepositories` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListRepositoriesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListRepositoriesRequest) - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.class, - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.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_ = ""; - orderBy_ = ""; - filter_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest build() { - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest result = - new com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest 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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.orderBy_ = orderBy_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.filter_ = filter_; - } - } - - @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.v1alpha2.ListRepositoriesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest.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(); - } - 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; - } - - @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 - 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)) { - 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 location in which to list repositories. Must be in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * 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 location in which to list repositories. Must be in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * 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 location in which to list repositories. Must be in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * 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 location in which to list repositories. Must be in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * 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 location in which to list repositories. Must be in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * 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 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]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. Maximum number of repositories to return. The server may return fewer
-     * items than requested. If unspecified, the server will pick an appropriate
-     * default.
-     * 
- * - * 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 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]; - * - * @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 `ListRepositories` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListRepositories`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListRepositories` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListRepositories`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListRepositories` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListRepositories`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListRepositories` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListRepositories`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListRepositories` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListRepositories`
-     * must match the call that provided the page token.
-     * 
- * - * 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; - } - - 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); - } - - @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.v1alpha2.ListRepositoriesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListRepositoriesRequest) - private static final com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRepositoriesRequest 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.v1alpha2.ListRepositoriesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesRequestOrBuilder.java deleted file mode 100644 index 9cfe2afd2b46..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesRequestOrBuilder.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListRepositoriesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListRepositoriesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location in which to list repositories. Must be in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location in which to list repositories. Must be in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * 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 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]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Page token received from a previous `ListRepositories` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListRepositories`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. Page token received from a previous `ListRepositories` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListRepositories`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java deleted file mode 100644 index 2d0b3fc20409..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java +++ /dev/null @@ -1,1407 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListRepositories` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListRepositoriesResponse} - */ -public final class ListRepositoriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListRepositoriesResponse) - ListRepositoriesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRepositoriesResponse.newBuilder() to construct. - private ListRepositoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRepositoriesResponse() { - repositories_ = 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 ListRepositoriesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.class, - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.Builder.class); - } - - public static final int REPOSITORIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List repositories_; - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - @java.lang.Override - public java.util.List getRepositoriesList() { - return repositories_; - } - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - @java.lang.Override - public java.util.List - getRepositoriesOrBuilderList() { - return repositories_; - } - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - @java.lang.Override - public int getRepositoriesCount() { - return repositories_.size(); - } - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository getRepositories(int index) { - return repositories_.get(index); - } - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoriesOrBuilder( - int index) { - return repositories_.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 < repositories_.size(); i++) { - output.writeMessage(1, repositories_.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 < repositories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, repositories_.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.v1alpha2.ListRepositoriesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse other = - (com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse) obj; - - if (!getRepositoriesList().equals(other.getRepositoriesList())) 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 (getRepositoriesCount() > 0) { - hash = (37 * hash) + REPOSITORIES_FIELD_NUMBER; - hash = (53 * hash) + getRepositoriesList().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.v1alpha2.ListRepositoriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse 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; - } - /** - * - * - *
-   * `ListRepositories` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListRepositoriesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListRepositoriesResponse) - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.class, - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (repositoriesBuilder_ == null) { - repositories_ = java.util.Collections.emptyList(); - } else { - repositories_ = null; - repositoriesBuilder_.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse build() { - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse result = - new com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse result) { - if (repositoriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - repositories_ = java.util.Collections.unmodifiableList(repositories_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.repositories_ = repositories_; - } else { - result.repositories_ = repositoriesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse.getDefaultInstance()) - return this; - if (repositoriesBuilder_ == null) { - if (!other.repositories_.isEmpty()) { - if (repositories_.isEmpty()) { - repositories_ = other.repositories_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRepositoriesIsMutable(); - repositories_.addAll(other.repositories_); - } - onChanged(); - } - } else { - if (!other.repositories_.isEmpty()) { - if (repositoriesBuilder_.isEmpty()) { - repositoriesBuilder_.dispose(); - repositoriesBuilder_ = null; - repositories_ = other.repositories_; - bitField0_ = (bitField0_ & ~0x00000001); - repositoriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRepositoriesFieldBuilder() - : null; - } else { - repositoriesBuilder_.addAllMessages(other.repositories_); - } - } - } - 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.v1alpha2.Repository m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.Repository.parser(), extensionRegistry); - if (repositoriesBuilder_ == null) { - ensureRepositoriesIsMutable(); - repositories_.add(m); - } else { - repositoriesBuilder_.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 repositories_ = - java.util.Collections.emptyList(); - - private void ensureRepositoriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - repositories_ = - new java.util.ArrayList(repositories_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder> - repositoriesBuilder_; - - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public java.util.List getRepositoriesList() { - if (repositoriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(repositories_); - } else { - return repositoriesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public int getRepositoriesCount() { - if (repositoriesBuilder_ == null) { - return repositories_.size(); - } else { - return repositoriesBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public com.google.cloud.dataform.v1alpha2.Repository getRepositories(int index) { - if (repositoriesBuilder_ == null) { - return repositories_.get(index); - } else { - return repositoriesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder setRepositories(int index, com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepositoriesIsMutable(); - repositories_.set(index, value); - onChanged(); - } else { - repositoriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder setRepositories( - int index, com.google.cloud.dataform.v1alpha2.Repository.Builder builderForValue) { - if (repositoriesBuilder_ == null) { - ensureRepositoriesIsMutable(); - repositories_.set(index, builderForValue.build()); - onChanged(); - } else { - repositoriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder addRepositories(com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepositoriesIsMutable(); - repositories_.add(value); - onChanged(); - } else { - repositoriesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder addRepositories(int index, com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepositoriesIsMutable(); - repositories_.add(index, value); - onChanged(); - } else { - repositoriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder addRepositories( - com.google.cloud.dataform.v1alpha2.Repository.Builder builderForValue) { - if (repositoriesBuilder_ == null) { - ensureRepositoriesIsMutable(); - repositories_.add(builderForValue.build()); - onChanged(); - } else { - repositoriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder addRepositories( - int index, com.google.cloud.dataform.v1alpha2.Repository.Builder builderForValue) { - if (repositoriesBuilder_ == null) { - ensureRepositoriesIsMutable(); - repositories_.add(index, builderForValue.build()); - onChanged(); - } else { - repositoriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder addAllRepositories( - java.lang.Iterable values) { - if (repositoriesBuilder_ == null) { - ensureRepositoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, repositories_); - onChanged(); - } else { - repositoriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder clearRepositories() { - if (repositoriesBuilder_ == null) { - repositories_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - repositoriesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public Builder removeRepositories(int index) { - if (repositoriesBuilder_ == null) { - ensureRepositoriesIsMutable(); - repositories_.remove(index); - onChanged(); - } else { - repositoriesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public com.google.cloud.dataform.v1alpha2.Repository.Builder getRepositoriesBuilder(int index) { - return getRepositoriesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoriesOrBuilder( - int index) { - if (repositoriesBuilder_ == null) { - return repositories_.get(index); - } else { - return repositoriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public java.util.List - getRepositoriesOrBuilderList() { - if (repositoriesBuilder_ != null) { - return repositoriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(repositories_); - } - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public com.google.cloud.dataform.v1alpha2.Repository.Builder addRepositoriesBuilder() { - return getRepositoriesFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance()); - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public com.google.cloud.dataform.v1alpha2.Repository.Builder addRepositoriesBuilder(int index) { - return getRepositoriesFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance()); - } - /** - * - * - *
-     * List of repositories.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - public java.util.List - getRepositoriesBuilderList() { - return getRepositoriesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder> - getRepositoriesFieldBuilder() { - if (repositoriesBuilder_ == null) { - repositoriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder>( - repositories_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - repositories_ = null; - } - return repositoriesBuilder_; - } - - 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.v1alpha2.ListRepositoriesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListRepositoriesResponse) - private static final com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRepositoriesResponse 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.v1alpha2.ListRepositoriesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java deleted file mode 100644 index 548ed950eaa5..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListRepositoriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListRepositoriesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - java.util.List getRepositoriesList(); - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - com.google.cloud.dataform.v1alpha2.Repository getRepositories(int index); - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - int getRepositoriesCount(); - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - java.util.List - getRepositoriesOrBuilderList(); - /** - * - * - *
-   * List of repositories.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Repository repositories = 1; - */ - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoriesOrBuilder(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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsRequest.java deleted file mode 100644 index b429d52913a1..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsRequest.java +++ /dev/null @@ -1,968 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListWorkflowInvocations` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest} - */ -public final class ListWorkflowInvocationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) - ListWorkflowInvocationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkflowInvocationsRequest.newBuilder() to construct. - private ListWorkflowInvocationsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkflowInvocationsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWorkflowInvocationsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.class, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @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 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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @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.v1alpha2.ListWorkflowInvocationsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest other = - (com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) 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.v1alpha2.ListWorkflowInvocationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest 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.v1alpha2.ListWorkflowInvocationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest 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.v1alpha2.ListWorkflowInvocationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest 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.v1alpha2.ListWorkflowInvocationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest - 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.v1alpha2.ListWorkflowInvocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest 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.v1alpha2.ListWorkflowInvocationsRequest 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; - } - /** - * - * - *
-   * `ListWorkflowInvocations` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.class, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest build() { - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest result = - new com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest 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.v1alpha2.ListWorkflowInvocationsRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest.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 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @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 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) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * 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) = { ... } - * - * - * @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 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]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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]; - * - * @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 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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @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.v1alpha2.ListWorkflowInvocationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) - private static final com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowInvocationsRequest 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.v1alpha2.ListWorkflowInvocationsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsRequestOrBuilder.java deleted file mode 100644 index b14f4d1deac1..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsRequestOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListWorkflowInvocationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for parent. - */ - 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
-   * appropriate default.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * 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]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * 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]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java deleted file mode 100644 index a4f1784a83fe..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java +++ /dev/null @@ -1,1459 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListWorkflowInvocations` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse} - */ -public final class ListWorkflowInvocationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse) - ListWorkflowInvocationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkflowInvocationsResponse.newBuilder() to construct. - private ListWorkflowInvocationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkflowInvocationsResponse() { - workflowInvocations_ = 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 ListWorkflowInvocationsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse.class, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse.Builder.class); - } - - public static final int WORKFLOW_INVOCATIONS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - workflowInvocations_; - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - @java.lang.Override - public java.util.List - getWorkflowInvocationsList() { - return workflowInvocations_; - } - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - @java.lang.Override - public java.util.List - getWorkflowInvocationsOrBuilderList() { - return workflowInvocations_; - } - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - @java.lang.Override - public int getWorkflowInvocationsCount() { - return workflowInvocations_.size(); - } - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocations(int index) { - return workflowInvocations_.get(index); - } - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder - getWorkflowInvocationsOrBuilder(int index) { - return workflowInvocations_.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 < workflowInvocations_.size(); i++) { - output.writeMessage(1, workflowInvocations_.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 < workflowInvocations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflowInvocations_.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.v1alpha2.ListWorkflowInvocationsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse other = - (com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse) obj; - - if (!getWorkflowInvocationsList().equals(other.getWorkflowInvocationsList())) 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 (getWorkflowInvocationsCount() > 0) { - hash = (37 * hash) + WORKFLOW_INVOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowInvocationsList().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.v1alpha2.ListWorkflowInvocationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse 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.v1alpha2.ListWorkflowInvocationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse 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.v1alpha2.ListWorkflowInvocationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse 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.v1alpha2.ListWorkflowInvocationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - 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.v1alpha2.ListWorkflowInvocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse 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.v1alpha2.ListWorkflowInvocationsResponse 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; - } - /** - * - * - *
-   * `ListWorkflowInvocations` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse) - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse.class, - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (workflowInvocationsBuilder_ == null) { - workflowInvocations_ = java.util.Collections.emptyList(); - } else { - workflowInvocations_ = null; - workflowInvocationsBuilder_.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse build() { - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse result = - new com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse result) { - if (workflowInvocationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - workflowInvocations_ = java.util.Collections.unmodifiableList(workflowInvocations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.workflowInvocations_ = workflowInvocations_; - } else { - result.workflowInvocations_ = workflowInvocationsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse 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.v1alpha2.ListWorkflowInvocationsResponse) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - .getDefaultInstance()) return this; - if (workflowInvocationsBuilder_ == null) { - if (!other.workflowInvocations_.isEmpty()) { - if (workflowInvocations_.isEmpty()) { - workflowInvocations_ = other.workflowInvocations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.addAll(other.workflowInvocations_); - } - onChanged(); - } - } else { - if (!other.workflowInvocations_.isEmpty()) { - if (workflowInvocationsBuilder_.isEmpty()) { - workflowInvocationsBuilder_.dispose(); - workflowInvocationsBuilder_ = null; - workflowInvocations_ = other.workflowInvocations_; - bitField0_ = (bitField0_ & ~0x00000001); - workflowInvocationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkflowInvocationsFieldBuilder() - : null; - } else { - workflowInvocationsBuilder_.addAllMessages(other.workflowInvocations_); - } - } - } - 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.v1alpha2.WorkflowInvocation m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.parser(), - extensionRegistry); - if (workflowInvocationsBuilder_ == null) { - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.add(m); - } else { - workflowInvocationsBuilder_.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 - workflowInvocations_ = java.util.Collections.emptyList(); - - private void ensureWorkflowInvocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - workflowInvocations_ = - new java.util.ArrayList( - workflowInvocations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder> - workflowInvocationsBuilder_; - - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public java.util.List - getWorkflowInvocationsList() { - if (workflowInvocationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(workflowInvocations_); - } else { - return workflowInvocationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public int getWorkflowInvocationsCount() { - if (workflowInvocationsBuilder_ == null) { - return workflowInvocations_.size(); - } else { - return workflowInvocationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocations(int index) { - if (workflowInvocationsBuilder_ == null) { - return workflowInvocations_.get(index); - } else { - return workflowInvocationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder setWorkflowInvocations( - int index, com.google.cloud.dataform.v1alpha2.WorkflowInvocation value) { - if (workflowInvocationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.set(index, value); - onChanged(); - } else { - workflowInvocationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder setWorkflowInvocations( - int index, com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder builderForValue) { - if (workflowInvocationsBuilder_ == null) { - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.set(index, builderForValue.build()); - onChanged(); - } else { - workflowInvocationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder addWorkflowInvocations( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation value) { - if (workflowInvocationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.add(value); - onChanged(); - } else { - workflowInvocationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder addWorkflowInvocations( - int index, com.google.cloud.dataform.v1alpha2.WorkflowInvocation value) { - if (workflowInvocationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.add(index, value); - onChanged(); - } else { - workflowInvocationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder addWorkflowInvocations( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder builderForValue) { - if (workflowInvocationsBuilder_ == null) { - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.add(builderForValue.build()); - onChanged(); - } else { - workflowInvocationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder addWorkflowInvocations( - int index, com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder builderForValue) { - if (workflowInvocationsBuilder_ == null) { - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.add(index, builderForValue.build()); - onChanged(); - } else { - workflowInvocationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder addAllWorkflowInvocations( - java.lang.Iterable - values) { - if (workflowInvocationsBuilder_ == null) { - ensureWorkflowInvocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflowInvocations_); - onChanged(); - } else { - workflowInvocationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder clearWorkflowInvocations() { - if (workflowInvocationsBuilder_ == null) { - workflowInvocations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - workflowInvocationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public Builder removeWorkflowInvocations(int index) { - if (workflowInvocationsBuilder_ == null) { - ensureWorkflowInvocationsIsMutable(); - workflowInvocations_.remove(index); - onChanged(); - } else { - workflowInvocationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder - getWorkflowInvocationsBuilder(int index) { - return getWorkflowInvocationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder - getWorkflowInvocationsOrBuilder(int index) { - if (workflowInvocationsBuilder_ == null) { - return workflowInvocations_.get(index); - } else { - return workflowInvocationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public java.util.List - getWorkflowInvocationsOrBuilderList() { - if (workflowInvocationsBuilder_ != null) { - return workflowInvocationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workflowInvocations_); - } - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder - addWorkflowInvocationsBuilder() { - return getWorkflowInvocationsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance()); - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder - addWorkflowInvocationsBuilder(int index) { - return getWorkflowInvocationsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance()); - } - /** - * - * - *
-     * List of workflow invocations.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - public java.util.List - getWorkflowInvocationsBuilderList() { - return getWorkflowInvocationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder> - getWorkflowInvocationsFieldBuilder() { - if (workflowInvocationsBuilder_ == null) { - workflowInvocationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder>( - workflowInvocations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - workflowInvocations_ = null; - } - return workflowInvocationsBuilder_; - } - - 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.v1alpha2.ListWorkflowInvocationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse) - private static final com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowInvocationsResponse 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.v1alpha2.ListWorkflowInvocationsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java deleted file mode 100644 index ac26be456099..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListWorkflowInvocationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - java.util.List - getWorkflowInvocationsList(); - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocation getWorkflowInvocations(int index); - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - int getWorkflowInvocationsCount(); - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - java.util.List - getWorkflowInvocationsOrBuilderList(); - /** - * - * - *
-   * List of workflow invocations.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocation workflow_invocations = 1; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder getWorkflowInvocationsOrBuilder( - 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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesRequest.java deleted file mode 100644 index b32daca6f271..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesRequest.java +++ /dev/null @@ -1,1336 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListWorkspaces` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkspacesRequest} - */ -public final class ListWorkspacesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListWorkspacesRequest) - ListWorkspacesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkspacesRequest.newBuilder() to construct. - private ListWorkspacesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkspacesRequest() { - parent_ = ""; - pageToken_ = ""; - orderBy_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWorkspacesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.class, - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.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 workspaces. 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 workspaces. 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 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]; - * - * @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 `ListWorkspaces` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListWorkspaces`
-   * must match the call that provided the page token.
-   * 
- * - * 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 `ListWorkspaces` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListWorkspaces`
-   * must match the call that provided the page token.
-   * 
- * - * 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; - } - } - - 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 - 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_); - } - 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); - } - - @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_); - } - 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; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest other = - (com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest) 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; - } - - @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 = (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; - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest 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.v1alpha2.ListWorkspacesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest 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.v1alpha2.ListWorkspacesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest 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.v1alpha2.ListWorkspacesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest 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.v1alpha2.ListWorkspacesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest 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.v1alpha2.ListWorkspacesRequest 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; - } - /** - * - * - *
-   * `ListWorkspaces` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkspacesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListWorkspacesRequest) - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.class, - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.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_ = ""; - orderBy_ = ""; - filter_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest build() { - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest result = - new com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest 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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.orderBy_ = orderBy_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.filter_ = filter_; - } - } - - @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.v1alpha2.ListWorkspacesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest.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(); - } - 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; - } - - @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 - 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)) { - 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 workspaces. 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 workspaces. 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 workspaces. 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 workspaces. 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 workspaces. 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 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]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. Maximum number of workspaces to return. The server may return fewer
-     * items than requested. If unspecified, the server will pick an appropriate
-     * default.
-     * 
- * - * 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 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]; - * - * @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 `ListWorkspaces` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListWorkspaces`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListWorkspaces` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListWorkspaces`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListWorkspaces` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListWorkspaces`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListWorkspaces` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListWorkspaces`
-     * must match the call that provided the page token.
-     * 
- * - * 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 `ListWorkspaces` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListWorkspaces`
-     * must match the call that provided the page token.
-     * 
- * - * 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; - } - - 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); - } - - @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.v1alpha2.ListWorkspacesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListWorkspacesRequest) - private static final com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkspacesRequest 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.v1alpha2.ListWorkspacesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesRequestOrBuilder.java deleted file mode 100644 index 2bf5af92a7f5..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesRequestOrBuilder.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListWorkspacesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListWorkspacesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The repository in which to list workspaces. 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 workspaces. 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 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]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Page token received from a previous `ListWorkspaces` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListWorkspaces`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. Page token received from a previous `ListWorkspaces` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListWorkspaces`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java deleted file mode 100644 index 3d4ee42ced36..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java +++ /dev/null @@ -1,1405 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ListWorkspaces` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkspacesResponse} - */ -public final class ListWorkspacesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ListWorkspacesResponse) - ListWorkspacesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkspacesResponse.newBuilder() to construct. - private ListWorkspacesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkspacesResponse() { - workspaces_ = 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 ListWorkspacesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.class, - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.Builder.class); - } - - public static final int WORKSPACES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List workspaces_; - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - @java.lang.Override - public java.util.List getWorkspacesList() { - return workspaces_; - } - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - @java.lang.Override - public java.util.List - getWorkspacesOrBuilderList() { - return workspaces_; - } - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - @java.lang.Override - public int getWorkspacesCount() { - return workspaces_.size(); - } - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Workspace getWorkspaces(int index) { - return workspaces_.get(index); - } - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder getWorkspacesOrBuilder(int index) { - return workspaces_.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 < workspaces_.size(); i++) { - output.writeMessage(1, workspaces_.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 < workspaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workspaces_.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.v1alpha2.ListWorkspacesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse other = - (com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse) obj; - - if (!getWorkspacesList().equals(other.getWorkspacesList())) 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 (getWorkspacesCount() > 0) { - hash = (37 * hash) + WORKSPACES_FIELD_NUMBER; - hash = (53 * hash) + getWorkspacesList().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.v1alpha2.ListWorkspacesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse 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; - } - /** - * - * - *
-   * `ListWorkspaces` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ListWorkspacesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ListWorkspacesResponse) - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.class, - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (workspacesBuilder_ == null) { - workspaces_ = java.util.Collections.emptyList(); - } else { - workspaces_ = null; - workspacesBuilder_.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse build() { - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse result = - new com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse result) { - if (workspacesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - workspaces_ = java.util.Collections.unmodifiableList(workspaces_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.workspaces_ = workspaces_; - } else { - result.workspaces_ = workspacesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse.getDefaultInstance()) - return this; - if (workspacesBuilder_ == null) { - if (!other.workspaces_.isEmpty()) { - if (workspaces_.isEmpty()) { - workspaces_ = other.workspaces_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkspacesIsMutable(); - workspaces_.addAll(other.workspaces_); - } - onChanged(); - } - } else { - if (!other.workspaces_.isEmpty()) { - if (workspacesBuilder_.isEmpty()) { - workspacesBuilder_.dispose(); - workspacesBuilder_ = null; - workspaces_ = other.workspaces_; - bitField0_ = (bitField0_ & ~0x00000001); - workspacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkspacesFieldBuilder() - : null; - } else { - workspacesBuilder_.addAllMessages(other.workspaces_); - } - } - } - 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.v1alpha2.Workspace m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.Workspace.parser(), extensionRegistry); - if (workspacesBuilder_ == null) { - ensureWorkspacesIsMutable(); - workspaces_.add(m); - } else { - workspacesBuilder_.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 workspaces_ = - java.util.Collections.emptyList(); - - private void ensureWorkspacesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - workspaces_ = - new java.util.ArrayList(workspaces_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Workspace, - com.google.cloud.dataform.v1alpha2.Workspace.Builder, - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder> - workspacesBuilder_; - - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public java.util.List getWorkspacesList() { - if (workspacesBuilder_ == null) { - return java.util.Collections.unmodifiableList(workspaces_); - } else { - return workspacesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public int getWorkspacesCount() { - if (workspacesBuilder_ == null) { - return workspaces_.size(); - } else { - return workspacesBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public com.google.cloud.dataform.v1alpha2.Workspace getWorkspaces(int index) { - if (workspacesBuilder_ == null) { - return workspaces_.get(index); - } else { - return workspacesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder setWorkspaces(int index, com.google.cloud.dataform.v1alpha2.Workspace value) { - if (workspacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkspacesIsMutable(); - workspaces_.set(index, value); - onChanged(); - } else { - workspacesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder setWorkspaces( - int index, com.google.cloud.dataform.v1alpha2.Workspace.Builder builderForValue) { - if (workspacesBuilder_ == null) { - ensureWorkspacesIsMutable(); - workspaces_.set(index, builderForValue.build()); - onChanged(); - } else { - workspacesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder addWorkspaces(com.google.cloud.dataform.v1alpha2.Workspace value) { - if (workspacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkspacesIsMutable(); - workspaces_.add(value); - onChanged(); - } else { - workspacesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder addWorkspaces(int index, com.google.cloud.dataform.v1alpha2.Workspace value) { - if (workspacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkspacesIsMutable(); - workspaces_.add(index, value); - onChanged(); - } else { - workspacesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder addWorkspaces( - com.google.cloud.dataform.v1alpha2.Workspace.Builder builderForValue) { - if (workspacesBuilder_ == null) { - ensureWorkspacesIsMutable(); - workspaces_.add(builderForValue.build()); - onChanged(); - } else { - workspacesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder addWorkspaces( - int index, com.google.cloud.dataform.v1alpha2.Workspace.Builder builderForValue) { - if (workspacesBuilder_ == null) { - ensureWorkspacesIsMutable(); - workspaces_.add(index, builderForValue.build()); - onChanged(); - } else { - workspacesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder addAllWorkspaces( - java.lang.Iterable values) { - if (workspacesBuilder_ == null) { - ensureWorkspacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workspaces_); - onChanged(); - } else { - workspacesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder clearWorkspaces() { - if (workspacesBuilder_ == null) { - workspaces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - workspacesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public Builder removeWorkspaces(int index) { - if (workspacesBuilder_ == null) { - ensureWorkspacesIsMutable(); - workspaces_.remove(index); - onChanged(); - } else { - workspacesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public com.google.cloud.dataform.v1alpha2.Workspace.Builder getWorkspacesBuilder(int index) { - return getWorkspacesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder getWorkspacesOrBuilder(int index) { - if (workspacesBuilder_ == null) { - return workspaces_.get(index); - } else { - return workspacesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public java.util.List - getWorkspacesOrBuilderList() { - if (workspacesBuilder_ != null) { - return workspacesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workspaces_); - } - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public com.google.cloud.dataform.v1alpha2.Workspace.Builder addWorkspacesBuilder() { - return getWorkspacesFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance()); - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public com.google.cloud.dataform.v1alpha2.Workspace.Builder addWorkspacesBuilder(int index) { - return getWorkspacesFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance()); - } - /** - * - * - *
-     * List of workspaces.
-     * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - public java.util.List - getWorkspacesBuilderList() { - return getWorkspacesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Workspace, - com.google.cloud.dataform.v1alpha2.Workspace.Builder, - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder> - getWorkspacesFieldBuilder() { - if (workspacesBuilder_ == null) { - workspacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Workspace, - com.google.cloud.dataform.v1alpha2.Workspace.Builder, - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder>( - workspaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - workspaces_ = null; - } - return workspacesBuilder_; - } - - 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.v1alpha2.ListWorkspacesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ListWorkspacesResponse) - private static final com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkspacesResponse 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.v1alpha2.ListWorkspacesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java deleted file mode 100644 index 754e6c60eef2..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ListWorkspacesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ListWorkspacesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - java.util.List getWorkspacesList(); - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - com.google.cloud.dataform.v1alpha2.Workspace getWorkspaces(int index); - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - int getWorkspacesCount(); - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - java.util.List - getWorkspacesOrBuilderList(); - /** - * - * - *
-   * List of workspaces.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.Workspace workspaces = 1; - */ - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder getWorkspacesOrBuilder(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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/LocationName.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/LocationName.java deleted file mode 100644 index a91c41a52927..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -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 LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - 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 (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.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); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryRequest.java deleted file mode 100644 index 6c45138da7d2..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryRequest.java +++ /dev/null @@ -1,829 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `MakeDirectory` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MakeDirectoryRequest} - */ -public final class MakeDirectoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.MakeDirectoryRequest) - MakeDirectoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MakeDirectoryRequest.newBuilder() to construct. - private MakeDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MakeDirectoryRequest() { - workspace_ = ""; - path_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MakeDirectoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.class, - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.v1alpha2.MakeDirectoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest other = - (com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().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.v1alpha2.MakeDirectoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest 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.v1alpha2.MakeDirectoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest 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.v1alpha2.MakeDirectoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest 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.v1alpha2.MakeDirectoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest 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.v1alpha2.MakeDirectoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest 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.v1alpha2.MakeDirectoryRequest 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; - } - /** - * - * - *
-   * `MakeDirectory` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MakeDirectoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.MakeDirectoryRequest) - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.class, - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest build() { - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest result = - new com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 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.v1alpha2.MakeDirectoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = 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.lang.Object workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 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.v1alpha2.MakeDirectoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.MakeDirectoryRequest) - private static final com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MakeDirectoryRequest 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.v1alpha2.MakeDirectoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryRequestOrBuilder.java deleted file mode 100644 index 0454b9cd97ad..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryRequestOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface MakeDirectoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.MakeDirectoryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryResponse.java deleted file mode 100644 index 28df2f24e281..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryResponse.java +++ /dev/null @@ -1,433 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `MakeDirectory` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MakeDirectoryResponse} - */ -public final class MakeDirectoryResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.MakeDirectoryResponse) - MakeDirectoryResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MakeDirectoryResponse.newBuilder() to construct. - private MakeDirectoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MakeDirectoryResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MakeDirectoryResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.class, - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.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.v1alpha2.MakeDirectoryResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse other = - (com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse) 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.v1alpha2.MakeDirectoryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse 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.v1alpha2.MakeDirectoryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse 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.v1alpha2.MakeDirectoryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse 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.v1alpha2.MakeDirectoryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse 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.v1alpha2.MakeDirectoryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse 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.v1alpha2.MakeDirectoryResponse 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; - } - /** - * - * - *
-   * `MakeDirectory` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MakeDirectoryResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.MakeDirectoryResponse) - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.class, - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MakeDirectoryResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse build() { - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse result = - new com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse(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.v1alpha2.MakeDirectoryResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse.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.v1alpha2.MakeDirectoryResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.MakeDirectoryResponse) - private static final com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.MakeDirectoryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MakeDirectoryResponse 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.v1alpha2.MakeDirectoryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryResponseOrBuilder.java deleted file mode 100644 index f15f549bc7ce..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MakeDirectoryResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface MakeDirectoryResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.MakeDirectoryResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryRequest.java deleted file mode 100644 index 409b41e9e517..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryRequest.java +++ /dev/null @@ -1,1018 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `MoveDirectory` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveDirectoryRequest} - */ -public final class MoveDirectoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.MoveDirectoryRequest) - MoveDirectoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MoveDirectoryRequest.newBuilder() to construct. - private MoveDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MoveDirectoryRequest() { - workspace_ = ""; - path_ = ""; - newPath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MoveDirectoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.class, - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.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; - } - } - - public static final int NEW_PATH_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object newPath_ = ""; - /** - * - * - *
-   * Required. The new path for the directory including directory name, rooted at
-   * workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newPath. - */ - @java.lang.Override - public java.lang.String getNewPath() { - java.lang.Object ref = newPath_; - 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(); - newPath_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The new path for the directory including directory name, rooted at
-   * workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNewPathBytes() { - java.lang.Object ref = newPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newPath_ = 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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newPath_); - } - 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newPath_); - } - 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.v1alpha2.MoveDirectoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest other = - (com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) return false; - if (!getPath().equals(other.getPath())) return false; - if (!getNewPath().equals(other.getNewPath())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + NEW_PATH_FIELD_NUMBER; - hash = (53 * hash) + getNewPath().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest 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.v1alpha2.MoveDirectoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest 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.v1alpha2.MoveDirectoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest 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.v1alpha2.MoveDirectoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest 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.v1alpha2.MoveDirectoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest 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.v1alpha2.MoveDirectoryRequest 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; - } - /** - * - * - *
-   * `MoveDirectory` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveDirectoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.MoveDirectoryRequest) - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.class, - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - newPath_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest build() { - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest result = - new com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.path_ = path_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.newPath_ = newPath_; - } - } - - @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.v1alpha2.MoveDirectoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getNewPath().isEmpty()) { - newPath_ = other.newPath_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - newPath_ = 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 workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object newPath_ = ""; - /** - * - * - *
-     * Required. The new path for the directory including directory name, rooted at
-     * workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newPath. - */ - public java.lang.String getNewPath() { - java.lang.Object ref = newPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The new path for the directory including directory name, rooted at
-     * workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newPath. - */ - public com.google.protobuf.ByteString getNewPathBytes() { - java.lang.Object ref = newPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The new path for the directory including directory name, rooted at
-     * workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The newPath to set. - * @return This builder for chaining. - */ - public Builder setNewPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - newPath_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The new path for the directory including directory name, rooted at
-     * workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNewPath() { - newPath_ = getDefaultInstance().getNewPath(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The new path for the directory including directory name, rooted at
-     * workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for newPath to set. - * @return This builder for chaining. - */ - public Builder setNewPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - newPath_ = 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.v1alpha2.MoveDirectoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.MoveDirectoryRequest) - private static final com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveDirectoryRequest 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.v1alpha2.MoveDirectoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryRequestOrBuilder.java deleted file mode 100644 index e84ca25329c3..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryRequestOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface MoveDirectoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.MoveDirectoryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); - - /** - * - * - *
-   * Required. The new path for the directory including directory name, rooted at
-   * workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newPath. - */ - java.lang.String getNewPath(); - /** - * - * - *
-   * Required. The new path for the directory including directory name, rooted at
-   * workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newPath. - */ - com.google.protobuf.ByteString getNewPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryResponse.java deleted file mode 100644 index 093115a72b9b..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryResponse.java +++ /dev/null @@ -1,433 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `MoveDirectory` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveDirectoryResponse} - */ -public final class MoveDirectoryResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.MoveDirectoryResponse) - MoveDirectoryResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MoveDirectoryResponse.newBuilder() to construct. - private MoveDirectoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MoveDirectoryResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MoveDirectoryResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.class, - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.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.v1alpha2.MoveDirectoryResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse other = - (com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse) 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.v1alpha2.MoveDirectoryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse 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.v1alpha2.MoveDirectoryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse 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.v1alpha2.MoveDirectoryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse 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.v1alpha2.MoveDirectoryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse 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.v1alpha2.MoveDirectoryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse 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.v1alpha2.MoveDirectoryResponse 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; - } - /** - * - * - *
-   * `MoveDirectory` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveDirectoryResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.MoveDirectoryResponse) - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.class, - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveDirectoryResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse build() { - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse result = - new com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse(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.v1alpha2.MoveDirectoryResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse.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.v1alpha2.MoveDirectoryResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.MoveDirectoryResponse) - private static final com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.MoveDirectoryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveDirectoryResponse 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.v1alpha2.MoveDirectoryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryResponseOrBuilder.java deleted file mode 100644 index 481cc2020351..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveDirectoryResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface MoveDirectoryResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.MoveDirectoryResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileRequest.java deleted file mode 100644 index a001b68ef1d0..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileRequest.java +++ /dev/null @@ -1,1003 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `MoveFile` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveFileRequest} - */ -public final class MoveFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.MoveFileRequest) - MoveFileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use MoveFileRequest.newBuilder() to construct. - private MoveFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MoveFileRequest() { - workspace_ = ""; - path_ = ""; - newPath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MoveFileRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveFileRequest.class, - com.google.cloud.dataform.v1alpha2.MoveFileRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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; - } - } - - public static final int NEW_PATH_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object newPath_ = ""; - /** - * - * - *
-   * Required. The file's new path including filename, relative to the workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newPath. - */ - @java.lang.Override - public java.lang.String getNewPath() { - java.lang.Object ref = newPath_; - 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(); - newPath_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The file's new path including filename, relative to the workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNewPathBytes() { - java.lang.Object ref = newPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newPath_ = 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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newPath_); - } - 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newPath_); - } - 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.v1alpha2.MoveFileRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.MoveFileRequest other = - (com.google.cloud.dataform.v1alpha2.MoveFileRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) return false; - if (!getPath().equals(other.getPath())) return false; - if (!getNewPath().equals(other.getNewPath())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().hashCode(); - hash = (37 * hash) + NEW_PATH_FIELD_NUMBER; - hash = (53 * hash) + getNewPath().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest 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.v1alpha2.MoveFileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest 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.v1alpha2.MoveFileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest 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.v1alpha2.MoveFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest 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.v1alpha2.MoveFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest 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.v1alpha2.MoveFileRequest 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; - } - /** - * - * - *
-   * `MoveFile` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveFileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.MoveFileRequest) - com.google.cloud.dataform.v1alpha2.MoveFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveFileRequest.class, - com.google.cloud.dataform.v1alpha2.MoveFileRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.MoveFileRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - newPath_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveFileRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.MoveFileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveFileRequest build() { - com.google.cloud.dataform.v1alpha2.MoveFileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveFileRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.MoveFileRequest result = - new com.google.cloud.dataform.v1alpha2.MoveFileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.MoveFileRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.path_ = path_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.newPath_ = newPath_; - } - } - - @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.v1alpha2.MoveFileRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.MoveFileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.MoveFileRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.MoveFileRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getNewPath().isEmpty()) { - newPath_ = other.newPath_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - newPath_ = 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 workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object newPath_ = ""; - /** - * - * - *
-     * Required. The file's new path including filename, relative to the workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newPath. - */ - public java.lang.String getNewPath() { - java.lang.Object ref = newPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The file's new path including filename, relative to the workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newPath. - */ - public com.google.protobuf.ByteString getNewPathBytes() { - java.lang.Object ref = newPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The file's new path including filename, relative to the workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The newPath to set. - * @return This builder for chaining. - */ - public Builder setNewPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - newPath_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's new path including filename, relative to the workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNewPath() { - newPath_ = getDefaultInstance().getNewPath(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's new path including filename, relative to the workspace root.
-     * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for newPath to set. - * @return This builder for chaining. - */ - public Builder setNewPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - newPath_ = 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.v1alpha2.MoveFileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.MoveFileRequest) - private static final com.google.cloud.dataform.v1alpha2.MoveFileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.MoveFileRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveFileRequest 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.v1alpha2.MoveFileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileRequestOrBuilder.java deleted file mode 100644 index 946c947f5394..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileRequestOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface MoveFileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.MoveFileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); - - /** - * - * - *
-   * Required. The file's new path including filename, relative to the workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newPath. - */ - java.lang.String getNewPath(); - /** - * - * - *
-   * Required. The file's new path including filename, relative to the workspace root.
-   * 
- * - * string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newPath. - */ - com.google.protobuf.ByteString getNewPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileResponse.java deleted file mode 100644 index 6e1f973cfc2c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileResponse.java +++ /dev/null @@ -1,432 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `MoveFile` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveFileResponse} - */ -public final class MoveFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.MoveFileResponse) - MoveFileResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use MoveFileResponse.newBuilder() to construct. - private MoveFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MoveFileResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MoveFileResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveFileResponse.class, - com.google.cloud.dataform.v1alpha2.MoveFileResponse.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.v1alpha2.MoveFileResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.MoveFileResponse other = - (com.google.cloud.dataform.v1alpha2.MoveFileResponse) 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.v1alpha2.MoveFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse 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.v1alpha2.MoveFileResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse 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.v1alpha2.MoveFileResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse 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.v1alpha2.MoveFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse 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.v1alpha2.MoveFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse 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.v1alpha2.MoveFileResponse 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; - } - /** - * - * - *
-   * `MoveFile` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.MoveFileResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.MoveFileResponse) - com.google.cloud.dataform.v1alpha2.MoveFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.MoveFileResponse.class, - com.google.cloud.dataform.v1alpha2.MoveFileResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.MoveFileResponse.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_MoveFileResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveFileResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.MoveFileResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveFileResponse build() { - com.google.cloud.dataform.v1alpha2.MoveFileResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.MoveFileResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.MoveFileResponse result = - new com.google.cloud.dataform.v1alpha2.MoveFileResponse(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.v1alpha2.MoveFileResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.MoveFileResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.MoveFileResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.MoveFileResponse.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.v1alpha2.MoveFileResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.MoveFileResponse) - private static final com.google.cloud.dataform.v1alpha2.MoveFileResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.MoveFileResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.MoveFileResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveFileResponse 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.v1alpha2.MoveFileResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileResponseOrBuilder.java deleted file mode 100644 index b5b7b3ebac05..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/MoveFileResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface MoveFileResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.MoveFileResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PullGitCommitsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PullGitCommitsRequest.java deleted file mode 100644 index db0b6818c9e4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PullGitCommitsRequest.java +++ /dev/null @@ -1,1145 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `PullGitCommits` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.PullGitCommitsRequest} - */ -public final class PullGitCommitsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.PullGitCommitsRequest) - PullGitCommitsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullGitCommitsRequest.newBuilder() to construct. - private PullGitCommitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PullGitCommitsRequest() { - name_ = ""; - remoteBranch_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PullGitCommitsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.class, - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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 REMOTE_BRANCH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object remoteBranch_ = ""; - /** - * - * - *
-   * Optional. The name of the branch in the Git remote from which to pull commits.
-   * If left unset, the repository's default branch name will be used.
-   * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The remoteBranch. - */ - @java.lang.Override - public java.lang.String getRemoteBranch() { - java.lang.Object ref = remoteBranch_; - 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(); - remoteBranch_ = s; - return s; - } - } - /** - * - * - *
-   * 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]; - * - * @return The bytes for remoteBranch. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRemoteBranchBytes() { - java.lang.Object ref = remoteBranch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteBranch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHOR_FIELD_NUMBER = 3; - private com.google.cloud.dataform.v1alpha2.CommitAuthor author_; - /** - * - * - *
-   * Required. The author of any merge commit which may be created as a result of merging
-   * fetched Git commits into this workspace.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the author field is set. - */ - @java.lang.Override - public boolean hasAuthor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The author of any merge commit which may be created as a result of merging
-   * fetched Git commits into this workspace.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The author. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthor getAuthor() { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } - /** - * - * - *
-   * Required. The author of any merge commit which may be created as a result of merging
-   * fetched Git commits into this workspace.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder getAuthorOrBuilder() { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } - - 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(remoteBranch_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteBranch_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getAuthor()); - } - 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(remoteBranch_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteBranch_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthor()); - } - 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.v1alpha2.PullGitCommitsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest other = - (com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getRemoteBranch().equals(other.getRemoteBranch())) return false; - if (hasAuthor() != other.hasAuthor()) return false; - if (hasAuthor()) { - if (!getAuthor().equals(other.getAuthor())) 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) + REMOTE_BRANCH_FIELD_NUMBER; - hash = (53 * hash) + getRemoteBranch().hashCode(); - if (hasAuthor()) { - hash = (37 * hash) + AUTHOR_FIELD_NUMBER; - hash = (53 * hash) + getAuthor().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest 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.v1alpha2.PullGitCommitsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest 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.v1alpha2.PullGitCommitsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest 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.v1alpha2.PullGitCommitsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest 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.v1alpha2.PullGitCommitsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest 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.v1alpha2.PullGitCommitsRequest 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; - } - /** - * - * - *
-   * `PullGitCommits` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.PullGitCommitsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.PullGitCommitsRequest) - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.class, - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAuthorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - remoteBranch_ = ""; - author_ = null; - if (authorBuilder_ != null) { - authorBuilder_.dispose(); - authorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PullGitCommitsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest build() { - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest result = - new com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.remoteBranch_ = remoteBranch_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.author_ = authorBuilder_ == null ? author_ : authorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.PullGitCommitsRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRemoteBranch().isEmpty()) { - remoteBranch_ = other.remoteBranch_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasAuthor()) { - mergeAuthor(other.getAuthor()); - } - 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: - { - remoteBranch_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getAuthorFieldBuilder().getBuilder(), extensionRegistry); - 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 workspace'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 workspace'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 workspace'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 workspace'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 workspace'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 remoteBranch_ = ""; - /** - * - * - *
-     * Optional. The name of the branch in the Git remote from which to pull commits.
-     * If left unset, the repository's default branch name will be used.
-     * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The remoteBranch. - */ - public java.lang.String getRemoteBranch() { - java.lang.Object ref = remoteBranch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteBranch_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for remoteBranch. - */ - public com.google.protobuf.ByteString getRemoteBranchBytes() { - java.lang.Object ref = remoteBranch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteBranch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @param value The remoteBranch to set. - * @return This builder for chaining. - */ - public Builder setRemoteBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - remoteBranch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearRemoteBranch() { - remoteBranch_ = getDefaultInstance().getRemoteBranch(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes for remoteBranch to set. - * @return This builder for chaining. - */ - public Builder setRemoteBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - remoteBranch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.CommitAuthor author_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CommitAuthor, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder, - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder> - authorBuilder_; - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the author field is set. - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The author. - */ - public com.google.cloud.dataform.v1alpha2.CommitAuthor getAuthor() { - if (authorBuilder_ == null) { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } else { - return authorBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAuthor(com.google.cloud.dataform.v1alpha2.CommitAuthor value) { - if (authorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - author_ = value; - } else { - authorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAuthor( - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder builderForValue) { - if (authorBuilder_ == null) { - author_ = builderForValue.build(); - } else { - authorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAuthor(com.google.cloud.dataform.v1alpha2.CommitAuthor value) { - if (authorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && author_ != null - && author_ != com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance()) { - getAuthorBuilder().mergeFrom(value); - } else { - author_ = value; - } - } else { - authorBuilder_.mergeFrom(value); - } - if (author_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00000004); - author_ = null; - if (authorBuilder_ != null) { - authorBuilder_.dispose(); - authorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder getAuthorBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getAuthorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder getAuthorOrBuilder() { - if (authorBuilder_ != null) { - return authorBuilder_.getMessageOrBuilder(); - } else { - return author_ == null - ? com.google.cloud.dataform.v1alpha2.CommitAuthor.getDefaultInstance() - : author_; - } - } - /** - * - * - *
-     * Required. The author of any merge commit which may be created as a result of merging
-     * fetched Git commits into this workspace.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CommitAuthor, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder, - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder> - getAuthorFieldBuilder() { - if (authorBuilder_ == null) { - authorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CommitAuthor, - com.google.cloud.dataform.v1alpha2.CommitAuthor.Builder, - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder>( - getAuthor(), getParentForChildren(), isClean()); - author_ = null; - } - return authorBuilder_; - } - - @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.v1alpha2.PullGitCommitsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.PullGitCommitsRequest) - private static final com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.PullGitCommitsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullGitCommitsRequest 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.v1alpha2.PullGitCommitsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PullGitCommitsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PullGitCommitsRequestOrBuilder.java deleted file mode 100644 index 34345a1ee9ad..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PullGitCommitsRequestOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface PullGitCommitsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.PullGitCommitsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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 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]; - * - * @return The remoteBranch. - */ - 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.
-   * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for remoteBranch. - */ - 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.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the author field is set. - */ - boolean hasAuthor(); - /** - * - * - *
-   * Required. The author of any merge commit which may be created as a result of merging
-   * fetched Git commits into this workspace.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The author. - */ - com.google.cloud.dataform.v1alpha2.CommitAuthor getAuthor(); - /** - * - * - *
-   * Required. The author of any merge commit which may be created as a result of merging
-   * fetched Git commits into this workspace.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.CommitAuthorOrBuilder getAuthorOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PushGitCommitsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PushGitCommitsRequest.java deleted file mode 100644 index 0715fe2b7f10..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PushGitCommitsRequest.java +++ /dev/null @@ -1,829 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `PushGitCommits` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.PushGitCommitsRequest} - */ -public final class PushGitCommitsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.PushGitCommitsRequest) - PushGitCommitsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PushGitCommitsRequest.newBuilder() to construct. - private PushGitCommitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PushGitCommitsRequest() { - name_ = ""; - remoteBranch_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PushGitCommitsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.class, - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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 REMOTE_BRANCH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object remoteBranch_ = ""; - /** - * - * - *
-   * Optional. The name of the branch in the Git remote to which commits should be pushed.
-   * If left unset, the repository's default branch name will be used.
-   * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The remoteBranch. - */ - @java.lang.Override - public java.lang.String getRemoteBranch() { - java.lang.Object ref = remoteBranch_; - 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(); - remoteBranch_ = s; - return s; - } - } - /** - * - * - *
-   * 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]; - * - * @return The bytes for remoteBranch. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRemoteBranchBytes() { - java.lang.Object ref = remoteBranch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteBranch_ = 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(remoteBranch_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteBranch_); - } - 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(remoteBranch_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteBranch_); - } - 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.v1alpha2.PushGitCommitsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest other = - (com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getRemoteBranch().equals(other.getRemoteBranch())) 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) + REMOTE_BRANCH_FIELD_NUMBER; - hash = (53 * hash) + getRemoteBranch().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest 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.v1alpha2.PushGitCommitsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest 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.v1alpha2.PushGitCommitsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest 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.v1alpha2.PushGitCommitsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest 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.v1alpha2.PushGitCommitsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest 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.v1alpha2.PushGitCommitsRequest 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; - } - /** - * - * - *
-   * `PushGitCommits` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.PushGitCommitsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.PushGitCommitsRequest) - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.class, - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - remoteBranch_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_PushGitCommitsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest build() { - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest result = - new com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.remoteBranch_ = remoteBranch_; - } - } - - @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.v1alpha2.PushGitCommitsRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRemoteBranch().isEmpty()) { - remoteBranch_ = other.remoteBranch_; - 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: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - remoteBranch_ = 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.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The workspace'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 workspace'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 workspace'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 workspace'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 workspace'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 remoteBranch_ = ""; - /** - * - * - *
-     * Optional. The name of the branch in the Git remote to which commits should be pushed.
-     * If left unset, the repository's default branch name will be used.
-     * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The remoteBranch. - */ - public java.lang.String getRemoteBranch() { - java.lang.Object ref = remoteBranch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteBranch_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for remoteBranch. - */ - public com.google.protobuf.ByteString getRemoteBranchBytes() { - java.lang.Object ref = remoteBranch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteBranch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @param value The remoteBranch to set. - * @return This builder for chaining. - */ - public Builder setRemoteBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - remoteBranch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearRemoteBranch() { - remoteBranch_ = getDefaultInstance().getRemoteBranch(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes for remoteBranch to set. - * @return This builder for chaining. - */ - public Builder setRemoteBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - remoteBranch_ = 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.v1alpha2.PushGitCommitsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.PushGitCommitsRequest) - private static final com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.PushGitCommitsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PushGitCommitsRequest 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.v1alpha2.PushGitCommitsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PushGitCommitsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PushGitCommitsRequestOrBuilder.java deleted file mode 100644 index 4411303e25a5..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/PushGitCommitsRequestOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface PushGitCommitsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.PushGitCommitsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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 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]; - * - * @return The remoteBranch. - */ - 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.
-   * 
- * - * string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for remoteBranch. - */ - com.google.protobuf.ByteString getRemoteBranchBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsRequest.java deleted file mode 100644 index fd5c4e4f5cd0..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsRequest.java +++ /dev/null @@ -1,1164 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `QueryCompilationResultActions` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest} - */ -public final class QueryCompilationResultActionsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) - QueryCompilationResultActionsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryCompilationResultActionsRequest.newBuilder() to construct. - private QueryCompilationResultActionsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryCompilationResultActionsRequest() { - name_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryCompilationResultActionsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest.class, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The compilation result'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 compilation result'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 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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @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; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - /** - * - * - *
-   * 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]; - * - * @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. Optional filter for the returned list. Filtering is only currently
-   * supported on the `file_path` field.
-   * 
- * - * string filter = 4 [(.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 - 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, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - 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(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - 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.v1alpha2.QueryCompilationResultActionsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest other = - (com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) 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 = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest 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.v1alpha2.QueryCompilationResultActionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest 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.v1alpha2.QueryCompilationResultActionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest 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.v1alpha2.QueryCompilationResultActionsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest - 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.v1alpha2.QueryCompilationResultActionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest 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.v1alpha2.QueryCompilationResultActionsRequest 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; - } - /** - * - * - *
-   * `QueryCompilationResultActions` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest.class, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest.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_ = ""; - filter_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest build() { - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest result = - new com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest 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_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.filter_ = filter_; - } - } - - @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.v1alpha2.QueryCompilationResultActionsRequest) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest - .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(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - 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: - { - name_ = 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 - case 34: - { - filter_ = 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 java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The compilation result'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 compilation result'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 compilation result'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 compilation result'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 compilation result'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 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]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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]; - * - * @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 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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @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 `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]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @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; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * 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]; - * - * @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. Optional filter for the returned list. Filtering is only currently
-     * supported on the `file_path` field.
-     * 
- * - * string filter = 4 [(.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. Optional filter for the returned list. Filtering is only currently
-     * supported on the `file_path` field.
-     * 
- * - * string filter = 4 [(.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_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @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_ |= 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.v1alpha2.QueryCompilationResultActionsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) - private static final com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryCompilationResultActionsRequest 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.v1alpha2.QueryCompilationResultActionsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsRequestOrBuilder.java deleted file mode 100644 index 6f2494f0a1d1..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsRequestOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface QueryCompilationResultActionsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The compilation result's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The compilation result'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 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]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * 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]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * 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]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * 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]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * 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]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsResponse.java deleted file mode 100644 index 0cb3deee80da..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsResponse.java +++ /dev/null @@ -1,1222 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `QueryCompilationResultActions` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse} - */ -public final class QueryCompilationResultActionsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse) - QueryCompilationResultActionsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryCompilationResultActionsResponse.newBuilder() to construct. - private QueryCompilationResultActionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryCompilationResultActionsResponse() { - compilationResultActions_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryCompilationResultActionsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse.class, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse.Builder.class); - } - - public static final int COMPILATION_RESULT_ACTIONS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - compilationResultActions_; - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - @java.lang.Override - public java.util.List - getCompilationResultActionsList() { - return compilationResultActions_; - } - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder> - getCompilationResultActionsOrBuilderList() { - return compilationResultActions_; - } - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - @java.lang.Override - public int getCompilationResultActionsCount() { - return compilationResultActions_.size(); - } - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultAction getCompilationResultActions( - int index) { - return compilationResultActions_.get(index); - } - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder - getCompilationResultActionsOrBuilder(int index) { - return compilationResultActions_.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 < compilationResultActions_.size(); i++) { - output.writeMessage(1, compilationResultActions_.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 < compilationResultActions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, compilationResultActions_.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.v1alpha2.QueryCompilationResultActionsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse other = - (com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse) obj; - - if (!getCompilationResultActionsList().equals(other.getCompilationResultActionsList())) - 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 (getCompilationResultActionsCount() > 0) { - hash = (37 * hash) + COMPILATION_RESULT_ACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getCompilationResultActionsList().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.v1alpha2.QueryCompilationResultActionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse 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.v1alpha2.QueryCompilationResultActionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse 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.v1alpha2.QueryCompilationResultActionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse 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.v1alpha2.QueryCompilationResultActionsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - 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.v1alpha2.QueryCompilationResultActionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse 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.v1alpha2.QueryCompilationResultActionsResponse 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; - } - /** - * - * - *
-   * `QueryCompilationResultActions` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse) - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse.class, - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (compilationResultActionsBuilder_ == null) { - compilationResultActions_ = java.util.Collections.emptyList(); - } else { - compilationResultActions_ = null; - compilationResultActionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryCompilationResultActionsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse build() { - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse result = - new com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse result) { - if (compilationResultActionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - compilationResultActions_ = - java.util.Collections.unmodifiableList(compilationResultActions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.compilationResultActions_ = compilationResultActions_; - } else { - result.compilationResultActions_ = compilationResultActionsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse 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.v1alpha2.QueryCompilationResultActionsResponse) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - .getDefaultInstance()) return this; - if (compilationResultActionsBuilder_ == null) { - if (!other.compilationResultActions_.isEmpty()) { - if (compilationResultActions_.isEmpty()) { - compilationResultActions_ = other.compilationResultActions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.addAll(other.compilationResultActions_); - } - onChanged(); - } - } else { - if (!other.compilationResultActions_.isEmpty()) { - if (compilationResultActionsBuilder_.isEmpty()) { - compilationResultActionsBuilder_.dispose(); - compilationResultActionsBuilder_ = null; - compilationResultActions_ = other.compilationResultActions_; - bitField0_ = (bitField0_ & ~0x00000001); - compilationResultActionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCompilationResultActionsFieldBuilder() - : null; - } else { - compilationResultActionsBuilder_.addAllMessages(other.compilationResultActions_); - } - } - } - 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.v1alpha2.CompilationResultAction m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.parser(), - extensionRegistry); - if (compilationResultActionsBuilder_ == null) { - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.add(m); - } else { - compilationResultActionsBuilder_.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 - compilationResultActions_ = java.util.Collections.emptyList(); - - private void ensureCompilationResultActionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - compilationResultActions_ = - new java.util.ArrayList( - compilationResultActions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder> - compilationResultActionsBuilder_; - - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public java.util.List - getCompilationResultActionsList() { - if (compilationResultActionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(compilationResultActions_); - } else { - return compilationResultActionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public int getCompilationResultActionsCount() { - if (compilationResultActionsBuilder_ == null) { - return compilationResultActions_.size(); - } else { - return compilationResultActionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction getCompilationResultActions( - int index) { - if (compilationResultActionsBuilder_ == null) { - return compilationResultActions_.get(index); - } else { - return compilationResultActionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder setCompilationResultActions( - int index, com.google.cloud.dataform.v1alpha2.CompilationResultAction value) { - if (compilationResultActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.set(index, value); - onChanged(); - } else { - compilationResultActionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder setCompilationResultActions( - int index, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder builderForValue) { - if (compilationResultActionsBuilder_ == null) { - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.set(index, builderForValue.build()); - onChanged(); - } else { - compilationResultActionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder addCompilationResultActions( - com.google.cloud.dataform.v1alpha2.CompilationResultAction value) { - if (compilationResultActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.add(value); - onChanged(); - } else { - compilationResultActionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder addCompilationResultActions( - int index, com.google.cloud.dataform.v1alpha2.CompilationResultAction value) { - if (compilationResultActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.add(index, value); - onChanged(); - } else { - compilationResultActionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder addCompilationResultActions( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder builderForValue) { - if (compilationResultActionsBuilder_ == null) { - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.add(builderForValue.build()); - onChanged(); - } else { - compilationResultActionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder addCompilationResultActions( - int index, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder builderForValue) { - if (compilationResultActionsBuilder_ == null) { - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.add(index, builderForValue.build()); - onChanged(); - } else { - compilationResultActionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder addAllCompilationResultActions( - java.lang.Iterable - values) { - if (compilationResultActionsBuilder_ == null) { - ensureCompilationResultActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compilationResultActions_); - onChanged(); - } else { - compilationResultActionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder clearCompilationResultActions() { - if (compilationResultActionsBuilder_ == null) { - compilationResultActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - compilationResultActionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public Builder removeCompilationResultActions(int index) { - if (compilationResultActionsBuilder_ == null) { - ensureCompilationResultActionsIsMutable(); - compilationResultActions_.remove(index); - onChanged(); - } else { - compilationResultActionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder - getCompilationResultActionsBuilder(int index) { - return getCompilationResultActionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder - getCompilationResultActionsOrBuilder(int index) { - if (compilationResultActionsBuilder_ == null) { - return compilationResultActions_.get(index); - } else { - return compilationResultActionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder> - getCompilationResultActionsOrBuilderList() { - if (compilationResultActionsBuilder_ != null) { - return compilationResultActionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(compilationResultActions_); - } - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder - addCompilationResultActionsBuilder() { - return getCompilationResultActionsFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1alpha2.CompilationResultAction.getDefaultInstance()); - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder - addCompilationResultActionsBuilder(int index) { - return getCompilationResultActionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.getDefaultInstance()); - } - /** - * - * - *
-     * List of compilation result actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - public java.util.List - getCompilationResultActionsBuilderList() { - return getCompilationResultActionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder> - getCompilationResultActionsFieldBuilder() { - if (compilationResultActionsBuilder_ == null) { - compilationResultActionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.CompilationResultAction, - com.google.cloud.dataform.v1alpha2.CompilationResultAction.Builder, - com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder>( - compilationResultActions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - compilationResultActions_ = null; - } - return compilationResultActionsBuilder_; - } - - 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.v1alpha2.QueryCompilationResultActionsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse) - private static final com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryCompilationResultActionsResponse 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.v1alpha2.QueryCompilationResultActionsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsResponseOrBuilder.java deleted file mode 100644 index 98df609033f3..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryCompilationResultActionsResponseOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface QueryCompilationResultActionsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.QueryCompilationResultActionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - java.util.List - getCompilationResultActionsList(); - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResultAction getCompilationResultActions(int index); - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - int getCompilationResultActionsCount(); - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - java.util.List - getCompilationResultActionsOrBuilderList(); - /** - * - * - *
-   * List of compilation result actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.CompilationResultAction compilation_result_actions = 1; - * - */ - com.google.cloud.dataform.v1alpha2.CompilationResultActionOrBuilder - getCompilationResultActionsOrBuilder(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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsRequest.java deleted file mode 100644 index ff6a7902d7f6..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsRequest.java +++ /dev/null @@ -1,1154 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `QueryDirectoryContents` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest} - */ -public final class QueryDirectoryContentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) - QueryDirectoryContentsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryDirectoryContentsRequest.newBuilder() to construct. - private QueryDirectoryContentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryDirectoryContentsRequest() { - workspace_ = ""; - path_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryDirectoryContentsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.class, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * 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]; - * - * @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 the
-   * workspace root. If left unset, the workspace root is used.
-   * 
- * - * string path = 2 [(.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 = 3; - 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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - * - * - *
-   * Optional. Page token received from a previous `QueryDirectoryContents` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryDirectoryContents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 4 [(.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 `QueryDirectoryContents` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryDirectoryContents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 4 [(.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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.v1alpha2.QueryDirectoryContentsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest other = - (com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().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.v1alpha2.QueryDirectoryContentsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest 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.v1alpha2.QueryDirectoryContentsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest 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.v1alpha2.QueryDirectoryContentsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest 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.v1alpha2.QueryDirectoryContentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest 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.v1alpha2.QueryDirectoryContentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest 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.v1alpha2.QueryDirectoryContentsRequest 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; - } - /** - * - * - *
-   * `QueryDirectoryContents` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.class, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest build() { - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest result = - new com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.path_ = path_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000008) != 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.v1alpha2.QueryDirectoryContentsRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = 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 java.lang.Object workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * 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]; - * - * @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 the
-     * workspace root. If left unset, the workspace root is used.
-     * 
- * - * string path = 2 [(.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 the
-     * workspace root. If left unset, the workspace root is used.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @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_ |= 0x00000002; - 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 = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000004; - 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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000004); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. Page token received from a previous `QueryDirectoryContents` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryDirectoryContents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 4 [(.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 `QueryDirectoryContents` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryDirectoryContents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 4 [(.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 `QueryDirectoryContents` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryDirectoryContents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 4 [(.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_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Page token received from a previous `QueryDirectoryContents` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryDirectoryContents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Page token received from a previous `QueryDirectoryContents` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryDirectoryContents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 4 [(.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_ |= 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.v1alpha2.QueryDirectoryContentsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) - private static final com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDirectoryContentsRequest 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.v1alpha2.QueryDirectoryContentsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsRequestOrBuilder.java deleted file mode 100644 index 3fca94568bcc..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsRequestOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface QueryDirectoryContentsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.QueryDirectoryContentsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - 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.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The path. - */ - 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.
-   * 
- * - * string path = 2 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Page token received from a previous `QueryDirectoryContents` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryDirectoryContents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. Page token received from a previous `QueryDirectoryContents` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryDirectoryContents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsResponse.java deleted file mode 100644 index 70c729512bd4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsResponse.java +++ /dev/null @@ -1,2332 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `QueryDirectoryContents` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse} - */ -public final class QueryDirectoryContentsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse) - QueryDirectoryContentsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryDirectoryContentsResponse.newBuilder() to construct. - private QueryDirectoryContentsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryDirectoryContentsResponse() { - directoryEntries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryDirectoryContentsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.class, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.Builder.class); - } - - public interface DirectoryEntryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry.EntryCase - getEntryCase(); - } - /** - * - * - *
-   * Represents a single entry in a workspace directory.
-   * 
- * - * Protobuf type {@code - * google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry} - */ - public static final class DirectoryEntry extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .class, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry other = - (com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry) - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .class, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - build() { - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry result = - new com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry other) { - if (other - == com.google.cloud.dataform.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry) - private static final com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntry - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry(); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry> - directoryEntries_; - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry> - getDirectoryEntriesList() { - return directoryEntries_; - } - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> - getDirectoryEntriesOrBuilderList() { - return directoryEntries_; - } - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - @java.lang.Override - public int getDirectoryEntriesCount() { - return directoryEntries_.size(); - } - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - getDirectoryEntries(int index) { - return directoryEntries_.get(index); - } - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse other = - (com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse) 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.v1alpha2.QueryDirectoryContentsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - 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.v1alpha2.QueryDirectoryContentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse 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; - } - /** - * - * - *
-   * `QueryDirectoryContents` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse) - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.class, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryDirectoryContentsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse build() { - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse result = - new com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .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< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry> - directoryEntries_ = java.util.Collections.emptyList(); - - private void ensureDirectoryEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - directoryEntries_ = - new java.util.ArrayList< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry>( - directoryEntries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .Builder, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> - directoryEntriesBuilder_; - - /** - * - * - *
-     * List of entries in the directory.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public java.util.List< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry> - getDirectoryEntriesList() { - if (directoryEntriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(directoryEntries_); - } else { - return directoryEntriesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of entries in the directory.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder setDirectoryEntries( - int index, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder setDirectoryEntries( - int index, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder addDirectoryEntries( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder addDirectoryEntries( - int index, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder addDirectoryEntries( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder addDirectoryEntries( - int index, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public Builder addAllDirectoryEntries( - java.lang.Iterable< - ? extends - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntry> - 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.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry.Builder - getDirectoryEntriesBuilder(int index) { - return getDirectoryEntriesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of entries in the directory.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> - getDirectoryEntriesOrBuilderList() { - if (directoryEntriesBuilder_ != null) { - return directoryEntriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(directoryEntries_); - } - } - /** - * - * - *
-     * List of entries in the directory.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry.Builder - addDirectoryEntriesBuilder() { - return getDirectoryEntriesFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance()); - } - /** - * - * - *
-     * List of entries in the directory.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry.Builder - addDirectoryEntriesBuilder(int index) { - return getDirectoryEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .getDefaultInstance()); - } - /** - * - * - *
-     * List of entries in the directory.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - public java.util.List< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .Builder> - getDirectoryEntriesBuilderList() { - return getDirectoryEntriesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .Builder, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> - getDirectoryEntriesFieldBuilder() { - if (directoryEntriesBuilder_ == null) { - directoryEntriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - .Builder, - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .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.v1alpha2.QueryDirectoryContentsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse) - private static final com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryDirectoryContentsResponse 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.v1alpha2.QueryDirectoryContentsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsResponseOrBuilder.java deleted file mode 100644 index 0a5af6c0627e..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryDirectoryContentsResponseOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface QueryDirectoryContentsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - java.util.List - getDirectoryEntriesList(); - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry - getDirectoryEntries(int index); - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - int getDirectoryEntriesCount(); - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse - .DirectoryEntryOrBuilder> - getDirectoryEntriesOrBuilderList(); - /** - * - * - *
-   * List of entries in the directory.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; - * - */ - com.google.cloud.dataform.v1alpha2.QueryDirectoryContentsResponse.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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java deleted file mode 100644 index e12d8ca505be..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java +++ /dev/null @@ -1,976 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `QueryWorkflowInvocationActions` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest} - */ -public final class QueryWorkflowInvocationActionsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) - QueryWorkflowInvocationActionsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryWorkflowInvocationActionsRequest.newBuilder() to construct. - private QueryWorkflowInvocationActionsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryWorkflowInvocationActionsRequest() { - name_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryWorkflowInvocationActionsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest.class, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workflow invocation'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 invocation'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 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]; - * - * @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 `QueryWorkflowInvocationActions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryWorkflowInvocationActions` must match the call that provided the page
-   * token.
-   * 
- * - * 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 `QueryWorkflowInvocationActions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryWorkflowInvocationActions` must match the call that provided the page
-   * token.
-   * 
- * - * 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(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, 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(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(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.v1alpha2.QueryWorkflowInvocationActionsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest other = - (com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) 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.v1alpha2.QueryWorkflowInvocationActionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest 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.v1alpha2.QueryWorkflowInvocationActionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest 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.v1alpha2.QueryWorkflowInvocationActionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest 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.v1alpha2.QueryWorkflowInvocationActionsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest - 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.v1alpha2.QueryWorkflowInvocationActionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest 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.v1alpha2.QueryWorkflowInvocationActionsRequest 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; - } - /** - * - * - *
-   * `QueryWorkflowInvocationActions` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest.class, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest build() { - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest result = - new com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest 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.v1alpha2.QueryWorkflowInvocationActionsRequest) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest - .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 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 name_ = ""; - /** - * - * - *
-     * Required. The workflow invocation'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 invocation'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 invocation'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 invocation'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 invocation'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 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]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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]; - * - * @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 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]; - * - * @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 `QueryWorkflowInvocationActions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryWorkflowInvocationActions` must match the call that provided the page
-     * token.
-     * 
- * - * 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 `QueryWorkflowInvocationActions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryWorkflowInvocationActions` must match the call that provided the page
-     * token.
-     * 
- * - * 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 `QueryWorkflowInvocationActions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryWorkflowInvocationActions` must match the call that provided the page
-     * token.
-     * 
- * - * 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 `QueryWorkflowInvocationActions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryWorkflowInvocationActions` must match the call that provided the page
-     * token.
-     * 
- * - * 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 `QueryWorkflowInvocationActions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `QueryWorkflowInvocationActions` must match the call that provided the page
-     * token.
-     * 
- * - * 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.v1alpha2.QueryWorkflowInvocationActionsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) - private static final com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWorkflowInvocationActionsRequest 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.v1alpha2.QueryWorkflowInvocationActionsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java deleted file mode 100644 index 42cd515273e1..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface QueryWorkflowInvocationActionsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workflow invocation's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workflow invocation'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 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]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryWorkflowInvocationActions` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. Page token received from a previous `QueryWorkflowInvocationActions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `QueryWorkflowInvocationActions` must match the call that provided the page
-   * token.
-   * 
- * - * 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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsResponse.java deleted file mode 100644 index df3bac6a487a..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsResponse.java +++ /dev/null @@ -1,1224 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `QueryWorkflowInvocationActions` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse} - */ -public final class QueryWorkflowInvocationActionsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse) - QueryWorkflowInvocationActionsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryWorkflowInvocationActionsResponse.newBuilder() to construct. - private QueryWorkflowInvocationActionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryWorkflowInvocationActionsResponse() { - workflowInvocationActions_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryWorkflowInvocationActionsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse.class, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse.Builder - .class); - } - - public static final int WORKFLOW_INVOCATION_ACTIONS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - workflowInvocationActions_; - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - @java.lang.Override - public java.util.List - getWorkflowInvocationActionsList() { - return workflowInvocationActions_; - } - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder> - getWorkflowInvocationActionsOrBuilderList() { - return workflowInvocationActions_; - } - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - @java.lang.Override - public int getWorkflowInvocationActionsCount() { - return workflowInvocationActions_.size(); - } - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction getWorkflowInvocationActions( - int index) { - return workflowInvocationActions_.get(index); - } - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder - getWorkflowInvocationActionsOrBuilder(int index) { - return workflowInvocationActions_.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 < workflowInvocationActions_.size(); i++) { - output.writeMessage(1, workflowInvocationActions_.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 < workflowInvocationActions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, workflowInvocationActions_.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.v1alpha2.QueryWorkflowInvocationActionsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse other = - (com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse) obj; - - if (!getWorkflowInvocationActionsList().equals(other.getWorkflowInvocationActionsList())) - 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 (getWorkflowInvocationActionsCount() > 0) { - hash = (37 * hash) + WORKFLOW_INVOCATION_ACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowInvocationActionsList().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.v1alpha2.QueryWorkflowInvocationActionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse 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.v1alpha2.QueryWorkflowInvocationActionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse 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.v1alpha2.QueryWorkflowInvocationActionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse 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.v1alpha2.QueryWorkflowInvocationActionsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - 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.v1alpha2.QueryWorkflowInvocationActionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse 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.v1alpha2.QueryWorkflowInvocationActionsResponse 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; - } - /** - * - * - *
-   * `QueryWorkflowInvocationActions` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse) - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse.class, - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (workflowInvocationActionsBuilder_ == null) { - workflowInvocationActions_ = java.util.Collections.emptyList(); - } else { - workflowInvocationActions_ = null; - workflowInvocationActionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse build() { - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - buildPartial() { - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse result = - new com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse result) { - if (workflowInvocationActionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - workflowInvocationActions_ = - java.util.Collections.unmodifiableList(workflowInvocationActions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.workflowInvocationActions_ = workflowInvocationActions_; - } else { - result.workflowInvocationActions_ = workflowInvocationActionsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse 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.v1alpha2.QueryWorkflowInvocationActionsResponse) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse other) { - if (other - == com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - .getDefaultInstance()) return this; - if (workflowInvocationActionsBuilder_ == null) { - if (!other.workflowInvocationActions_.isEmpty()) { - if (workflowInvocationActions_.isEmpty()) { - workflowInvocationActions_ = other.workflowInvocationActions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.addAll(other.workflowInvocationActions_); - } - onChanged(); - } - } else { - if (!other.workflowInvocationActions_.isEmpty()) { - if (workflowInvocationActionsBuilder_.isEmpty()) { - workflowInvocationActionsBuilder_.dispose(); - workflowInvocationActionsBuilder_ = null; - workflowInvocationActions_ = other.workflowInvocationActions_; - bitField0_ = (bitField0_ & ~0x00000001); - workflowInvocationActionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkflowInvocationActionsFieldBuilder() - : null; - } else { - workflowInvocationActionsBuilder_.addAllMessages(other.workflowInvocationActions_); - } - } - } - 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.v1alpha2.WorkflowInvocationAction m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.parser(), - extensionRegistry); - if (workflowInvocationActionsBuilder_ == null) { - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.add(m); - } else { - workflowInvocationActionsBuilder_.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 - workflowInvocationActions_ = java.util.Collections.emptyList(); - - private void ensureWorkflowInvocationActionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - workflowInvocationActions_ = - new java.util.ArrayList( - workflowInvocationActions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder> - workflowInvocationActionsBuilder_; - - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public java.util.List - getWorkflowInvocationActionsList() { - if (workflowInvocationActionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(workflowInvocationActions_); - } else { - return workflowInvocationActionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public int getWorkflowInvocationActionsCount() { - if (workflowInvocationActionsBuilder_ == null) { - return workflowInvocationActions_.size(); - } else { - return workflowInvocationActionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction getWorkflowInvocationActions( - int index) { - if (workflowInvocationActionsBuilder_ == null) { - return workflowInvocationActions_.get(index); - } else { - return workflowInvocationActionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder setWorkflowInvocationActions( - int index, com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction value) { - if (workflowInvocationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.set(index, value); - onChanged(); - } else { - workflowInvocationActionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder setWorkflowInvocationActions( - int index, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder builderForValue) { - if (workflowInvocationActionsBuilder_ == null) { - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.set(index, builderForValue.build()); - onChanged(); - } else { - workflowInvocationActionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder addWorkflowInvocationActions( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction value) { - if (workflowInvocationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.add(value); - onChanged(); - } else { - workflowInvocationActionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder addWorkflowInvocationActions( - int index, com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction value) { - if (workflowInvocationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.add(index, value); - onChanged(); - } else { - workflowInvocationActionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder addWorkflowInvocationActions( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder builderForValue) { - if (workflowInvocationActionsBuilder_ == null) { - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.add(builderForValue.build()); - onChanged(); - } else { - workflowInvocationActionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder addWorkflowInvocationActions( - int index, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder builderForValue) { - if (workflowInvocationActionsBuilder_ == null) { - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.add(index, builderForValue.build()); - onChanged(); - } else { - workflowInvocationActionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder addAllWorkflowInvocationActions( - java.lang.Iterable - values) { - if (workflowInvocationActionsBuilder_ == null) { - ensureWorkflowInvocationActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflowInvocationActions_); - onChanged(); - } else { - workflowInvocationActionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder clearWorkflowInvocationActions() { - if (workflowInvocationActionsBuilder_ == null) { - workflowInvocationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - workflowInvocationActionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public Builder removeWorkflowInvocationActions(int index) { - if (workflowInvocationActionsBuilder_ == null) { - ensureWorkflowInvocationActionsIsMutable(); - workflowInvocationActions_.remove(index); - onChanged(); - } else { - workflowInvocationActionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder - getWorkflowInvocationActionsBuilder(int index) { - return getWorkflowInvocationActionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder - getWorkflowInvocationActionsOrBuilder(int index) { - if (workflowInvocationActionsBuilder_ == null) { - return workflowInvocationActions_.get(index); - } else { - return workflowInvocationActionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder> - getWorkflowInvocationActionsOrBuilderList() { - if (workflowInvocationActionsBuilder_ != null) { - return workflowInvocationActionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workflowInvocationActions_); - } - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder - addWorkflowInvocationActionsBuilder() { - return getWorkflowInvocationActionsFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.getDefaultInstance()); - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder - addWorkflowInvocationActionsBuilder(int index) { - return getWorkflowInvocationActionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.getDefaultInstance()); - } - /** - * - * - *
-     * List of workflow invocation actions.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - public java.util.List - getWorkflowInvocationActionsBuilderList() { - return getWorkflowInvocationActionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder> - getWorkflowInvocationActionsFieldBuilder() { - if (workflowInvocationActionsBuilder_ == null) { - workflowInvocationActionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder>( - workflowInvocationActions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - workflowInvocationActions_ = null; - } - return workflowInvocationActionsBuilder_; - } - - 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.v1alpha2.QueryWorkflowInvocationActionsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse) - private static final com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWorkflowInvocationActionsResponse 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.v1alpha2.QueryWorkflowInvocationActionsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsResponseOrBuilder.java deleted file mode 100644 index efffc3989774..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsResponseOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface QueryWorkflowInvocationActionsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - java.util.List - getWorkflowInvocationActionsList(); - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction getWorkflowInvocationActions( - int index); - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - int getWorkflowInvocationActionsCount(); - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - java.util.List - getWorkflowInvocationActionsOrBuilderList(); - /** - * - * - *
-   * List of workflow invocation actions.
-   * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.WorkflowInvocationAction workflow_invocation_actions = 1; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder - getWorkflowInvocationActionsOrBuilder(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-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileRequest.java deleted file mode 100644 index eab878f8003d..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileRequest.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ReadFile` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ReadFileRequest} - */ -public final class ReadFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ReadFileRequest) - ReadFileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReadFileRequest.newBuilder() to construct. - private ReadFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReadFileRequest() { - workspace_ = ""; - path_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReadFileRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ReadFileRequest.class, - com.google.cloud.dataform.v1alpha2.ReadFileRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.v1alpha2.ReadFileRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ReadFileRequest other = - (com.google.cloud.dataform.v1alpha2.ReadFileRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().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.v1alpha2.ReadFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest 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.v1alpha2.ReadFileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest 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.v1alpha2.ReadFileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest 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.v1alpha2.ReadFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest 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.v1alpha2.ReadFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest 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.v1alpha2.ReadFileRequest 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; - } - /** - * - * - *
-   * `ReadFile` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ReadFileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ReadFileRequest) - com.google.cloud.dataform.v1alpha2.ReadFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ReadFileRequest.class, - com.google.cloud.dataform.v1alpha2.ReadFileRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ReadFileRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ReadFileRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ReadFileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ReadFileRequest build() { - com.google.cloud.dataform.v1alpha2.ReadFileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ReadFileRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.ReadFileRequest result = - new com.google.cloud.dataform.v1alpha2.ReadFileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.ReadFileRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 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.v1alpha2.ReadFileRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ReadFileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ReadFileRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.ReadFileRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = 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.lang.Object workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 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.v1alpha2.ReadFileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ReadFileRequest) - private static final com.google.cloud.dataform.v1alpha2.ReadFileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ReadFileRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadFileRequest 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.v1alpha2.ReadFileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileRequestOrBuilder.java deleted file mode 100644 index 17c66cde085f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileRequestOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ReadFileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ReadFileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileResponse.java deleted file mode 100644 index be63f765c11a..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileResponse.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ReadFile` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ReadFileResponse} - */ -public final class ReadFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ReadFileResponse) - ReadFileResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReadFileResponse.newBuilder() to construct. - private ReadFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReadFileResponse() { - fileContents_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReadFileResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ReadFileResponse.class, - com.google.cloud.dataform.v1alpha2.ReadFileResponse.Builder.class); - } - - public static final int FILE_CONTENTS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString fileContents_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-   * The file's contents.
-   * 
- * - * bytes file_contents = 1; - * - * @return The fileContents. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFileContents() { - return fileContents_; - } - - 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 (!fileContents_.isEmpty()) { - output.writeBytes(1, fileContents_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!fileContents_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, fileContents_); - } - 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.v1alpha2.ReadFileResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ReadFileResponse other = - (com.google.cloud.dataform.v1alpha2.ReadFileResponse) obj; - - if (!getFileContents().equals(other.getFileContents())) 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) + FILE_CONTENTS_FIELD_NUMBER; - hash = (53 * hash) + getFileContents().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse 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.v1alpha2.ReadFileResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse 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.v1alpha2.ReadFileResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse 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.v1alpha2.ReadFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse 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.v1alpha2.ReadFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse 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.v1alpha2.ReadFileResponse 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; - } - /** - * - * - *
-   * `ReadFile` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ReadFileResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ReadFileResponse) - com.google.cloud.dataform.v1alpha2.ReadFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ReadFileResponse.class, - com.google.cloud.dataform.v1alpha2.ReadFileResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ReadFileResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fileContents_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ReadFileResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ReadFileResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ReadFileResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ReadFileResponse build() { - com.google.cloud.dataform.v1alpha2.ReadFileResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ReadFileResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.ReadFileResponse result = - new com.google.cloud.dataform.v1alpha2.ReadFileResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.ReadFileResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fileContents_ = fileContents_; - } - } - - @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.v1alpha2.ReadFileResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ReadFileResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ReadFileResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.ReadFileResponse.getDefaultInstance()) - return this; - if (other.getFileContents() != com.google.protobuf.ByteString.EMPTY) { - setFileContents(other.getFileContents()); - } - 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: - { - fileContents_ = 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 fileContents_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * The file's contents.
-     * 
- * - * bytes file_contents = 1; - * - * @return The fileContents. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFileContents() { - return fileContents_; - } - /** - * - * - *
-     * The file's contents.
-     * 
- * - * bytes file_contents = 1; - * - * @param value The fileContents to set. - * @return This builder for chaining. - */ - public Builder setFileContents(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - fileContents_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The file's contents.
-     * 
- * - * bytes file_contents = 1; - * - * @return This builder for chaining. - */ - public Builder clearFileContents() { - bitField0_ = (bitField0_ & ~0x00000001); - fileContents_ = getDefaultInstance().getFileContents(); - 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.v1alpha2.ReadFileResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ReadFileResponse) - private static final com.google.cloud.dataform.v1alpha2.ReadFileResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ReadFileResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.ReadFileResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadFileResponse 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.v1alpha2.ReadFileResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileResponseOrBuilder.java deleted file mode 100644 index 199c10a630a4..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ReadFileResponseOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ReadFileResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ReadFileResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The file's contents.
-   * 
- * - * bytes file_contents = 1; - * - * @return The fileContents. - */ - com.google.protobuf.ByteString getFileContents(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RelationDescriptor.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RelationDescriptor.java deleted file mode 100644 index 7601c2d64fb1..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RelationDescriptor.java +++ /dev/null @@ -1,2866 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Describes a relation and its columns.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RelationDescriptor} - */ -public final class RelationDescriptor extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.RelationDescriptor) - RelationDescriptorOrBuilder { - private static final long serialVersionUID = 0L; - // Use RelationDescriptor.newBuilder() to construct. - private RelationDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RelationDescriptor() { - description_ = ""; - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RelationDescriptor(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetBigqueryLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.class, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder.class); - } - - public interface ColumnDescriptorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @return A list containing the path. - */ - java.util.List getPathList(); - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @return The count of path. - */ - int getPathCount(); - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @param index The index of the element to return. - * @return The path at the given index. - */ - java.lang.String getPath(int index); - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @param index The index of the value to return. - * @return The bytes of the path at the given index. - */ - com.google.protobuf.ByteString getPathBytes(int index); - - /** - * - * - *
-     * A textual description of the column.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-     * A textual description of the column.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return A list containing the bigqueryPolicyTags. - */ - java.util.List getBigqueryPolicyTagsList(); - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return The count of bigqueryPolicyTags. - */ - int getBigqueryPolicyTagsCount(); - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index of the element to return. - * @return The bigqueryPolicyTags at the given index. - */ - java.lang.String getBigqueryPolicyTags(int index); - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the bigqueryPolicyTags at the given index. - */ - com.google.protobuf.ByteString getBigqueryPolicyTagsBytes(int index); - } - /** - * - * - *
-   * Describes a column.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor} - */ - public static final class ColumnDescriptor extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor) - ColumnDescriptorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ColumnDescriptor.newBuilder() to construct. - private ColumnDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ColumnDescriptor() { - path_ = com.google.protobuf.LazyStringArrayList.emptyList(); - description_ = ""; - bigqueryPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ColumnDescriptor(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.class, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList path_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @return A list containing the path. - */ - public com.google.protobuf.ProtocolStringList getPathList() { - return path_; - } - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @return The count of path. - */ - public int getPathCount() { - return path_.size(); - } - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @param index The index of the element to return. - * @return The path at the given index. - */ - public java.lang.String getPath(int index) { - return path_.get(index); - } - /** - * - * - *
-     * The identifier for the column. Each entry in `path` represents one level
-     * of nesting.
-     * 
- * - * repeated string path = 1; - * - * @param index The index of the value to return. - * @return The bytes of the path at the given index. - */ - public com.google.protobuf.ByteString getPathBytes(int index) { - return path_.getByteString(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-     * A textual description of the column.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - * - * - *
-     * A textual description of the column.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BIGQUERY_POLICY_TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList bigqueryPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return A list containing the bigqueryPolicyTags. - */ - public com.google.protobuf.ProtocolStringList getBigqueryPolicyTagsList() { - return bigqueryPolicyTags_; - } - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return The count of bigqueryPolicyTags. - */ - public int getBigqueryPolicyTagsCount() { - return bigqueryPolicyTags_.size(); - } - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index of the element to return. - * @return The bigqueryPolicyTags at the given index. - */ - public java.lang.String getBigqueryPolicyTags(int index) { - return bigqueryPolicyTags_.get(index); - } - /** - * - * - *
-     * A list of BigQuery policy tags that will be applied to the column.
-     * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the bigqueryPolicyTags at the given index. - */ - public com.google.protobuf.ByteString getBigqueryPolicyTagsBytes(int index) { - return bigqueryPolicyTags_.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 < path_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - for (int i = 0; i < bigqueryPolicyTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, bigqueryPolicyTags_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < path_.size(); i++) { - dataSize += computeStringSizeNoTag(path_.getRaw(i)); - } - size += dataSize; - size += 1 * getPathList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - { - int dataSize = 0; - for (int i = 0; i < bigqueryPolicyTags_.size(); i++) { - dataSize += computeStringSizeNoTag(bigqueryPolicyTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getBigqueryPolicyTagsList().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.v1alpha2.RelationDescriptor.ColumnDescriptor)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor other = - (com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor) obj; - - if (!getPathList().equals(other.getPathList())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getBigqueryPolicyTagsList().equals(other.getBigqueryPolicyTagsList())) 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 (getPathCount() > 0) { - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPathList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getBigqueryPolicyTagsCount() > 0) { - hash = (37 * hash) + BIGQUERY_POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryPolicyTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor 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.v1alpha2.RelationDescriptor.ColumnDescriptor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor 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.v1alpha2.RelationDescriptor.ColumnDescriptor parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor 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.v1alpha2.RelationDescriptor.ColumnDescriptor - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - 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.v1alpha2.RelationDescriptor.ColumnDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor 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.v1alpha2.RelationDescriptor.ColumnDescriptor 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; - } - /** - * - * - *
-     * Describes a column.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor) - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.class, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - path_ = com.google.protobuf.LazyStringArrayList.emptyList(); - description_ = ""; - bigqueryPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_ColumnDescriptor_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor build() { - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor buildPartial() { - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor result = - new com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - path_.makeImmutable(); - result.path_ = path_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - bigqueryPolicyTags_.makeImmutable(); - result.bigqueryPolicyTags_ = bigqueryPolicyTags_; - } - } - - @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.v1alpha2.RelationDescriptor.ColumnDescriptor) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor other) { - if (other - == com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - .getDefaultInstance()) return this; - if (!other.path_.isEmpty()) { - if (path_.isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000001; - } else { - ensurePathIsMutable(); - path_.addAll(other.path_); - } - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.bigqueryPolicyTags_.isEmpty()) { - if (bigqueryPolicyTags_.isEmpty()) { - bigqueryPolicyTags_ = other.bigqueryPolicyTags_; - bitField0_ |= 0x00000004; - } else { - ensureBigqueryPolicyTagsIsMutable(); - bigqueryPolicyTags_.addAll(other.bigqueryPolicyTags_); - } - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePathIsMutable(); - path_.add(s); - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureBigqueryPolicyTagsIsMutable(); - bigqueryPolicyTags_.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 com.google.protobuf.LazyStringArrayList path_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePathIsMutable() { - if (!path_.isModifiable()) { - path_ = new com.google.protobuf.LazyStringArrayList(path_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @return A list containing the path. - */ - public com.google.protobuf.ProtocolStringList getPathList() { - path_.makeImmutable(); - return path_; - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @return The count of path. - */ - public int getPathCount() { - return path_.size(); - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @param index The index of the element to return. - * @return The path at the given index. - */ - public java.lang.String getPath(int index) { - return path_.get(index); - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @param index The index of the value to return. - * @return The bytes of the path at the given index. - */ - public com.google.protobuf.ByteString getPathBytes(int index) { - return path_.getByteString(index); - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @param index The index to set the value at. - * @param value The path to set. - * @return This builder for chaining. - */ - public Builder setPath(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathIsMutable(); - path_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @param value The path to add. - * @return This builder for chaining. - */ - public Builder addPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathIsMutable(); - path_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @param values The path to add. - * @return This builder for chaining. - */ - public Builder addAllPath(java.lang.Iterable values) { - ensurePathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, path_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * The identifier for the column. Each entry in `path` represents one level
-       * of nesting.
-       * 
- * - * repeated string path = 1; - * - * @param value The bytes of the path to add. - * @return This builder for chaining. - */ - public Builder addPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePathIsMutable(); - path_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-       * A textual description of the column.
-       * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A textual description of the column.
-       * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A textual description of the column.
-       * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * A textual description of the column.
-       * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * A textual description of the column.
-       * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList bigqueryPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureBigqueryPolicyTagsIsMutable() { - if (!bigqueryPolicyTags_.isModifiable()) { - bigqueryPolicyTags_ = new com.google.protobuf.LazyStringArrayList(bigqueryPolicyTags_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return A list containing the bigqueryPolicyTags. - */ - public com.google.protobuf.ProtocolStringList getBigqueryPolicyTagsList() { - bigqueryPolicyTags_.makeImmutable(); - return bigqueryPolicyTags_; - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return The count of bigqueryPolicyTags. - */ - public int getBigqueryPolicyTagsCount() { - return bigqueryPolicyTags_.size(); - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index of the element to return. - * @return The bigqueryPolicyTags at the given index. - */ - public java.lang.String getBigqueryPolicyTags(int index) { - return bigqueryPolicyTags_.get(index); - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index of the value to return. - * @return The bytes of the bigqueryPolicyTags at the given index. - */ - public com.google.protobuf.ByteString getBigqueryPolicyTagsBytes(int index) { - return bigqueryPolicyTags_.getByteString(index); - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param index The index to set the value at. - * @param value The bigqueryPolicyTags to set. - * @return This builder for chaining. - */ - public Builder setBigqueryPolicyTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBigqueryPolicyTagsIsMutable(); - bigqueryPolicyTags_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param value The bigqueryPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addBigqueryPolicyTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBigqueryPolicyTagsIsMutable(); - bigqueryPolicyTags_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param values The bigqueryPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addAllBigqueryPolicyTags(java.lang.Iterable values) { - ensureBigqueryPolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryPolicyTags_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @return This builder for chaining. - */ - public Builder clearBigqueryPolicyTags() { - bigqueryPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of BigQuery policy tags that will be applied to the column.
-       * 
- * - * repeated string bigquery_policy_tags = 3; - * - * @param value The bytes of the bigqueryPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addBigqueryPolicyTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureBigqueryPolicyTagsIsMutable(); - bigqueryPolicyTags_.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.v1alpha2.RelationDescriptor.ColumnDescriptor) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor) - private static final com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor(); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnDescriptor 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.v1alpha2.RelationDescriptor.ColumnDescriptor - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * A text description of the relation.
-   * 
- * - * string description = 1; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * A text description of the relation.
-   * 
- * - * string description = 1; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COLUMNS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List - columns_; - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - @java.lang.Override - public java.util.List - getColumnsList() { - return columns_; - } - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder> - getColumnsOrBuilderList() { - return columns_; - } - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - @java.lang.Override - public int getColumnsCount() { - return columns_.size(); - } - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor getColumns( - int index) { - return columns_.get(index); - } - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder - getColumnsOrBuilder(int index) { - return columns_.get(index); - } - - public static final int BIGQUERY_LABELS_FIELD_NUMBER = 3; - - private static final class BigqueryLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_BigqueryLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField bigqueryLabels_; - - private com.google.protobuf.MapField - internalGetBigqueryLabels() { - if (bigqueryLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BigqueryLabelsDefaultEntryHolder.defaultEntry); - } - return bigqueryLabels_; - } - - public int getBigqueryLabelsCount() { - return internalGetBigqueryLabels().getMap().size(); - } - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public boolean containsBigqueryLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetBigqueryLabels().getMap().containsKey(key); - } - /** Use {@link #getBigqueryLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getBigqueryLabels() { - return getBigqueryLabelsMap(); - } - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public java.util.Map getBigqueryLabelsMap() { - return internalGetBigqueryLabels().getMap(); - } - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getBigqueryLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetBigqueryLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public java.lang.String getBigqueryLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetBigqueryLabels().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(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - for (int i = 0; i < columns_.size(); i++) { - output.writeMessage(2, columns_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetBigqueryLabels(), BigqueryLabelsDefaultEntryHolder.defaultEntry, 3); - 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(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, columns_.get(i)); - } - for (java.util.Map.Entry entry : - internalGetBigqueryLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry bigqueryLabels__ = - BigqueryLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, bigqueryLabels__); - } - 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.v1alpha2.RelationDescriptor)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.RelationDescriptor other = - (com.google.cloud.dataform.v1alpha2.RelationDescriptor) obj; - - if (!getDescription().equals(other.getDescription())) return false; - if (!getColumnsList().equals(other.getColumnsList())) return false; - if (!internalGetBigqueryLabels().equals(other.internalGetBigqueryLabels())) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - if (!internalGetBigqueryLabels().getMap().isEmpty()) { - hash = (37 * hash) + BIGQUERY_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetBigqueryLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor 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.v1alpha2.RelationDescriptor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor 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.v1alpha2.RelationDescriptor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor 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.v1alpha2.RelationDescriptor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor 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.v1alpha2.RelationDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor 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.v1alpha2.RelationDescriptor 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; - } - /** - * - * - *
-   * Describes a relation and its columns.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RelationDescriptor} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.RelationDescriptor) - com.google.cloud.dataform.v1alpha2.RelationDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetBigqueryLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableBigqueryLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.class, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.RelationDescriptor.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - description_ = ""; - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - } else { - columns_ = null; - columnsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableBigqueryLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RelationDescriptor_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor build() { - com.google.cloud.dataform.v1alpha2.RelationDescriptor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RelationDescriptor buildPartial() { - com.google.cloud.dataform.v1alpha2.RelationDescriptor result = - new com.google.cloud.dataform.v1alpha2.RelationDescriptor(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.RelationDescriptor result) { - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.RelationDescriptor result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.bigqueryLabels_ = internalGetBigqueryLabels(); - result.bigqueryLabels_.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.v1alpha2.RelationDescriptor) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.RelationDescriptor) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.RelationDescriptor other) { - if (other == com.google.cloud.dataform.v1alpha2.RelationDescriptor.getDefaultInstance()) - return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000002); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getColumnsFieldBuilder() - : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - internalGetMutableBigqueryLabels().mergeFrom(other.internalGetBigqueryLabels()); - bitField0_ |= 0x00000004; - 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: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - .parser(), - extensionRegistry); - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(m); - } else { - columnsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry bigqueryLabels__ = - input.readMessage( - BigqueryLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableBigqueryLabels() - .getMutableMap() - .put(bigqueryLabels__.getKey(), bigqueryLabels__.getValue()); - 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 description_ = ""; - /** - * - * - *
-     * A text description of the relation.
-     * 
- * - * string description = 1; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A text description of the relation.
-     * 
- * - * string description = 1; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A text description of the relation.
-     * 
- * - * string description = 1; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * A text description of the relation.
-     * 
- * - * string description = 1; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * A text description of the relation.
-     * 
- * - * string description = 1; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List - columns_ = java.util.Collections.emptyList(); - - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - columns_ = - new java.util.ArrayList< - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor>(columns_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder> - columnsBuilder_; - - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public java.util.List - getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor getColumns( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder setColumns( - int index, com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder setColumns( - int index, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder addColumns( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder addColumns( - int index, com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder addColumns( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder addColumns( - int index, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder addAllColumns( - java.lang.Iterable< - ? extends com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor> - values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - getColumnsBuilder(int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder - getColumnsOrBuilder(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public java.util.List< - ? extends - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder> - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - addColumnsBuilder() { - return getColumnsFieldBuilder() - .addBuilder( - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - .getDefaultInstance()); - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder - addColumnsBuilder(int index) { - return getColumnsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor - .getDefaultInstance()); - } - /** - * - * - *
-     * A list of descriptions of columns within the relation.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - public java.util.List< - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder> - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor.Builder, - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder>( - columns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - columns_ = null; - } - return columnsBuilder_; - } - - private com.google.protobuf.MapField bigqueryLabels_; - - private com.google.protobuf.MapField - internalGetBigqueryLabels() { - if (bigqueryLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BigqueryLabelsDefaultEntryHolder.defaultEntry); - } - return bigqueryLabels_; - } - - private com.google.protobuf.MapField - internalGetMutableBigqueryLabels() { - if (bigqueryLabels_ == null) { - bigqueryLabels_ = - com.google.protobuf.MapField.newMapField(BigqueryLabelsDefaultEntryHolder.defaultEntry); - } - if (!bigqueryLabels_.isMutable()) { - bigqueryLabels_ = bigqueryLabels_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - return bigqueryLabels_; - } - - public int getBigqueryLabelsCount() { - return internalGetBigqueryLabels().getMap().size(); - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public boolean containsBigqueryLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetBigqueryLabels().getMap().containsKey(key); - } - /** Use {@link #getBigqueryLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getBigqueryLabels() { - return getBigqueryLabelsMap(); - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public java.util.Map getBigqueryLabelsMap() { - return internalGetBigqueryLabels().getMap(); - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getBigqueryLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetBigqueryLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - @java.lang.Override - public java.lang.String getBigqueryLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetBigqueryLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearBigqueryLabels() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableBigqueryLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - public Builder removeBigqueryLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableBigqueryLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableBigqueryLabels() { - bitField0_ |= 0x00000004; - return internalGetMutableBigqueryLabels().getMutableMap(); - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - public Builder putBigqueryLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableBigqueryLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - /** - * - * - *
-     * A set of BigQuery labels that should be applied to the relation.
-     * 
- * - * map<string, string> bigquery_labels = 3; - */ - public Builder putAllBigqueryLabels(java.util.Map values) { - internalGetMutableBigqueryLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000004; - 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.v1alpha2.RelationDescriptor) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.RelationDescriptor) - private static final com.google.cloud.dataform.v1alpha2.RelationDescriptor DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.RelationDescriptor(); - } - - public static com.google.cloud.dataform.v1alpha2.RelationDescriptor getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelationDescriptor 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.v1alpha2.RelationDescriptor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RelationDescriptorOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RelationDescriptorOrBuilder.java deleted file mode 100644 index 2b6cee01316f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RelationDescriptorOrBuilder.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface RelationDescriptorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.RelationDescriptor) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A text description of the relation.
-   * 
- * - * string description = 1; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * A text description of the relation.
-   * 
- * - * string description = 1; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - java.util.List - getColumnsList(); - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor getColumns(int index); - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - int getColumnsCount(); - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - java.util.List< - ? extends com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder> - getColumnsOrBuilderList(); - /** - * - * - *
-   * A list of descriptions of columns within the relation.
-   * 
- * - * repeated .google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptor columns = 2; - * - */ - com.google.cloud.dataform.v1alpha2.RelationDescriptor.ColumnDescriptorOrBuilder - getColumnsOrBuilder(int index); - - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - int getBigqueryLabelsCount(); - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - boolean containsBigqueryLabels(java.lang.String key); - /** Use {@link #getBigqueryLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getBigqueryLabels(); - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - java.util.Map getBigqueryLabelsMap(); - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - /* nullable */ - java.lang.String getBigqueryLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * A set of BigQuery labels that should be applied to the relation.
-   * 
- * - * map<string, string> bigquery_labels = 3; - */ - java.lang.String getBigqueryLabelsOrThrow(java.lang.String key); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveDirectoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveDirectoryRequest.java deleted file mode 100644 index 556c5648900f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveDirectoryRequest.java +++ /dev/null @@ -1,829 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `RemoveDirectory` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RemoveDirectoryRequest} - */ -public final class RemoveDirectoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) - RemoveDirectoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RemoveDirectoryRequest.newBuilder() to construct. - private RemoveDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RemoveDirectoryRequest() { - workspace_ = ""; - path_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RemoveDirectoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.class, - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.v1alpha2.RemoveDirectoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest other = - (com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().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.v1alpha2.RemoveDirectoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest 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.v1alpha2.RemoveDirectoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest 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.v1alpha2.RemoveDirectoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest 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.v1alpha2.RemoveDirectoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest 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.v1alpha2.RemoveDirectoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest 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.v1alpha2.RemoveDirectoryRequest 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; - } - /** - * - * - *
-   * `RemoveDirectory` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RemoveDirectoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.class, - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveDirectoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest build() { - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest result = - new com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 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.v1alpha2.RemoveDirectoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = 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.lang.Object workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The directory's full path including directory name, relative to the
-     * workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 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.v1alpha2.RemoveDirectoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) - private static final com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveDirectoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveDirectoryRequest 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.v1alpha2.RemoveDirectoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveDirectoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveDirectoryRequestOrBuilder.java deleted file mode 100644 index 625f1c988ab9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveDirectoryRequestOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface RemoveDirectoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.RemoveDirectoryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The directory's full path including directory name, relative to the
-   * workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveFileRequest.java deleted file mode 100644 index 7808e8b9d913..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveFileRequest.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `RemoveFile` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RemoveFileRequest} - */ -public final class RemoveFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.RemoveFileRequest) - RemoveFileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RemoveFileRequest.newBuilder() to construct. - private RemoveFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RemoveFileRequest() { - workspace_ = ""; - path_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RemoveFileRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RemoveFileRequest.class, - com.google.cloud.dataform.v1alpha2.RemoveFileRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.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(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.v1alpha2.RemoveFileRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.RemoveFileRequest other = - (com.google.cloud.dataform.v1alpha2.RemoveFileRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().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.v1alpha2.RemoveFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest 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.v1alpha2.RemoveFileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest 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.v1alpha2.RemoveFileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest 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.v1alpha2.RemoveFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest 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.v1alpha2.RemoveFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest 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.v1alpha2.RemoveFileRequest 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; - } - /** - * - * - *
-   * `RemoveFile` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.RemoveFileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.RemoveFileRequest) - com.google.cloud.dataform.v1alpha2.RemoveFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.RemoveFileRequest.class, - com.google.cloud.dataform.v1alpha2.RemoveFileRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.RemoveFileRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_RemoveFileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RemoveFileRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.RemoveFileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RemoveFileRequest build() { - com.google.cloud.dataform.v1alpha2.RemoveFileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RemoveFileRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.RemoveFileRequest result = - new com.google.cloud.dataform.v1alpha2.RemoveFileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.RemoveFileRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 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.v1alpha2.RemoveFileRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.RemoveFileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.RemoveFileRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.RemoveFileRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = 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.lang.Object workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's full path including filename, relative to the workspace root.
-     * 
- * - * string path = 2 [(.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_ |= 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.v1alpha2.RemoveFileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.RemoveFileRequest) - private static final com.google.cloud.dataform.v1alpha2.RemoveFileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.RemoveFileRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.RemoveFileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RemoveFileRequest 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.v1alpha2.RemoveFileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveFileRequestOrBuilder.java deleted file mode 100644 index f61559116643..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RemoveFileRequestOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface RemoveFileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.RemoveFileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The file's full path including filename, relative to the workspace root.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Repository.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Repository.java deleted file mode 100644 index e1f4645d3359..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Repository.java +++ /dev/null @@ -1,2438 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents a Dataform Git repository.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.Repository} - */ -public final class Repository extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.Repository) - RepositoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Repository.newBuilder() to construct. - private Repository(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Repository() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Repository(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Repository.class, - com.google.cloud.dataform.v1alpha2.Repository.Builder.class); - } - - public interface GitRemoteSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. The Git remote's URL.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The url. - */ - java.lang.String getUrl(); - /** - * - * - *
-     * Required. The Git remote's URL.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for url. - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
-     * Required. The Git remote's default branch name.
-     * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The defaultBranch. - */ - java.lang.String getDefaultBranch(); - /** - * - * - *
-     * Required. The Git remote's default branch name.
-     * 
- * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for defaultBranch. - */ - com.google.protobuf.ByteString getDefaultBranchBytes(); - - /** - * - * - *
-     * 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.String getAuthenticationTokenSecretVersion(); - /** - * - * - *
-     * 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. - */ - com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes(); - - /** - * - * - *
-     * Output only. Indicates the status of the Git access token.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tokenStatus. - */ - int getTokenStatusValue(); - /** - * - * - *
-     * Output only. Indicates the status of the Git access token.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tokenStatus. - */ - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus getTokenStatus(); - } - /** - * - * - *
-   * Controls Git remote configuration for a repository.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings} - */ - public static final class GitRemoteSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) - GitRemoteSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use GitRemoteSettings.newBuilder() to construct. - private GitRemoteSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GitRemoteSettings() { - url_ = ""; - defaultBranch_ = ""; - authenticationTokenSecretVersion_ = ""; - tokenStatus_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GitRemoteSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.class, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder.class); - } - - /** - * - * - *
-     * Indicates the status of a Git authentication token.
-     * 
- * - * Protobuf enum {@code google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.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.v1alpha2.Repository.GitRemoteSettings.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.v1alpha2.Repository.GitRemoteSettings.TokenStatus) - } - - 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 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; - } - } - - 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; - } - } - - public static final int AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER = 3; - - @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; - } - } - /** - * - * - *
-     * 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; - } - } - - 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.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tokenStatus. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus - getTokenStatus() { - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus result = - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus.forNumber( - tokenStatus_); - return result == null - ? com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings.TokenStatus - .TOKEN_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, tokenStatus_); - } - 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.v1alpha2.Repository.GitRemoteSettings.TokenStatus - .TOKEN_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, 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.v1alpha2.Repository.GitRemoteSettings)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings other = - (com.google.cloud.dataform.v1alpha2.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; - } - - @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(); - 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.v1alpha2.Repository.GitRemoteSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.class, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder.class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.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_ = ""; - tokenStatus_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_GitRemoteSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings build() { - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings buildPartial() { - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings result = - new com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.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.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.v1alpha2.Repository.GitRemoteSettings) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings other) { - if (other - == com.google.cloud.dataform.v1alpha2.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.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_ |= 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; - } - - 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_ = ""; - /** - * - * - *
-       * 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; - } - } - /** - * - * - *
-       * 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; - } - } - /** - * - * - *
-       * 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; - } - /** - * - * - *
-       * 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; - } - /** - * - * - *
-       * 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(); - return this; - } - - private int tokenStatus_ = 0; - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.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.v1alpha2.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; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tokenStatus. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus - getTokenStatus() { - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus result = - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus.forNumber( - tokenStatus_); - return result == null - ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings.TokenStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - tokenStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Indicates the status of the Git access token.
-       * 
- * - * - * .google.cloud.dataform.v1alpha2.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; - } - - @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.v1alpha2.Repository.GitRemoteSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings) - private static final com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings(); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository.GitRemoteSettings - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - 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 GIT_REMOTE_SETTINGS_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings gitRemoteSettings_; - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gitRemoteSettings. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getGitRemoteSettings() { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder - getGitRemoteSettingsOrBuilder() { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1alpha2.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_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getGitRemoteSettings()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); - } - 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.v1alpha2.Repository)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.Repository other = - (com.google.cloud.dataform.v1alpha2.Repository) obj; - - if (!getName().equals(other.getName())) return false; - if (hasGitRemoteSettings() != other.hasGitRemoteSettings()) return false; - if (hasGitRemoteSettings()) { - if (!getGitRemoteSettings().equals(other.getGitRemoteSettings())) 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 (hasGitRemoteSettings()) { - hash = (37 * hash) + GIT_REMOTE_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getGitRemoteSettings().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.Repository parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.Repository parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.Repository} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.Repository) - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Repository.class, - com.google.cloud.dataform.v1alpha2.Repository.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.Repository.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGitRemoteSettingsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - gitRemoteSettings_ = null; - if (gitRemoteSettingsBuilder_ != null) { - gitRemoteSettingsBuilder_.dispose(); - gitRemoteSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Repository_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository build() { - com.google.cloud.dataform.v1alpha2.Repository result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository buildPartial() { - com.google.cloud.dataform.v1alpha2.Repository result = - new com.google.cloud.dataform.v1alpha2.Repository(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.Repository result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gitRemoteSettings_ = - gitRemoteSettingsBuilder_ == null - ? gitRemoteSettings_ - : gitRemoteSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.Repository) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.Repository) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.Repository other) { - if (other == com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGitRemoteSettings()) { - mergeGitRemoteSettings(other.getGitRemoteSettings()); - } - 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( - 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; - } - - private int bitField0_; - - 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; - } - } - /** - * - * - *
-     * 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; - } - } - /** - * - * - *
-     * 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 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; - } - - private com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings gitRemoteSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder> - gitRemoteSettingsBuilder_; - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gitRemoteSettings field is set. - */ - public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gitRemoteSettings. - */ - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getGitRemoteSettings() { - if (gitRemoteSettingsBuilder_ == null) { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } else { - return gitRemoteSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGitRemoteSettings( - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings value) { - if (gitRemoteSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gitRemoteSettings_ = value; - } else { - gitRemoteSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGitRemoteSettings( - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder builderForValue) { - if (gitRemoteSettingsBuilder_ == null) { - gitRemoteSettings_ = builderForValue.build(); - } else { - gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGitRemoteSettings( - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings value) { - if (gitRemoteSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && gitRemoteSettings_ != null - && gitRemoteSettings_ - != com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings - .getDefaultInstance()) { - getGitRemoteSettingsBuilder().mergeFrom(value); - } else { - gitRemoteSettings_ = value; - } - } else { - gitRemoteSettingsBuilder_.mergeFrom(value); - } - if (gitRemoteSettings_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGitRemoteSettings() { - bitField0_ = (bitField0_ & ~0x00000002); - 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.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder - getGitRemoteSettingsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getGitRemoteSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder - getGitRemoteSettingsOrBuilder() { - if (gitRemoteSettingsBuilder_ != null) { - return gitRemoteSettingsBuilder_.getMessageOrBuilder(); - } else { - return gitRemoteSettings_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.getDefaultInstance() - : gitRemoteSettings_; - } - } - /** - * - * - *
-     * Optional. If set, configures this repository to be linked to a Git remote.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder> - getGitRemoteSettingsFieldBuilder() { - if (gitRemoteSettingsBuilder_ == null) { - gitRemoteSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.Builder, - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder>( - getGitRemoteSettings(), getParentForChildren(), isClean()); - gitRemoteSettings_ = null; - } - return gitRemoteSettingsBuilder_; - } - - @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.v1alpha2.Repository) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.Repository) - private static final com.google.cloud.dataform.v1alpha2.Repository DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.Repository(); - } - - public static com.google.cloud.dataform.v1alpha2.Repository getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Repository 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.v1alpha2.Repository getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RepositoryName.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RepositoryName.java deleted file mode 100644 index 92696ab8852c..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RepositoryName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -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 RepositoryName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REPOSITORY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/repositories/{repository}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String repository; - - @Deprecated - protected RepositoryName() { - project = null; - location = null; - repository = null; - } - - private RepositoryName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - repository = Preconditions.checkNotNull(builder.getRepository()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RepositoryName of(String project, String location, String repository) { - return newBuilder().setProject(project).setLocation(location).setRepository(repository).build(); - } - - public static String format(String project, String location, String repository) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .build() - .toString(); - } - - public static RepositoryName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REPOSITORY.validatedMatch( - formattedString, "RepositoryName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("repository")); - } - - 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 (RepositoryName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_REPOSITORY.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); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REPOSITORY.instantiate( - "project", project, "location", location, "repository", repository); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - RepositoryName that = ((RepositoryName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.repository, that.repository); - } - 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); - return h; - } - - /** Builder for projects/{project}/locations/{location}/repositories/{repository}. */ - public static class Builder { - private String project; - private String location; - private String repository; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - 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; - } - - private Builder(RepositoryName repositoryName) { - this.project = repositoryName.project; - this.location = repositoryName.location; - this.repository = repositoryName.repository; - } - - public RepositoryName build() { - return new RepositoryName(this); - } - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RepositoryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RepositoryOrBuilder.java deleted file mode 100644 index fa0169dbcb01..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/RepositoryOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface RepositoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.Repository) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The repository's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The repository's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gitRemoteSettings field is set. - */ - boolean hasGitRemoteSettings(); - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gitRemoteSettings. - */ - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings getGitRemoteSettings(); - /** - * - * - *
-   * Optional. If set, configures this repository to be linked to a Git remote.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataform.v1alpha2.Repository.GitRemoteSettingsOrBuilder - getGitRemoteSettingsOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ResetWorkspaceChangesRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ResetWorkspaceChangesRequest.java deleted file mode 100644 index 3e984cbc2b0b..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ResetWorkspaceChangesRequest.java +++ /dev/null @@ -1,1030 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `ResetWorkspaceChanges` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest} - */ -public final class ResetWorkspaceChangesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) - ResetWorkspaceChangesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResetWorkspaceChangesRequest.newBuilder() to construct. - private ResetWorkspaceChangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResetWorkspaceChangesRequest() { - name_ = ""; - paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResetWorkspaceChangesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.class, - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The workspace'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 workspace'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 PATHS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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]; - * - * @return A list containing the paths. - */ - public com.google.protobuf.ProtocolStringList getPathsList() { - return paths_; - } - /** - * - * - *
-   * Optional. Full file paths to reset back to their committed state including filename,
-   * rooted at workspace root. If left empty, all files will be reset.
-   * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of paths. - */ - public int getPathsCount() { - return paths_.size(); - } - /** - * - * - *
-   * 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]; - * - * @param index The index of the element to return. - * @return The paths at the given index. - */ - public java.lang.String getPaths(int index) { - return paths_.get(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.
-   * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - public com.google.protobuf.ByteString getPathsBytes(int index) { - return paths_.getByteString(index); - } - - public static final int CLEAN_FIELD_NUMBER = 3; - private boolean clean_ = false; - /** - * - * - *
-   * Optional. If set to true, untracked files will be deleted.
-   * 
- * - * bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clean. - */ - @java.lang.Override - public boolean getClean() { - return clean_; - } - - 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_); - } - for (int i = 0; i < paths_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); - } - if (clean_ != false) { - output.writeBool(3, clean_); - } - 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_); - } - { - int dataSize = 0; - for (int i = 0; i < paths_.size(); i++) { - dataSize += computeStringSizeNoTag(paths_.getRaw(i)); - } - size += dataSize; - size += 1 * getPathsList().size(); - } - if (clean_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, clean_); - } - 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.v1alpha2.ResetWorkspaceChangesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest other = - (com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getPathsList().equals(other.getPathsList())) return false; - if (getClean() != other.getClean()) 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 (getPathsCount() > 0) { - hash = (37 * hash) + PATHS_FIELD_NUMBER; - hash = (53 * hash) + getPathsList().hashCode(); - } - hash = (37 * hash) + CLEAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClean()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest 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.v1alpha2.ResetWorkspaceChangesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest 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.v1alpha2.ResetWorkspaceChangesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest 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.v1alpha2.ResetWorkspaceChangesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest 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.v1alpha2.ResetWorkspaceChangesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest 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.v1alpha2.ResetWorkspaceChangesRequest 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; - } - /** - * - * - *
-   * `ResetWorkspaceChanges` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.class, - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); - clean_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_ResetWorkspaceChangesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest build() { - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest result = - new com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - paths_.makeImmutable(); - result.paths_ = paths_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clean_ = clean_; - } - } - - @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.v1alpha2.ResetWorkspaceChangesRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest other) { - if (other - == com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.paths_.isEmpty()) { - if (paths_.isEmpty()) { - paths_ = other.paths_; - bitField0_ |= 0x00000002; - } else { - ensurePathsIsMutable(); - paths_.addAll(other.paths_); - } - onChanged(); - } - if (other.getClean() != false) { - setClean(other.getClean()); - } - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePathsIsMutable(); - paths_.add(s); - break; - } // case 18 - case 24: - { - clean_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - 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 workspace'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 workspace'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 workspace'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 workspace'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 workspace'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.protobuf.LazyStringArrayList paths_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePathsIsMutable() { - if (!paths_.isModifiable()) { - paths_ = new com.google.protobuf.LazyStringArrayList(paths_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-     * 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]; - * - * @return A list containing the paths. - */ - public com.google.protobuf.ProtocolStringList getPathsList() { - paths_.makeImmutable(); - return paths_; - } - /** - * - * - *
-     * Optional. Full file paths to reset back to their committed state including filename,
-     * rooted at workspace root. If left empty, all files will be reset.
-     * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of paths. - */ - public int getPathsCount() { - return paths_.size(); - } - /** - * - * - *
-     * 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]; - * - * @param index The index of the element to return. - * @return The paths at the given index. - */ - public java.lang.String getPaths(int index) { - return paths_.get(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.
-     * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - public com.google.protobuf.ByteString getPathsBytes(int index) { - return paths_.getByteString(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.
-     * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The paths to set. - * @return This builder for chaining. - */ - public Builder setPaths(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The paths to add. - * @return This builder for chaining. - */ - public Builder addPaths(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePathsIsMutable(); - paths_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param values The paths to add. - * @return This builder for chaining. - */ - public Builder addAllPaths(java.lang.Iterable values) { - ensurePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearPaths() { - paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes of the paths to add. - * @return This builder for chaining. - */ - public Builder addPathsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePathsIsMutable(); - paths_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean clean_; - /** - * - * - *
-     * Optional. If set to true, untracked files will be deleted.
-     * 
- * - * bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clean. - */ - @java.lang.Override - public boolean getClean() { - return clean_; - } - /** - * - * - *
-     * Optional. If set to true, untracked files will be deleted.
-     * 
- * - * bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clean to set. - * @return This builder for chaining. - */ - public Builder setClean(boolean value) { - - clean_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set to true, untracked files will be deleted.
-     * 
- * - * bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClean() { - bitField0_ = (bitField0_ & ~0x00000004); - clean_ = 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.v1alpha2.ResetWorkspaceChangesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) - private static final com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetWorkspaceChangesRequest 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.v1alpha2.ResetWorkspaceChangesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ResetWorkspaceChangesRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ResetWorkspaceChangesRequestOrBuilder.java deleted file mode 100644 index 14bfedd7de74..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ResetWorkspaceChangesRequestOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface ResetWorkspaceChangesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.ResetWorkspaceChangesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The workspace'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. 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]; - * - * @return A list containing the paths. - */ - java.util.List 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.
-   * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of paths. - */ - 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.
-   * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The paths at the given index. - */ - 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.
-   * 
- * - * repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the paths at the given index. - */ - com.google.protobuf.ByteString getPathsBytes(int index); - - /** - * - * - *
-   * Optional. If set to true, untracked files will be deleted.
-   * 
- * - * bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clean. - */ - boolean getClean(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Target.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Target.java deleted file mode 100644 index e7d46c12b641..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Target.java +++ /dev/null @@ -1,990 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents an action identifier. If the action writes output, the output
- * will be written to the referenced database object.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.Target} - */ -public final class Target extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.Target) - TargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Target.newBuilder() to construct. - private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Target() { - database_ = ""; - schema_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Target(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Target_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Target.class, - com.google.cloud.dataform.v1alpha2.Target.Builder.class); - } - - public static final int DATABASE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object database_ = ""; - /** - * - * - *
-   * The action's database (Google Cloud project ID) .
-   * 
- * - * string database = 1; - * - * @return The database. - */ - @java.lang.Override - public java.lang.String getDatabase() { - java.lang.Object ref = database_; - 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(); - database_ = s; - return s; - } - } - /** - * - * - *
-   * The action's database (Google Cloud project ID) .
-   * 
- * - * string database = 1; - * - * @return The bytes for database. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { - java.lang.Object ref = database_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - database_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object schema_ = ""; - /** - * - * - *
-   * The action's schema (BigQuery dataset ID), within `database`.
-   * 
- * - * string schema = 2; - * - * @return The schema. - */ - @java.lang.Override - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - 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(); - schema_ = s; - return s; - } - } - /** - * - * - *
-   * The action's schema (BigQuery dataset ID), within `database`.
-   * 
- * - * string schema = 2; - * - * @return The bytes for schema. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The action's name, within `database` and `schema`.
-   * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-   * The action's name, within `database` and `schema`.
-   * 
- * - * string name = 3; - * - * @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(database_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schema_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, 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(database_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schema_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.v1alpha2.Target)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.Target other = - (com.google.cloud.dataform.v1alpha2.Target) obj; - - if (!getDatabase().equals(other.getDatabase())) return false; - if (!getSchema().equals(other.getSchema())) return false; - 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) + DATABASE_FIELD_NUMBER; - hash = (53 * hash) + getDatabase().hashCode(); - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().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.v1alpha2.Target parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.Target 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.v1alpha2.Target parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.Target 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.v1alpha2.Target parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.Target parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.Target parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.Target 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.v1alpha2.Target parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.Target 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.v1alpha2.Target parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.Target 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.v1alpha2.Target 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 an action identifier. If the action writes output, the output
-   * will be written to the referenced database object.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.Target} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.Target) - com.google.cloud.dataform.v1alpha2.TargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Target_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Target.class, - com.google.cloud.dataform.v1alpha2.Target.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.Target.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - database_ = ""; - schema_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Target_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target build() { - com.google.cloud.dataform.v1alpha2.Target result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target buildPartial() { - com.google.cloud.dataform.v1alpha2.Target result = - new com.google.cloud.dataform.v1alpha2.Target(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.Target result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.database_ = database_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.schema_ = schema_; - } - if (((from_bitField0_ & 0x00000004) != 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.v1alpha2.Target) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.Target) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.Target other) { - if (other == com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) return this; - if (!other.getDatabase().isEmpty()) { - database_ = other.database_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSchema().isEmpty()) { - schema_ = other.schema_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - 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: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - name_ = 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 database_ = ""; - /** - * - * - *
-     * The action's database (Google Cloud project ID) .
-     * 
- * - * string database = 1; - * - * @return The database. - */ - public java.lang.String getDatabase() { - java.lang.Object ref = database_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - database_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The action's database (Google Cloud project ID) .
-     * 
- * - * string database = 1; - * - * @return The bytes for database. - */ - public com.google.protobuf.ByteString getDatabaseBytes() { - java.lang.Object ref = database_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - database_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The action's database (Google Cloud project ID) .
-     * 
- * - * string database = 1; - * - * @param value The database to set. - * @return This builder for chaining. - */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - database_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The action's database (Google Cloud project ID) .
-     * 
- * - * string database = 1; - * - * @return This builder for chaining. - */ - public Builder clearDatabase() { - database_ = getDefaultInstance().getDatabase(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The action's database (Google Cloud project ID) .
-     * 
- * - * string database = 1; - * - * @param value The bytes for database to set. - * @return This builder for chaining. - */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - database_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object schema_ = ""; - /** - * - * - *
-     * The action's schema (BigQuery dataset ID), within `database`.
-     * 
- * - * string schema = 2; - * - * @return The schema. - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The action's schema (BigQuery dataset ID), within `database`.
-     * 
- * - * string schema = 2; - * - * @return The bytes for schema. - */ - public com.google.protobuf.ByteString getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The action's schema (BigQuery dataset ID), within `database`.
-     * 
- * - * string schema = 2; - * - * @param value The schema to set. - * @return This builder for chaining. - */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The action's schema (BigQuery dataset ID), within `database`.
-     * 
- * - * string schema = 2; - * - * @return This builder for chaining. - */ - public Builder clearSchema() { - schema_ = getDefaultInstance().getSchema(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The action's schema (BigQuery dataset ID), within `database`.
-     * 
- * - * string schema = 2; - * - * @param value The bytes for schema to set. - * @return This builder for chaining. - */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - schema_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The action's name, within `database` and `schema`.
-     * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-     * The action's name, within `database` and `schema`.
-     * 
- * - * string name = 3; - * - * @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; - } - } - /** - * - * - *
-     * The action's name, within `database` and `schema`.
-     * 
- * - * string name = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The action's name, within `database` and `schema`.
-     * 
- * - * string name = 3; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * The action's name, within `database` and `schema`.
-     * 
- * - * string name = 3; - * - * @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_ |= 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.v1alpha2.Target) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.Target) - private static final com.google.cloud.dataform.v1alpha2.Target DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.Target(); - } - - public static com.google.cloud.dataform.v1alpha2.Target getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Target 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.v1alpha2.Target getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/TargetOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/TargetOrBuilder.java deleted file mode 100644 index db81c31fb436..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/TargetOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface TargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.Target) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The action's database (Google Cloud project ID) .
-   * 
- * - * string database = 1; - * - * @return The database. - */ - java.lang.String getDatabase(); - /** - * - * - *
-   * The action's database (Google Cloud project ID) .
-   * 
- * - * string database = 1; - * - * @return The bytes for database. - */ - com.google.protobuf.ByteString getDatabaseBytes(); - - /** - * - * - *
-   * The action's schema (BigQuery dataset ID), within `database`.
-   * 
- * - * string schema = 2; - * - * @return The schema. - */ - java.lang.String getSchema(); - /** - * - * - *
-   * The action's schema (BigQuery dataset ID), within `database`.
-   * 
- * - * string schema = 2; - * - * @return The bytes for schema. - */ - com.google.protobuf.ByteString getSchemaBytes(); - - /** - * - * - *
-   * The action's name, within `database` and `schema`.
-   * 
- * - * string name = 3; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The action's name, within `database` and `schema`.
-   * 
- * - * string name = 3; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/UpdateRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/UpdateRepositoryRequest.java deleted file mode 100644 index 3ffbbdd05c0f..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/UpdateRepositoryRequest.java +++ /dev/null @@ -1,1035 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `UpdateRepository` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.UpdateRepositoryRequest} - */ -public final class UpdateRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) - UpdateRepositoryRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateRepositoryRequest.newBuilder() to construct. - private UpdateRepositoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateRepositoryRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateRepositoryRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.Builder.class); - } - - private int bitField0_; - public static final int UPDATE_MASK_FIELD_NUMBER = 1; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * 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]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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]; - * - * - * @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 repository. 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 REPOSITORY_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.Repository repository_; - /** - * - * - *
-   * Required. The repository to update.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the repository field is set. - */ - @java.lang.Override - public boolean hasRepository() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Required. The repository to update.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The repository. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Repository getRepository() { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } - /** - * - * - *
-   * Required. The repository to update.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoryOrBuilder() { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getUpdateMask()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getRepository()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRepository()); - } - 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.v1alpha2.UpdateRepositoryRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest other = - (com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) obj; - - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (hasRepository() != other.hasRepository()) return false; - if (hasRepository()) { - if (!getRepository().equals(other.getRepository())) 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 (hasRepository()) { - hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getRepository().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest 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.v1alpha2.UpdateRepositoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest 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.v1alpha2.UpdateRepositoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest 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.v1alpha2.UpdateRepositoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest 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.v1alpha2.UpdateRepositoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest 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.v1alpha2.UpdateRepositoryRequest 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; - } - /** - * - * - *
-   * `UpdateRepository` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.UpdateRepositoryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.class, - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getUpdateMaskFieldBuilder(); - getRepositoryFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - repository_ = null; - if (repositoryBuilder_ != null) { - repositoryBuilder_.dispose(); - repositoryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_UpdateRepositoryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest build() { - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest result = - new com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.repository_ = repositoryBuilder_ == null ? repository_ : repositoryBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.UpdateRepositoryRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest.getDefaultInstance()) - return this; - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasRepository()) { - mergeRepository(other.getRepository()); - } - 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(getRepositoryFieldBuilder().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 repository. 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 repository. 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 repository. 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 repository. 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 repository. 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); - } - if (updateMask_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * 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]; - * - */ - 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 repository. 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 repository. 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 repository. 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.v1alpha2.Repository repository_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder> - repositoryBuilder_; - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the repository field is set. - */ - public boolean hasRepository() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The repository. - */ - public com.google.cloud.dataform.v1alpha2.Repository getRepository() { - if (repositoryBuilder_ == null) { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } else { - return repositoryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRepository(com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - repository_ = value; - } else { - repositoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRepository( - com.google.cloud.dataform.v1alpha2.Repository.Builder builderForValue) { - if (repositoryBuilder_ == null) { - repository_ = builderForValue.build(); - } else { - repositoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRepository(com.google.cloud.dataform.v1alpha2.Repository value) { - if (repositoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && repository_ != null - && repository_ != com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance()) { - getRepositoryBuilder().mergeFrom(value); - } else { - repository_ = value; - } - } else { - repositoryBuilder_.mergeFrom(value); - } - if (repository_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRepository() { - bitField0_ = (bitField0_ & ~0x00000002); - repository_ = null; - if (repositoryBuilder_ != null) { - repositoryBuilder_.dispose(); - repositoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.Repository.Builder getRepositoryBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getRepositoryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoryOrBuilder() { - if (repositoryBuilder_ != null) { - return repositoryBuilder_.getMessageOrBuilder(); - } else { - return repository_ == null - ? com.google.cloud.dataform.v1alpha2.Repository.getDefaultInstance() - : repository_; - } - } - /** - * - * - *
-     * Required. The repository to update.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder> - getRepositoryFieldBuilder() { - if (repositoryBuilder_ == null) { - repositoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Repository, - com.google.cloud.dataform.v1alpha2.Repository.Builder, - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder>( - getRepository(), getParentForChildren(), isClean()); - repository_ = null; - } - return repositoryBuilder_; - } - - @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.v1alpha2.UpdateRepositoryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) - private static final com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.UpdateRepositoryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRepositoryRequest 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.v1alpha2.UpdateRepositoryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/UpdateRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/UpdateRepositoryRequestOrBuilder.java deleted file mode 100644 index bb8fdf82e1a6..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/UpdateRepositoryRequestOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface UpdateRepositoryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.UpdateRepositoryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Required. The repository to update.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the repository field is set. - */ - boolean hasRepository(); - /** - * - * - *
-   * Required. The repository to update.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The repository. - */ - com.google.cloud.dataform.v1alpha2.Repository getRepository(); - /** - * - * - *
-   * Required. The repository to update.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataform.v1alpha2.RepositoryOrBuilder getRepositoryOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocation.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocation.java deleted file mode 100644 index 01491062c571..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocation.java +++ /dev/null @@ -1,3595 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents a single invocation of a compilation result.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocation} - */ -public final class WorkflowInvocation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation) - WorkflowInvocationOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowInvocation.newBuilder() to construct. - private WorkflowInvocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowInvocation() { - name_ = ""; - compilationResult_ = ""; - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowInvocation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder.class); - } - - /** - * - * - *
-   * Represents the current state of a workflow invocation.
-   * 
- * - * Protobuf enum {@code google.cloud.dataform.v1alpha2.WorkflowInvocation.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This value is unused.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The workflow invocation is currently running.
-     * 
- * - * RUNNING = 1; - */ - RUNNING(1), - /** - * - * - *
-     * The workflow invocation succeeded. A terminal state.
-     * 
- * - * SUCCEEDED = 2; - */ - SUCCEEDED(2), - /** - * - * - *
-     * The workflow invocation was cancelled. A terminal state.
-     * 
- * - * CANCELLED = 3; - */ - CANCELLED(3), - /** - * - * - *
-     * The workflow invocation failed. A terminal state.
-     * 
- * - * FAILED = 4; - */ - FAILED(4), - /** - * - * - *
-     * The workflow invocation is being cancelled, but some actions are still
-     * running.
-     * 
- * - * CANCELING = 5; - */ - CANCELING(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This value is unused.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The workflow invocation is currently running.
-     * 
- * - * RUNNING = 1; - */ - public static final int RUNNING_VALUE = 1; - /** - * - * - *
-     * The workflow invocation succeeded. A terminal state.
-     * 
- * - * SUCCEEDED = 2; - */ - public static final int SUCCEEDED_VALUE = 2; - /** - * - * - *
-     * The workflow invocation was cancelled. A terminal state.
-     * 
- * - * CANCELLED = 3; - */ - public static final int CANCELLED_VALUE = 3; - /** - * - * - *
-     * The workflow invocation failed. A terminal state.
-     * 
- * - * FAILED = 4; - */ - public static final int FAILED_VALUE = 4; - /** - * - * - *
-     * The workflow invocation is being cancelled, but some actions are still
-     * running.
-     * 
- * - * CANCELING = 5; - */ - public static final int CANCELING_VALUE = 5; - - 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 State 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 State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return CANCELLED; - case 4: - return FAILED; - case 5: - return CANCELING; - 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 State findValueByNumber(int number) { - return State.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.v1alpha2.WorkflowInvocation.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final State[] VALUES = values(); - - public static State 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 State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1alpha2.WorkflowInvocation.State) - } - - public interface InvocationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - com.google.cloud.dataform.v1alpha2.Target getIncludedTargets(int index); - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - int getIncludedTargetsCount(); - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - com.google.cloud.dataform.v1alpha2.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(); - - /** - * - * - *
-     * 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.v1alpha2.WorkflowInvocation.InvocationConfig} - */ - public static final class InvocationConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.class, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getIncludedTargets(int index) { - return includedTargets_.get(index); - } - /** - * - * - *
-     * Immutable. The set of action identifiers to include.
-     * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.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); - } - - 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_; - } - - 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. - */ - @java.lang.Override - public boolean getTransitiveDependentsIncluded() { - return transitiveDependentsIncluded_; - } - - 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.v1alpha2.WorkflowInvocation.InvocationConfig)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig other = - (com.google.cloud.dataform.v1alpha2.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.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.WorkflowInvocation.InvocationConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig) - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig build() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig buildPartial() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig result = - new com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.WorkflowInvocation.InvocationConfig) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig other) { - if (other - == com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target m = - input.readMessage( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - includedTargetsBuilder_; - - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setIncludedTargets( - int index, com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setIncludedTargets( - int index, com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets(com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets( - int index, com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets( - com.google.cloud.dataform.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder addIncludedTargets( - int index, com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getIncludedTargetsBuilder( - int index) { - return getIncludedTargetsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.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.v1alpha2.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.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addIncludedTargetsBuilder() { - return getIncludedTargetsFieldBuilder() - .addBuilder(com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder addIncludedTargetsBuilder( - int index) { - return getIncludedTargetsFieldBuilder() - .addBuilder(index, com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()); - } - /** - * - * - *
-       * Immutable. The set of action identifiers to include.
-       * 
- * - * - * repeated .google.cloud.dataform.v1alpha2.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.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getIncludedTargetsFieldBuilder() { - if (includedTargetsBuilder_ == null) { - includedTargetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.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.v1alpha2.WorkflowInvocation.InvocationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig) - private static final com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig(); - } - - public static com.google.cloud.dataform.v1alpha2.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; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The workflow invocation'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 invocation'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 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
-   * `projects/*/locations/*/repositories/*/compilationResults/*`.
-   * 
- * - * - * string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The compilationResult. - */ - @java.lang.Override - public java.lang.String getCompilationResult() { - java.lang.Object ref = compilationResult_; - 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; - return s; - } - } - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for compilationResult. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCompilationResultBytes() { - java.lang.Object ref = compilationResult_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilationResult_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INVOCATION_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocationConfig_; - /** - * - * - *
-   * Immutable. If left unset, a default InvocationConfig will be used.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return Whether the invocationConfig field is set. - */ - @java.lang.Override - public boolean hasInvocationConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Immutable. If left unset, a default InvocationConfig will be used.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The invocationConfig. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - getInvocationConfig() { - return invocationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - .getDefaultInstance() - : invocationConfig_; - } - /** - * - * - *
-   * Immutable. If left unset, a default InvocationConfig will be used.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder - getInvocationConfigOrBuilder() { - return invocationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - .getDefaultInstance() - : invocationConfig_; - } - - public static final int STATE_FIELD_NUMBER = 4; - private int state_ = 0; - /** - * - * - *
-   * Output only. This workflow invocation's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. This workflow invocation's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State getState() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State result = - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.forNumber(state_); - return result == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.UNRECOGNIZED - : result; - } - - public static final int INVOCATION_TIMING_FIELD_NUMBER = 5; - private com.google.type.Interval invocationTiming_; - /** - * - * - *
-   * Output only. This workflow invocation's timing details.
-   * 
- * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the invocationTiming field is set. - */ - @java.lang.Override - public boolean hasInvocationTiming() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. This workflow invocation's timing details.
-   * 
- * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The invocationTiming. - */ - @java.lang.Override - public com.google.type.Interval getInvocationTiming() { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } - /** - * - * - *
-   * Output only. This workflow invocation's timing details.
-   * 
- * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder() { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } - - 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(compilationResult_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compilationResult_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getInvocationConfig()); - } - if (state_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, state_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getInvocationTiming()); - } - 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(compilationResult_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compilationResult_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvocationConfig()); - } - if (state_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming()); - } - 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.v1alpha2.WorkflowInvocation)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.WorkflowInvocation other = - (com.google.cloud.dataform.v1alpha2.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; - } - if (state_ != other.state_) return false; - if (hasInvocationTiming() != other.hasInvocationTiming()) return false; - if (hasInvocationTiming()) { - if (!getInvocationTiming().equals(other.getInvocationTiming())) 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) + COMPILATION_RESULT_FIELD_NUMBER; - hash = (53 * hash) + getCompilationResult().hashCode(); - if (hasInvocationConfig()) { - hash = (37 * hash) + INVOCATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getInvocationConfig().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasInvocationTiming()) { - hash = (37 * hash) + INVOCATION_TIMING_FIELD_NUMBER; - hash = (53 * hash) + getInvocationTiming().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation 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 invocation of a compilation result.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation) - com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.WorkflowInvocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getInvocationConfigFieldBuilder(); - getInvocationTimingFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - compilationResult_ = ""; - invocationConfig_ = null; - if (invocationConfigBuilder_ != null) { - invocationConfigBuilder_.dispose(); - invocationConfigBuilder_ = null; - } - state_ = 0; - invocationTiming_ = null; - if (invocationTimingBuilder_ != null) { - invocationTimingBuilder_.dispose(); - invocationTimingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation build() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation buildPartial() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocation result = - new com.google.cloud.dataform.v1alpha2.WorkflowInvocation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.WorkflowInvocation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.compilationResult_ = compilationResult_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.invocationConfig_ = - invocationConfigBuilder_ == null ? invocationConfig_ : invocationConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.invocationTiming_ = - invocationTimingBuilder_ == null ? invocationTiming_ : invocationTimingBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.WorkflowInvocation) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.WorkflowInvocation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.WorkflowInvocation other) { - if (other == com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCompilationResult().isEmpty()) { - compilationResult_ = other.compilationResult_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasInvocationConfig()) { - mergeInvocationConfig(other.getInvocationConfig()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasInvocationTiming()) { - mergeInvocationTiming(other.getInvocationTiming()); - } - 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: - { - compilationResult_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getInvocationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - getInvocationTimingFieldBuilder().getBuilder(), extensionRegistry); - 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_ = ""; - /** - * - * - *
-     * Output only. The workflow invocation'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 invocation'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 invocation'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 invocation'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 invocation'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 compilationResult_ = ""; - /** - * - * - *
-     * 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) = { ... } - * - * - * @return The compilationResult. - */ - public java.lang.String getCompilationResult() { - java.lang.Object ref = compilationResult_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilationResult_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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) = { ... } - * - * - * @return The bytes for compilationResult. - */ - public com.google.protobuf.ByteString getCompilationResultBytes() { - java.lang.Object ref = compilationResult_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilationResult_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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) = { ... } - * - * - * @param value The compilationResult to set. - * @return This builder for chaining. - */ - public Builder setCompilationResult(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - compilationResult_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearCompilationResult() { - compilationResult_ = getDefaultInstance().getCompilationResult(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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) = { ... } - * - * - * @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); - compilationResult_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - invocationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder> - invocationConfigBuilder_; - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return Whether the invocationConfig field is set. - */ - public boolean hasInvocationConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The invocationConfig. - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - getInvocationConfig() { - if (invocationConfigBuilder_ == null) { - return invocationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - .getDefaultInstance() - : invocationConfig_; - } else { - return invocationConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setInvocationConfig( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig value) { - if (invocationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - invocationConfig_ = value; - } else { - invocationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder setInvocationConfig( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder - builderForValue) { - if (invocationConfigBuilder_ == null) { - invocationConfig_ = builderForValue.build(); - } else { - invocationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder mergeInvocationConfig( - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig value) { - if (invocationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && invocationConfig_ != null - && invocationConfig_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - .getDefaultInstance()) { - getInvocationConfigBuilder().mergeFrom(value); - } else { - invocationConfig_ = value; - } - } else { - invocationConfigBuilder_.mergeFrom(value); - } - if (invocationConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public Builder clearInvocationConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - invocationConfig_ = null; - if (invocationConfigBuilder_ != null) { - invocationConfigBuilder_.dispose(); - invocationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder - getInvocationConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getInvocationConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder - getInvocationConfigOrBuilder() { - if (invocationConfigBuilder_ != null) { - return invocationConfigBuilder_.getMessageOrBuilder(); - } else { - return invocationConfig_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig - .getDefaultInstance() - : invocationConfig_; - } - } - /** - * - * - *
-     * Immutable. If left unset, a default InvocationConfig will be used.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder> - getInvocationConfigFieldBuilder() { - if (invocationConfigBuilder_ == null) { - invocationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder>( - getInvocationConfig(), getParentForChildren(), isClean()); - invocationConfig_ = null; - } - return invocationConfigBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. This workflow invocation's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. This workflow invocation's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This workflow invocation's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State getState() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State result = - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.forNumber(state_); - return result == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. This workflow invocation's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This workflow invocation's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000008); - state_ = 0; - onChanged(); - return this; - } - - private com.google.type.Interval invocationTiming_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder> - invocationTimingBuilder_; - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the invocationTiming field is set. - */ - public boolean hasInvocationTiming() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The invocationTiming. - */ - public com.google.type.Interval getInvocationTiming() { - if (invocationTimingBuilder_ == null) { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } else { - return invocationTimingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setInvocationTiming(com.google.type.Interval value) { - if (invocationTimingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - invocationTiming_ = value; - } else { - invocationTimingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setInvocationTiming(com.google.type.Interval.Builder builderForValue) { - if (invocationTimingBuilder_ == null) { - invocationTiming_ = builderForValue.build(); - } else { - invocationTimingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeInvocationTiming(com.google.type.Interval value) { - if (invocationTimingBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && invocationTiming_ != null - && invocationTiming_ != com.google.type.Interval.getDefaultInstance()) { - getInvocationTimingBuilder().mergeFrom(value); - } else { - invocationTiming_ = value; - } - } else { - invocationTimingBuilder_.mergeFrom(value); - } - if (invocationTiming_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearInvocationTiming() { - bitField0_ = (bitField0_ & ~0x00000010); - invocationTiming_ = null; - if (invocationTimingBuilder_ != null) { - invocationTimingBuilder_.dispose(); - invocationTimingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.type.Interval.Builder getInvocationTimingBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getInvocationTimingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder() { - if (invocationTimingBuilder_ != null) { - return invocationTimingBuilder_.getMessageOrBuilder(); - } else { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } - } - /** - * - * - *
-     * Output only. This workflow invocation's timing details.
-     * 
- * - * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder> - getInvocationTimingFieldBuilder() { - if (invocationTimingBuilder_ == null) { - invocationTimingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder>( - getInvocationTiming(), getParentForChildren(), isClean()); - invocationTiming_ = null; - } - return invocationTimingBuilder_; - } - - @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.v1alpha2.WorkflowInvocation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WorkflowInvocation) - private static final com.google.cloud.dataform.v1alpha2.WorkflowInvocation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.WorkflowInvocation(); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowInvocation 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.v1alpha2.WorkflowInvocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java deleted file mode 100644 index 1f4cfbf53f18..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java +++ /dev/null @@ -1,2970 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents a single action in a workflow invocation.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocationAction} - */ -public final class WorkflowInvocationAction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WorkflowInvocationAction) - WorkflowInvocationActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowInvocationAction.newBuilder() to construct. - private WorkflowInvocationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowInvocationAction() { - state_ = 0; - failureReason_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowInvocationAction(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder.class); - } - - /** - * - * - *
-   * Represents the current state of an workflow invocation action.
-   * 
- * - * Protobuf enum {@code google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The action has not yet been considered for invocation.
-     * 
- * - * PENDING = 0; - */ - PENDING(0), - /** - * - * - *
-     * The action is currently running.
-     * 
- * - * RUNNING = 1; - */ - RUNNING(1), - /** - * - * - *
-     * Execution of the action was skipped because upstream dependencies did not
-     * all complete successfully. A terminal state.
-     * 
- * - * SKIPPED = 2; - */ - SKIPPED(2), - /** - * - * - *
-     * Execution of the action was disabled as per the configuration of the
-     * corresponding compilation result action. A terminal state.
-     * 
- * - * DISABLED = 3; - */ - DISABLED(3), - /** - * - * - *
-     * The action succeeded. A terminal state.
-     * 
- * - * SUCCEEDED = 4; - */ - SUCCEEDED(4), - /** - * - * - *
-     * The action was cancelled. A terminal state.
-     * 
- * - * CANCELLED = 5; - */ - CANCELLED(5), - /** - * - * - *
-     * The action failed. A terminal state.
-     * 
- * - * FAILED = 6; - */ - FAILED(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The action has not yet been considered for invocation.
-     * 
- * - * PENDING = 0; - */ - public static final int PENDING_VALUE = 0; - /** - * - * - *
-     * The action is currently running.
-     * 
- * - * RUNNING = 1; - */ - public static final int RUNNING_VALUE = 1; - /** - * - * - *
-     * Execution of the action was skipped because upstream dependencies did not
-     * all complete successfully. A terminal state.
-     * 
- * - * SKIPPED = 2; - */ - public static final int SKIPPED_VALUE = 2; - /** - * - * - *
-     * Execution of the action was disabled as per the configuration of the
-     * corresponding compilation result action. A terminal state.
-     * 
- * - * DISABLED = 3; - */ - public static final int DISABLED_VALUE = 3; - /** - * - * - *
-     * The action succeeded. A terminal state.
-     * 
- * - * SUCCEEDED = 4; - */ - public static final int SUCCEEDED_VALUE = 4; - /** - * - * - *
-     * The action was cancelled. A terminal state.
-     * 
- * - * CANCELLED = 5; - */ - public static final int CANCELLED_VALUE = 5; - /** - * - * - *
-     * The action failed. A terminal state.
-     * 
- * - * FAILED = 6; - */ - public static final int FAILED_VALUE = 6; - - 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 State 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 State forNumber(int value) { - switch (value) { - case 0: - return PENDING; - case 1: - return RUNNING; - case 2: - return SKIPPED; - case 3: - return DISABLED; - case 4: - return SUCCEEDED; - case 5: - return CANCELLED; - case 6: - return FAILED; - 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 State findValueByNumber(int number) { - return State.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.v1alpha2.WorkflowInvocationAction.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final State[] VALUES = values(); - - public static State 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 State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State) - } - - public interface BigQueryActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. The generated BigQuery SQL script that will be executed.
-     * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sqlScript. - */ - java.lang.String getSqlScript(); - /** - * - * - *
-     * Output only. The generated BigQuery SQL script that will be executed.
-     * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sqlScript. - */ - com.google.protobuf.ByteString getSqlScriptBytes(); - } - /** - * - * - *
-   * Represents a workflow action that will run against BigQuery.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction} - */ - public static final class BigQueryAction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction) - BigQueryActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BigQueryAction.newBuilder() to construct. - private BigQueryAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BigQueryAction() { - sqlScript_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BigQueryAction(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder - .class); - } - - public static final int SQL_SCRIPT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object sqlScript_ = ""; - /** - * - * - *
-     * Output only. The generated BigQuery SQL script that will be executed.
-     * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sqlScript. - */ - @java.lang.Override - public java.lang.String getSqlScript() { - java.lang.Object ref = sqlScript_; - 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(); - sqlScript_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. The generated BigQuery SQL script that will be executed.
-     * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sqlScript. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSqlScriptBytes() { - java.lang.Object ref = sqlScript_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sqlScript_ = 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(sqlScript_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlScript_); - } - 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(sqlScript_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlScript_); - } - 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.v1alpha2.WorkflowInvocationAction.BigQueryAction)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction other = - (com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction) obj; - - if (!getSqlScript().equals(other.getSqlScript())) 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) + SQL_SCRIPT_FIELD_NUMBER; - hash = (53 * hash) + getSqlScript().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - 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.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - 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.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - 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.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - 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.v1alpha2.WorkflowInvocationAction.BigQueryAction - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - 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.v1alpha2.WorkflowInvocationAction.BigQueryAction 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 workflow action that will run against BigQuery.
-     * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction) - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder - .class); - } - - // Construct using - // com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - sqlScript_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction build() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - buildPartial() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction result = - new com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sqlScript_ = sqlScript_; - } - } - - @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.v1alpha2.WorkflowInvocationAction.BigQueryAction) { - return mergeFrom( - (com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction other) { - if (other - == com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance()) return this; - if (!other.getSqlScript().isEmpty()) { - sqlScript_ = other.sqlScript_; - 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: - { - sqlScript_ = 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 sqlScript_ = ""; - /** - * - * - *
-       * Output only. The generated BigQuery SQL script that will be executed.
-       * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sqlScript. - */ - public java.lang.String getSqlScript() { - java.lang.Object ref = sqlScript_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sqlScript_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. The generated BigQuery SQL script that will be executed.
-       * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sqlScript. - */ - public com.google.protobuf.ByteString getSqlScriptBytes() { - java.lang.Object ref = sqlScript_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sqlScript_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. The generated BigQuery SQL script that will be executed.
-       * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sqlScript to set. - * @return This builder for chaining. - */ - public Builder setSqlScript(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sqlScript_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The generated BigQuery SQL script that will be executed.
-       * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSqlScript() { - sqlScript_ = getDefaultInstance().getSqlScript(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The generated BigQuery SQL script that will be executed.
-       * 
- * - * string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for sqlScript to set. - * @return This builder for chaining. - */ - public Builder setSqlScriptBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sqlScript_ = 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.v1alpha2.WorkflowInvocationAction.BigQueryAction) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction) - private static final com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction(); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryAction 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.v1alpha2.WorkflowInvocationAction.BigQueryAction - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int TARGET_FIELD_NUMBER = 1; - private com.google.cloud.dataform.v1alpha2.Target target_; - /** - * - * - *
-   * Output only. This action's identifier. Unique within the workflow invocation.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the target field is set. - */ - @java.lang.Override - public boolean hasTarget() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. This action's identifier. Unique within the workflow invocation.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The target. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getTarget() { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } - /** - * - * - *
-   * Output only. This action's identifier. Unique within the workflow invocation.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getTargetOrBuilder() { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } - - public static final int CANONICAL_TARGET_FIELD_NUMBER = 2; - private com.google.cloud.dataform.v1alpha2.Target canonicalTarget_; - /** - * - * - *
-   * Output only. The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the canonicalTarget field is set. - */ - @java.lang.Override - public boolean hasCanonicalTarget() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The canonicalTarget. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Target getCanonicalTarget() { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } - /** - * - * - *
-   * Output only. The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getCanonicalTargetOrBuilder() { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } - - public static final int STATE_FIELD_NUMBER = 4; - private int state_ = 0; - /** - * - * - *
-   * Output only. This action's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. This action's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State getState() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State result = - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State.forNumber(state_); - return result == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State.UNRECOGNIZED - : result; - } - - public static final int FAILURE_REASON_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private volatile java.lang.Object failureReason_ = ""; - /** - * - * - *
-   * 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]; - * - * @return The failureReason. - */ - @java.lang.Override - public java.lang.String getFailureReason() { - java.lang.Object ref = failureReason_; - 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(); - failureReason_ = s; - return s; - } - } - /** - * - * - *
-   * 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]; - * - * @return The bytes for failureReason. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFailureReasonBytes() { - java.lang.Object ref = failureReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - failureReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INVOCATION_TIMING_FIELD_NUMBER = 5; - private com.google.type.Interval invocationTiming_; - /** - * - * - *
-   * Output only. This action's timing details.
-   * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-   * 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]; - * - * - * @return Whether the invocationTiming field is set. - */ - @java.lang.Override - public boolean hasInvocationTiming() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Output only. This action's timing details.
-   * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-   * 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]; - * - * - * @return The invocationTiming. - */ - @java.lang.Override - public com.google.type.Interval getInvocationTiming() { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } - /** - * - * - *
-   * Output only. This action's timing details.
-   * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-   * 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]; - * - */ - @java.lang.Override - public com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder() { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } - - public static final int BIGQUERY_ACTION_FIELD_NUMBER = 6; - private com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - bigqueryAction_; - /** - * - * - *
-   * Output only. The workflow action's bigquery action details.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryAction field is set. - */ - @java.lang.Override - public boolean hasBigqueryAction() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Output only. The workflow action's bigquery action details.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryAction. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - getBigqueryAction() { - return bigqueryAction_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance() - : bigqueryAction_; - } - /** - * - * - *
-   * Output only. The workflow action's bigquery action details.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryActionOrBuilder - getBigqueryActionOrBuilder() { - return bigqueryAction_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance() - : bigqueryAction_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getTarget()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getCanonicalTarget()); - } - if (state_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State.PENDING.getNumber()) { - output.writeEnum(4, state_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(5, getInvocationTiming()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(6, getBigqueryAction()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, failureReason_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTarget()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCanonicalTarget()); - } - if (state_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State.PENDING.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBigqueryAction()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, failureReason_); - } - 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.v1alpha2.WorkflowInvocationAction)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction other = - (com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction) obj; - - if (hasTarget() != other.hasTarget()) return false; - if (hasTarget()) { - if (!getTarget().equals(other.getTarget())) return false; - } - if (hasCanonicalTarget() != other.hasCanonicalTarget()) return false; - if (hasCanonicalTarget()) { - if (!getCanonicalTarget().equals(other.getCanonicalTarget())) return false; - } - if (state_ != other.state_) return false; - if (!getFailureReason().equals(other.getFailureReason())) return false; - if (hasInvocationTiming() != other.hasInvocationTiming()) return false; - if (hasInvocationTiming()) { - if (!getInvocationTiming().equals(other.getInvocationTiming())) return false; - } - if (hasBigqueryAction() != other.hasBigqueryAction()) return false; - if (hasBigqueryAction()) { - if (!getBigqueryAction().equals(other.getBigqueryAction())) 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 (hasTarget()) { - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - } - if (hasCanonicalTarget()) { - hash = (37 * hash) + CANONICAL_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getCanonicalTarget().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getFailureReason().hashCode(); - if (hasInvocationTiming()) { - hash = (37 * hash) + INVOCATION_TIMING_FIELD_NUMBER; - hash = (53 * hash) + getInvocationTiming().hashCode(); - } - if (hasBigqueryAction()) { - hash = (37 * hash) + BIGQUERY_ACTION_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryAction().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction 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.v1alpha2.WorkflowInvocationAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction 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.v1alpha2.WorkflowInvocationAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction 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.v1alpha2.WorkflowInvocationAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction 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.v1alpha2.WorkflowInvocationAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction 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.v1alpha2.WorkflowInvocationAction 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 action in a workflow invocation.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocationAction} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WorkflowInvocationAction) - com.google.cloud.dataform.v1alpha2.WorkflowInvocationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.class, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTargetFieldBuilder(); - getCanonicalTargetFieldBuilder(); - getInvocationTimingFieldBuilder(); - getBigqueryActionFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - target_ = null; - if (targetBuilder_ != null) { - targetBuilder_.dispose(); - targetBuilder_ = null; - } - canonicalTarget_ = null; - if (canonicalTargetBuilder_ != null) { - canonicalTargetBuilder_.dispose(); - canonicalTargetBuilder_ = null; - } - state_ = 0; - failureReason_ = ""; - invocationTiming_ = null; - if (invocationTimingBuilder_ != null) { - invocationTimingBuilder_.dispose(); - invocationTimingBuilder_ = null; - } - bigqueryAction_ = null; - if (bigqueryActionBuilder_ != null) { - bigqueryActionBuilder_.dispose(); - bigqueryActionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction build() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction buildPartial() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction result = - new com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.canonicalTarget_ = - canonicalTargetBuilder_ == null ? canonicalTarget_ : canonicalTargetBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.failureReason_ = failureReason_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.invocationTiming_ = - invocationTimingBuilder_ == null ? invocationTiming_ : invocationTimingBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.bigqueryAction_ = - bigqueryActionBuilder_ == null ? bigqueryAction_ : bigqueryActionBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @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.v1alpha2.WorkflowInvocationAction) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction other) { - if (other == com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.getDefaultInstance()) - return this; - if (other.hasTarget()) { - mergeTarget(other.getTarget()); - } - if (other.hasCanonicalTarget()) { - mergeCanonicalTarget(other.getCanonicalTarget()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getFailureReason().isEmpty()) { - failureReason_ = other.failureReason_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasInvocationTiming()) { - mergeInvocationTiming(other.getInvocationTiming()); - } - if (other.hasBigqueryAction()) { - mergeBigqueryAction(other.getBigqueryAction()); - } - 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(getTargetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCanonicalTargetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 32: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - input.readMessage( - getInvocationTimingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getBigqueryActionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - failureReason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - 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 com.google.cloud.dataform.v1alpha2.Target target_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - targetBuilder_; - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the target field is set. - */ - public boolean hasTarget() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The target. - */ - public com.google.cloud.dataform.v1alpha2.Target getTarget() { - if (targetBuilder_ == null) { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } else { - return targetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (targetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - } else { - targetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTarget(com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (targetBuilder_ == null) { - target_ = builderForValue.build(); - } else { - targetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && target_ != null - && target_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) { - getTargetBuilder().mergeFrom(value); - } else { - target_ = value; - } - } else { - targetBuilder_.mergeFrom(value); - } - if (target_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearTarget() { - bitField0_ = (bitField0_ & ~0x00000001); - target_ = null; - if (targetBuilder_ != null) { - targetBuilder_.dispose(); - targetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getTargetBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getTargetOrBuilder() { - if (targetBuilder_ != null) { - return targetBuilder_.getMessageOrBuilder(); - } else { - return target_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : target_; - } - } - /** - * - * - *
-     * Output only. This action's identifier. Unique within the workflow invocation.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getTargetFieldBuilder() { - if (targetBuilder_ == null) { - targetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - getTarget(), getParentForChildren(), isClean()); - target_ = null; - } - return targetBuilder_; - } - - private com.google.cloud.dataform.v1alpha2.Target canonicalTarget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - canonicalTargetBuilder_; - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the canonicalTarget field is set. - */ - public boolean hasCanonicalTarget() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The canonicalTarget. - */ - public com.google.cloud.dataform.v1alpha2.Target getCanonicalTarget() { - if (canonicalTargetBuilder_ == null) { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } else { - return canonicalTargetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCanonicalTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (canonicalTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - canonicalTarget_ = value; - } else { - canonicalTargetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCanonicalTarget( - com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) { - if (canonicalTargetBuilder_ == null) { - canonicalTarget_ = builderForValue.build(); - } else { - canonicalTargetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1alpha2.Target value) { - if (canonicalTargetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && canonicalTarget_ != null - && canonicalTarget_ != com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance()) { - getCanonicalTargetBuilder().mergeFrom(value); - } else { - canonicalTarget_ = value; - } - } else { - canonicalTargetBuilder_.mergeFrom(value); - } - if (canonicalTarget_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCanonicalTarget() { - bitField0_ = (bitField0_ & ~0x00000002); - canonicalTarget_ = null; - if (canonicalTargetBuilder_ != null) { - canonicalTargetBuilder_.dispose(); - canonicalTargetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.Target.Builder getCanonicalTargetBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCanonicalTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getCanonicalTargetOrBuilder() { - if (canonicalTargetBuilder_ != null) { - return canonicalTargetBuilder_.getMessageOrBuilder(); - } else { - return canonicalTarget_ == null - ? com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance() - : canonicalTarget_; - } - } - /** - * - * - *
-     * Output only. The action's identifier if the project had been compiled without any
-     * overrides configured. Unique within the compilation result.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder> - getCanonicalTargetFieldBuilder() { - if (canonicalTargetBuilder_ == null) { - canonicalTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.Target, - com.google.cloud.dataform.v1alpha2.Target.Builder, - com.google.cloud.dataform.v1alpha2.TargetOrBuilder>( - getCanonicalTarget(), getParentForChildren(), isClean()); - canonicalTarget_ = null; - } - return canonicalTargetBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. This action's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. This action's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State getState() { - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State result = - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State.forNumber(state_); - return result == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. This action's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's current state.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object failureReason_ = ""; - /** - * - * - *
-     * 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]; - * - * @return The failureReason. - */ - public java.lang.String getFailureReason() { - java.lang.Object ref = failureReason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failureReason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @return The bytes for failureReason. - */ - public com.google.protobuf.ByteString getFailureReasonBytes() { - java.lang.Object ref = failureReason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - failureReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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]; - * - * @param value The failureReason to set. - * @return This builder for chaining. - */ - public Builder setFailureReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - failureReason_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @return This builder for chaining. - */ - public Builder clearFailureReason() { - failureReason_ = getDefaultInstance().getFailureReason(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @param value The bytes for failureReason to set. - * @return This builder for chaining. - */ - public Builder setFailureReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - failureReason_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.type.Interval invocationTiming_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder> - invocationTimingBuilder_; - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - * - * @return Whether the invocationTiming field is set. - */ - public boolean hasInvocationTiming() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - * - * @return The invocationTiming. - */ - public com.google.type.Interval getInvocationTiming() { - if (invocationTimingBuilder_ == null) { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } else { - return invocationTimingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - public Builder setInvocationTiming(com.google.type.Interval value) { - if (invocationTimingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - invocationTiming_ = value; - } else { - invocationTimingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - public Builder setInvocationTiming(com.google.type.Interval.Builder builderForValue) { - if (invocationTimingBuilder_ == null) { - invocationTiming_ = builderForValue.build(); - } else { - invocationTimingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - public Builder mergeInvocationTiming(com.google.type.Interval value) { - if (invocationTimingBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && invocationTiming_ != null - && invocationTiming_ != com.google.type.Interval.getDefaultInstance()) { - getInvocationTimingBuilder().mergeFrom(value); - } else { - invocationTiming_ = value; - } - } else { - invocationTimingBuilder_.mergeFrom(value); - } - if (invocationTiming_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - public Builder clearInvocationTiming() { - bitField0_ = (bitField0_ & ~0x00000010); - invocationTiming_ = null; - if (invocationTimingBuilder_ != null) { - invocationTimingBuilder_.dispose(); - invocationTimingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - public com.google.type.Interval.Builder getInvocationTimingBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getInvocationTimingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - public com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder() { - if (invocationTimingBuilder_ != null) { - return invocationTimingBuilder_.getMessageOrBuilder(); - } else { - return invocationTiming_ == null - ? com.google.type.Interval.getDefaultInstance() - : invocationTiming_; - } - } - /** - * - * - *
-     * Output only. This action's timing details.
-     * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-     * 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]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder> - getInvocationTimingFieldBuilder() { - if (invocationTimingBuilder_ == null) { - invocationTimingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, - com.google.type.Interval.Builder, - com.google.type.IntervalOrBuilder>( - getInvocationTiming(), getParentForChildren(), isClean()); - invocationTiming_ = null; - } - return invocationTimingBuilder_; - } - - private com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - bigqueryAction_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryActionOrBuilder> - bigqueryActionBuilder_; - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryAction field is set. - */ - public boolean hasBigqueryAction() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryAction. - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - getBigqueryAction() { - if (bigqueryActionBuilder_ == null) { - return bigqueryAction_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance() - : bigqueryAction_; - } else { - return bigqueryActionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBigqueryAction( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction value) { - if (bigqueryActionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bigqueryAction_ = value; - } else { - bigqueryActionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBigqueryAction( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder - builderForValue) { - if (bigqueryActionBuilder_ == null) { - bigqueryAction_ = builderForValue.build(); - } else { - bigqueryActionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeBigqueryAction( - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction value) { - if (bigqueryActionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && bigqueryAction_ != null - && bigqueryAction_ - != com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance()) { - getBigqueryActionBuilder().mergeFrom(value); - } else { - bigqueryAction_ = value; - } - } else { - bigqueryActionBuilder_.mergeFrom(value); - } - if (bigqueryAction_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearBigqueryAction() { - bitField0_ = (bitField0_ & ~0x00000020); - bigqueryAction_ = null; - if (bigqueryActionBuilder_ != null) { - bigqueryActionBuilder_.dispose(); - bigqueryActionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder - getBigqueryActionBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getBigqueryActionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryActionOrBuilder - getBigqueryActionOrBuilder() { - if (bigqueryActionBuilder_ != null) { - return bigqueryActionBuilder_.getMessageOrBuilder(); - } else { - return bigqueryAction_ == null - ? com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction - .getDefaultInstance() - : bigqueryAction_; - } - } - /** - * - * - *
-     * Output only. The workflow action's bigquery action details.
-     * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryActionOrBuilder> - getBigqueryActionFieldBuilder() { - if (bigqueryActionBuilder_ == null) { - bigqueryActionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction.Builder, - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction - .BigQueryActionOrBuilder>( - getBigqueryAction(), getParentForChildren(), isClean()); - bigqueryAction_ = null; - } - return bigqueryActionBuilder_; - } - - @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.v1alpha2.WorkflowInvocationAction) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WorkflowInvocationAction) - private static final com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction(); - } - - public static com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowInvocationAction 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.v1alpha2.WorkflowInvocationAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java deleted file mode 100644 index f59433f0512e..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface WorkflowInvocationActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WorkflowInvocationAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. This action's identifier. Unique within the workflow invocation.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the target field is set. - */ - boolean hasTarget(); - /** - * - * - *
-   * Output only. This action's identifier. Unique within the workflow invocation.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The target. - */ - com.google.cloud.dataform.v1alpha2.Target getTarget(); - /** - * - * - *
-   * Output only. This action's identifier. Unique within the workflow invocation.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getTargetOrBuilder(); - - /** - * - * - *
-   * Output only. The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the canonicalTarget field is set. - */ - boolean hasCanonicalTarget(); - /** - * - * - *
-   * Output only. The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The canonicalTarget. - */ - com.google.cloud.dataform.v1alpha2.Target getCanonicalTarget(); - /** - * - * - *
-   * Output only. The action's identifier if the project had been compiled without any
-   * overrides configured. Unique within the compilation result.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataform.v1alpha2.TargetOrBuilder getCanonicalTargetOrBuilder(); - - /** - * - * - *
-   * Output only. This action's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. This action's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State getState(); - - /** - * - * - *
-   * 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]; - * - * @return The failureReason. - */ - java.lang.String getFailureReason(); - /** - * - * - *
-   * 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]; - * - * @return The bytes for failureReason. - */ - com.google.protobuf.ByteString getFailureReasonBytes(); - - /** - * - * - *
-   * Output only. This action's timing details.
-   * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-   * 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]; - * - * - * @return Whether the invocationTiming field is set. - */ - boolean hasInvocationTiming(); - /** - * - * - *
-   * Output only. This action's timing details.
-   * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-   * 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]; - * - * - * @return The invocationTiming. - */ - com.google.type.Interval getInvocationTiming(); - /** - * - * - *
-   * Output only. This action's timing details.
-   * `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
-   * 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]; - * - */ - com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder(); - - /** - * - * - *
-   * Output only. The workflow action's bigquery action details.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryAction field is set. - */ - boolean hasBigqueryAction(); - /** - * - * - *
-   * Output only. The workflow action's bigquery action details.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryAction. - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction getBigqueryAction(); - /** - * - * - *
-   * Output only. The workflow action's bigquery action details.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.BigQueryActionOrBuilder - getBigqueryActionOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationName.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationName.java deleted file mode 100644 index 96df81164a27..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationName.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -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 WorkflowInvocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REPOSITORY_WORKFLOW_INVOCATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String repository; - private final String workflowInvocation; - - @Deprecated - protected WorkflowInvocationName() { - project = null; - location = null; - repository = null; - workflowInvocation = null; - } - - private WorkflowInvocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - repository = Preconditions.checkNotNull(builder.getRepository()); - workflowInvocation = Preconditions.checkNotNull(builder.getWorkflowInvocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public String getWorkflowInvocation() { - return workflowInvocation; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static WorkflowInvocationName of( - String project, String location, String repository, String workflowInvocation) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .setWorkflowInvocation(workflowInvocation) - .build(); - } - - public static String format( - String project, String location, String repository, String workflowInvocation) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .setWorkflowInvocation(workflowInvocation) - .build() - .toString(); - } - - public static WorkflowInvocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REPOSITORY_WORKFLOW_INVOCATION.validatedMatch( - formattedString, "WorkflowInvocationName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("repository"), - matchMap.get("workflow_invocation")); - } - - 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 (WorkflowInvocationName 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_INVOCATION.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 (workflowInvocation != null) { - fieldMapBuilder.put("workflow_invocation", workflowInvocation); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REPOSITORY_WORKFLOW_INVOCATION.instantiate( - "project", - project, - "location", - location, - "repository", - repository, - "workflow_invocation", - workflowInvocation); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - WorkflowInvocationName that = ((WorkflowInvocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.repository, that.repository) - && Objects.equals(this.workflowInvocation, that.workflowInvocation); - } - 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(workflowInvocation); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}. - */ - public static class Builder { - private String project; - private String location; - private String repository; - private String workflowInvocation; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public String getWorkflowInvocation() { - return workflowInvocation; - } - - 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 setWorkflowInvocation(String workflowInvocation) { - this.workflowInvocation = workflowInvocation; - return this; - } - - private Builder(WorkflowInvocationName workflowInvocationName) { - this.project = workflowInvocationName.project; - this.location = workflowInvocationName.location; - this.repository = workflowInvocationName.repository; - this.workflowInvocation = workflowInvocationName.workflowInvocation; - } - - public WorkflowInvocationName build() { - return new WorkflowInvocationName(this); - } - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationOrBuilder.java deleted file mode 100644 index 97810be6bf5d..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationOrBuilder.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface WorkflowInvocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WorkflowInvocation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The workflow invocation's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The workflow invocation's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The compilationResult. - */ - java.lang.String getCompilationResult(); - /** - * - * - *
-   * 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) = { ... } - * - * - * @return The bytes for compilationResult. - */ - com.google.protobuf.ByteString getCompilationResultBytes(); - - /** - * - * - *
-   * Immutable. If left unset, a default InvocationConfig will be used.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return Whether the invocationConfig field is set. - */ - boolean hasInvocationConfig(); - /** - * - * - *
-   * Immutable. If left unset, a default InvocationConfig will be used.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The invocationConfig. - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig getInvocationConfig(); - /** - * - * - *
-   * Immutable. If left unset, a default InvocationConfig will be used.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder - getInvocationConfigOrBuilder(); - - /** - * - * - *
-   * Output only. This workflow invocation's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. This workflow invocation's current state.
-   * 
- * - * - * .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State getState(); - - /** - * - * - *
-   * Output only. This workflow invocation's timing details.
-   * 
- * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the invocationTiming field is set. - */ - boolean hasInvocationTiming(); - /** - * - * - *
-   * Output only. This workflow invocation's timing details.
-   * 
- * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The invocationTiming. - */ - com.google.type.Interval getInvocationTiming(); - /** - * - * - *
-   * Output only. This workflow invocation's timing details.
-   * 
- * - * .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Workspace.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Workspace.java deleted file mode 100644 index 2a2d29dfe7a8..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/Workspace.java +++ /dev/null @@ -1,624 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * Represents a Dataform Git workspace.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.Workspace} - */ -public final class Workspace extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.Workspace) - WorkspaceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Workspace.newBuilder() to construct. - private Workspace(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Workspace() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Workspace(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Workspace_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Workspace_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Workspace.class, - com.google.cloud.dataform.v1alpha2.Workspace.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The workspace'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 workspace'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; - } - } - - 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.v1alpha2.Workspace)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.Workspace other = - (com.google.cloud.dataform.v1alpha2.Workspace) 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.v1alpha2.Workspace parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace 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.v1alpha2.Workspace parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace 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.v1alpha2.Workspace parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace 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.v1alpha2.Workspace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace 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.v1alpha2.Workspace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace 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.v1alpha2.Workspace 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 workspace.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.Workspace} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.Workspace) - com.google.cloud.dataform.v1alpha2.WorkspaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Workspace_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Workspace_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.Workspace.class, - com.google.cloud.dataform.v1alpha2.Workspace.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.Workspace.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_Workspace_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Workspace getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.Workspace.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Workspace build() { - com.google.cloud.dataform.v1alpha2.Workspace result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.Workspace buildPartial() { - com.google.cloud.dataform.v1alpha2.Workspace result = - new com.google.cloud.dataform.v1alpha2.Workspace(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.Workspace 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.v1alpha2.Workspace) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.Workspace) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.Workspace other) { - if (other == com.google.cloud.dataform.v1alpha2.Workspace.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_ = ""; - /** - * - * - *
-     * Output only. The workspace'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 workspace'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 workspace'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 workspace'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 workspace'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; - } - - @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.v1alpha2.Workspace) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.Workspace) - private static final com.google.cloud.dataform.v1alpha2.Workspace DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.Workspace(); - } - - public static com.google.cloud.dataform.v1alpha2.Workspace getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workspace 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.v1alpha2.Workspace getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkspaceName.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkspaceName.java deleted file mode 100644 index 37462a560c86..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkspaceName.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Copyright 2025 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.v1alpha2; - -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 WorkspaceName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_REPOSITORY_WORKSPACE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String repository; - private final String workspace; - - @Deprecated - protected WorkspaceName() { - project = null; - location = null; - repository = null; - workspace = null; - } - - private WorkspaceName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - repository = Preconditions.checkNotNull(builder.getRepository()); - workspace = Preconditions.checkNotNull(builder.getWorkspace()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public String getWorkspace() { - return workspace; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static WorkspaceName of( - String project, String location, String repository, String workspace) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .setWorkspace(workspace) - .build(); - } - - public static String format( - String project, String location, String repository, String workspace) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRepository(repository) - .setWorkspace(workspace) - .build() - .toString(); - } - - public static WorkspaceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_REPOSITORY_WORKSPACE.validatedMatch( - formattedString, "WorkspaceName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("repository"), - matchMap.get("workspace")); - } - - 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 (WorkspaceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_REPOSITORY_WORKSPACE.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 (workspace != null) { - fieldMapBuilder.put("workspace", workspace); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_REPOSITORY_WORKSPACE.instantiate( - "project", project, "location", location, "repository", repository, "workspace", workspace); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - WorkspaceName that = ((WorkspaceName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.repository, that.repository) - && Objects.equals(this.workspace, that.workspace); - } - 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(workspace); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}. - */ - public static class Builder { - private String project; - private String location; - private String repository; - private String workspace; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRepository() { - return repository; - } - - public String getWorkspace() { - return workspace; - } - - 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 setWorkspace(String workspace) { - this.workspace = workspace; - return this; - } - - private Builder(WorkspaceName workspaceName) { - this.project = workspaceName.project; - this.location = workspaceName.location; - this.repository = workspaceName.repository; - this.workspace = workspaceName.workspace; - } - - public WorkspaceName build() { - return new WorkspaceName(this); - } - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkspaceOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkspaceOrBuilder.java deleted file mode 100644 index 1899db143c3a..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkspaceOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface WorkspaceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.Workspace) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The workspace's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The workspace's name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileRequest.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileRequest.java deleted file mode 100644 index 5e2c824d8b0a..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileRequest.java +++ /dev/null @@ -1,917 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `WriteFile` request message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WriteFileRequest} - */ -public final class WriteFileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WriteFileRequest) - WriteFileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WriteFileRequest.newBuilder() to construct. - private WriteFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WriteFileRequest() { - workspace_ = ""; - path_ = ""; - contents_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WriteFileRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WriteFileRequest.class, - com.google.cloud.dataform.v1alpha2.WriteFileRequest.Builder.class); - } - - public static final int WORKSPACE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object workspace_ = ""; - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - @java.lang.Override - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - 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(); - workspace_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; - /** - * - * - *
-   * Required. The file.
-   * 
- * - * string path = 2 [(.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. The file.
-   * 
- * - * string path = 2 [(.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; - } - } - - public static final int CONTENTS_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-   * Required. The file's contents.
-   * 
- * - * bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); - } - if (!contents_.isEmpty()) { - output.writeBytes(3, contents_); - } - 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(workspace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); - } - if (!contents_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, 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.v1alpha2.WriteFileRequest)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.WriteFileRequest other = - (com.google.cloud.dataform.v1alpha2.WriteFileRequest) obj; - - if (!getWorkspace().equals(other.getWorkspace())) return false; - if (!getPath().equals(other.getPath())) return false; - 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) + WORKSPACE_FIELD_NUMBER; - hash = (53 * hash) + getWorkspace().hashCode(); - hash = (37 * hash) + PATH_FIELD_NUMBER; - hash = (53 * hash) + getPath().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.v1alpha2.WriteFileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest 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.v1alpha2.WriteFileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest 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.v1alpha2.WriteFileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest 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.v1alpha2.WriteFileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest 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.v1alpha2.WriteFileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest 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.v1alpha2.WriteFileRequest 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; - } - /** - * - * - *
-   * `WriteFile` request message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WriteFileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WriteFileRequest) - com.google.cloud.dataform.v1alpha2.WriteFileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WriteFileRequest.class, - com.google.cloud.dataform.v1alpha2.WriteFileRequest.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.WriteFileRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workspace_ = ""; - path_ = ""; - contents_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WriteFileRequest getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.WriteFileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WriteFileRequest build() { - com.google.cloud.dataform.v1alpha2.WriteFileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WriteFileRequest buildPartial() { - com.google.cloud.dataform.v1alpha2.WriteFileRequest result = - new com.google.cloud.dataform.v1alpha2.WriteFileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.dataform.v1alpha2.WriteFileRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workspace_ = workspace_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.path_ = path_; - } - if (((from_bitField0_ & 0x00000004) != 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.v1alpha2.WriteFileRequest) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.WriteFileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.WriteFileRequest other) { - if (other == com.google.cloud.dataform.v1alpha2.WriteFileRequest.getDefaultInstance()) - return this; - if (!other.getWorkspace().isEmpty()) { - workspace_ = other.workspace_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPath().isEmpty()) { - path_ = other.path_; - bitField0_ |= 0x00000002; - onChanged(); - } - 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: - { - workspace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - contents_ = input.readBytes(); - 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 workspace_ = ""; - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - public java.lang.String getWorkspace() { - java.lang.Object ref = workspace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - public com.google.protobuf.ByteString getWorkspaceBytes() { - java.lang.Object ref = workspace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workspace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearWorkspace() { - workspace_ = getDefaultInstance().getWorkspace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The workspace's name.
-     * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for workspace to set. - * @return This builder for chaining. - */ - public Builder setWorkspaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - workspace_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * - * - *
-     * Required. The file.
-     * 
- * - * string path = 2 [(.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. The file.
-     * 
- * - * string path = 2 [(.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. The file.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file.
-     * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPath() { - path_ = getDefaultInstance().getPath(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file.
-     * 
- * - * string path = 2 [(.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_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * Required. The file's contents.
-     * 
- * - * bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The contents. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContents() { - return contents_; - } - /** - * - * - *
-     * Required. The file's contents.
-     * 
- * - * bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The file's contents.
-     * 
- * - * bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearContents() { - bitField0_ = (bitField0_ & ~0x00000004); - 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.v1alpha2.WriteFileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WriteFileRequest) - private static final com.google.cloud.dataform.v1alpha2.WriteFileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.WriteFileRequest(); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteFileRequest 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.v1alpha2.WriteFileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileRequestOrBuilder.java deleted file mode 100644 index b22a6d6ef11d..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileRequestOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface WriteFileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WriteFileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The workspace. - */ - java.lang.String getWorkspace(); - /** - * - * - *
-   * Required. The workspace's name.
-   * 
- * - * - * string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for workspace. - */ - com.google.protobuf.ByteString getWorkspaceBytes(); - - /** - * - * - *
-   * Required. The file.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The path. - */ - java.lang.String getPath(); - /** - * - * - *
-   * Required. The file.
-   * 
- * - * string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for path. - */ - com.google.protobuf.ByteString getPathBytes(); - - /** - * - * - *
-   * Required. The file's contents.
-   * 
- * - * bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The contents. - */ - com.google.protobuf.ByteString getContents(); -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileResponse.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileResponse.java deleted file mode 100644 index 1092a9a6907e..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileResponse.java +++ /dev/null @@ -1,432 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -/** - * - * - *
- * `WriteFile` response message.
- * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WriteFileResponse} - */ -public final class WriteFileResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WriteFileResponse) - WriteFileResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WriteFileResponse.newBuilder() to construct. - private WriteFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WriteFileResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WriteFileResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WriteFileResponse.class, - com.google.cloud.dataform.v1alpha2.WriteFileResponse.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.v1alpha2.WriteFileResponse)) { - return super.equals(obj); - } - com.google.cloud.dataform.v1alpha2.WriteFileResponse other = - (com.google.cloud.dataform.v1alpha2.WriteFileResponse) 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.v1alpha2.WriteFileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse 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.v1alpha2.WriteFileResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse 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.v1alpha2.WriteFileResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse 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.v1alpha2.WriteFileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse 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.v1alpha2.WriteFileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse 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.v1alpha2.WriteFileResponse 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; - } - /** - * - * - *
-   * `WriteFile` response message.
-   * 
- * - * Protobuf type {@code google.cloud.dataform.v1alpha2.WriteFileResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WriteFileResponse) - com.google.cloud.dataform.v1alpha2.WriteFileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataform.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataform.v1alpha2.WriteFileResponse.class, - com.google.cloud.dataform.v1alpha2.WriteFileResponse.Builder.class); - } - - // Construct using com.google.cloud.dataform.v1alpha2.WriteFileResponse.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.v1alpha2.DataformProto - .internal_static_google_cloud_dataform_v1alpha2_WriteFileResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WriteFileResponse getDefaultInstanceForType() { - return com.google.cloud.dataform.v1alpha2.WriteFileResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WriteFileResponse build() { - com.google.cloud.dataform.v1alpha2.WriteFileResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataform.v1alpha2.WriteFileResponse buildPartial() { - com.google.cloud.dataform.v1alpha2.WriteFileResponse result = - new com.google.cloud.dataform.v1alpha2.WriteFileResponse(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.v1alpha2.WriteFileResponse) { - return mergeFrom((com.google.cloud.dataform.v1alpha2.WriteFileResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.WriteFileResponse other) { - if (other == com.google.cloud.dataform.v1alpha2.WriteFileResponse.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.v1alpha2.WriteFileResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WriteFileResponse) - private static final com.google.cloud.dataform.v1alpha2.WriteFileResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.WriteFileResponse(); - } - - public static com.google.cloud.dataform.v1alpha2.WriteFileResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteFileResponse 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.v1alpha2.WriteFileResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileResponseOrBuilder.java deleted file mode 100644 index 27b32b9b1d48..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WriteFileResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2025 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/v1alpha2/dataform.proto - -// Protobuf Java Version: 3.25.5 -package com.google.cloud.dataform.v1alpha2; - -public interface WriteFileResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WriteFileResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto deleted file mode 100644 index f3c8a84a94e9..000000000000 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto +++ /dev/null @@ -1,1628 +0,0 @@ -// Copyright 2024 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.dataform.v1alpha2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/type/interval.proto"; - -option csharp_namespace = "Google.Cloud.Dataform.V1Alpha2"; -option go_package = "cloud.google.com/go/dataform/apiv1alpha2/dataformpb;dataformpb"; -option java_multiple_files = true; -option java_outer_classname = "DataformProto"; -option java_package = "com.google.cloud.dataform.v1alpha2"; -option php_namespace = "Google\\Cloud\\Dataform\\V1alpha2"; -option ruby_package = "Google::Cloud::Dataform::V1alpha2"; -option (google.api.resource_definition) = { - type: "secretmanager.googleapis.com/SecretVersion" - pattern: "projects/{project}/secrets/{secret}/versions/{version}" -}; - -// Dataform is a service to develop, create, document, test, and update curated -// 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"; - - // Lists Repositories in a given project and location. - rpc ListRepositories(ListRepositoriesRequest) returns (ListRepositoriesResponse) { - option (google.api.http) = { - get: "/v1alpha2/{parent=projects/*/locations/*}/repositories" - }; - option (google.api.method_signature) = "parent"; - } - - // Fetches a single Repository. - rpc GetRepository(GetRepositoryRequest) returns (Repository) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new Repository in a given project and location. - rpc CreateRepository(CreateRepositoryRequest) returns (Repository) { - option (google.api.http) = { - post: "/v1alpha2/{parent=projects/*/locations/*}/repositories" - body: "repository" - }; - option (google.api.method_signature) = "parent,repository,repository_id"; - } - - // Updates a single Repository. - rpc UpdateRepository(UpdateRepositoryRequest) returns (Repository) { - option (google.api.http) = { - patch: "/v1alpha2/{repository.name=projects/*/locations/*/repositories/*}" - body: "repository" - }; - option (google.api.method_signature) = "repository,update_mask"; - } - - // Deletes a single Repository. - rpc DeleteRepository(DeleteRepositoryRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha2/{name=projects/*/locations/*/repositories/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Fetches a Repository's remote branches. - rpc FetchRemoteBranches(FetchRemoteBranchesRequest) returns (FetchRemoteBranchesResponse) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches" - }; - } - - // Lists Workspaces in a given Repository. - rpc ListWorkspaces(ListWorkspacesRequest) returns (ListWorkspacesResponse) { - option (google.api.http) = { - get: "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/workspaces" - }; - option (google.api.method_signature) = "parent"; - } - - // Fetches a single Workspace. - rpc GetWorkspace(GetWorkspaceRequest) returns (Workspace) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new Workspace in a given Repository. - rpc CreateWorkspace(CreateWorkspaceRequest) returns (Workspace) { - option (google.api.http) = { - post: "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/workspaces" - body: "workspace" - }; - option (google.api.method_signature) = "parent,workspace,workspace_id"; - } - - // Deletes a single Workspace. - rpc DeleteWorkspace(DeleteWorkspaceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Installs dependency NPM packages (inside a Workspace). - rpc InstallNpmPackages(InstallNpmPackagesRequest) returns (InstallNpmPackagesResponse) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages" - body: "*" - }; - } - - // Pulls Git commits from the Repository's remote into a Workspace. - rpc PullGitCommits(PullGitCommitsRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull" - body: "*" - }; - } - - // Pushes Git commits from a Workspace to the Repository's remote. - rpc PushGitCommits(PushGitCommitsRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:push" - body: "*" - }; - } - - // Fetches Git statuses for the files in a Workspace. - rpc FetchFileGitStatuses(FetchFileGitStatusesRequest) returns (FetchFileGitStatusesResponse) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses" - }; - } - - // Fetches Git ahead/behind against a remote branch. - rpc FetchGitAheadBehind(FetchGitAheadBehindRequest) returns (FetchGitAheadBehindResponse) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind" - }; - } - - // Applies a Git commit for uncommitted files in a Workspace. - rpc CommitWorkspaceChanges(CommitWorkspaceChangesRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit" - body: "*" - }; - } - - // Performs a Git reset for uncommitted files in a Workspace. - rpc ResetWorkspaceChanges(ResetWorkspaceChangesRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset" - body: "*" - }; - } - - // Fetches Git diff for an uncommitted file in a Workspace. - rpc FetchFileDiff(FetchFileDiffRequest) returns (FetchFileDiffResponse) { - option (google.api.http) = { - get: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff" - }; - } - - // Returns the contents of a given Workspace directory. - rpc QueryDirectoryContents(QueryDirectoryContentsRequest) returns (QueryDirectoryContentsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents" - }; - } - - // Creates a directory inside a Workspace. - rpc MakeDirectory(MakeDirectoryRequest) returns (MakeDirectoryResponse) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory" - body: "*" - }; - } - - // Deletes a directory (inside a Workspace) and all of its contents. - rpc RemoveDirectory(RemoveDirectoryRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory" - body: "*" - }; - } - - // Moves a directory (inside a Workspace), and all of its contents, to a new - // location. - rpc MoveDirectory(MoveDirectoryRequest) returns (MoveDirectoryResponse) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory" - body: "*" - }; - } - - // Returns the contents of a file (inside a Workspace). - rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) { - option (google.api.http) = { - get: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile" - }; - } - - // Deletes a file (inside a Workspace). - rpc RemoveFile(RemoveFileRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile" - body: "*" - }; - } - - // Moves a file (inside a Workspace) to a new location. - rpc MoveFile(MoveFileRequest) returns (MoveFileResponse) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile" - body: "*" - }; - } - - // Writes to a file (inside a Workspace). - rpc WriteFile(WriteFileRequest) returns (WriteFileResponse) { - option (google.api.http) = { - post: "/v1alpha2/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile" - body: "*" - }; - } - - // Lists CompilationResults in a given Repository. - rpc ListCompilationResults(ListCompilationResultsRequest) returns (ListCompilationResultsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/compilationResults" - }; - option (google.api.method_signature) = "parent"; - } - - // Fetches a single CompilationResult. - rpc GetCompilationResult(GetCompilationResultRequest) returns (CompilationResult) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/compilationResults/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new CompilationResult in a given project and location. - rpc CreateCompilationResult(CreateCompilationResultRequest) returns (CompilationResult) { - option (google.api.http) = { - post: "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/compilationResults" - body: "compilation_result" - }; - option (google.api.method_signature) = "parent,compilation_result"; - } - - // Returns CompilationResultActions in a given CompilationResult. - rpc QueryCompilationResultActions(QueryCompilationResultActionsRequest) returns (QueryCompilationResultActionsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query" - }; - } - - // Lists WorkflowInvocations in a given Repository. - rpc ListWorkflowInvocations(ListWorkflowInvocationsRequest) returns (ListWorkflowInvocationsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/workflowInvocations" - }; - option (google.api.method_signature) = "parent"; - } - - // Fetches a single WorkflowInvocation. - rpc GetWorkflowInvocation(GetWorkflowInvocationRequest) returns (WorkflowInvocation) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new WorkflowInvocation in a given Repository. - rpc CreateWorkflowInvocation(CreateWorkflowInvocationRequest) returns (WorkflowInvocation) { - option (google.api.http) = { - post: "/v1alpha2/{parent=projects/*/locations/*/repositories/*}/workflowInvocations" - body: "workflow_invocation" - }; - option (google.api.method_signature) = "parent,workflow_invocation"; - } - - // Deletes a single WorkflowInvocation. - rpc DeleteWorkflowInvocation(DeleteWorkflowInvocationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Requests cancellation of a running WorkflowInvocation. - rpc CancelWorkflowInvocation(CancelWorkflowInvocationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel" - body: "*" - }; - } - - // Returns WorkflowInvocationActions in a given WorkflowInvocation. - rpc QueryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest) returns (QueryWorkflowInvocationActionsResponse) { - option (google.api.http) = { - get: "/v1alpha2/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query" - }; - } -} - -// Represents a Dataform Git repository. -message Repository { - option (google.api.resource) = { - type: "dataform.googleapis.com/Repository" - pattern: "projects/{project}/locations/{location}/repositories/{repository}" - }; - - // Controls Git remote configuration for a repository. - message GitRemoteSettings { - // 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; - } - - // Required. The Git remote's URL. - string url = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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 - // 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) = { - 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]; - } - - // Output only. The repository's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. If set, configures this repository to be linked to a Git remote. - GitRemoteSettings git_remote_settings = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// `ListRepositories` request message. -message ListRepositoriesRequest { - // Required. The location in which to list repositories. Must be in the format - // `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // 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. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListRepositories` - // 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]; -} - -// `ListRepositories` response message. -message ListRepositoriesResponse { - // List of repositories. - repeated Repository repositories = 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; -} - -// `GetRepository` request message. -message GetRepositoryRequest { - // Required. The repository's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Repository" - } - ]; -} - -// `CreateRepository` request message. -message CreateRepositoryRequest { - // 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) = { - type: "locations.googleapis.com/Location" - } - ]; - - // 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. - 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]; - - // Required. The repository to update. - Repository repository = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `DeleteRepository` request message. -message DeleteRepositoryRequest { - // Required. The repository's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Repository" - } - ]; - - // If set to true, any child resources of this repository will also be - // deleted. (Otherwise, the request will only succeed if the repository has no - // child resources.) - bool force = 2; -} - -// `FetchRemoteBranches` request message. -message FetchRemoteBranchesRequest { - // Required. The repository's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Repository" - } - ]; -} - -// `FetchRemoteBranches` response message. -message FetchRemoteBranchesResponse { - // The remote repository's branch names. - repeated string branches = 1; -} - -// Represents a Dataform Git workspace. -message Workspace { - option (google.api.resource) = { - type: "dataform.googleapis.com/Workspace" - pattern: "projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}" - }; - - // Output only. The workspace's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// `ListWorkspaces` request message. -message ListWorkspacesRequest { - // Required. The repository in which to list workspaces. 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 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. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListWorkspaces` - // 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]; -} - -// `ListWorkspaces` response message. -message ListWorkspacesResponse { - // List of workspaces. - repeated Workspace workspaces = 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; -} - -// `GetWorkspace` request message. -message GetWorkspaceRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; -} - -// `CreateWorkspace` request message. -message CreateWorkspaceRequest { - // 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) = { - type: "dataform.googleapis.com/Repository" - } - ]; - - // 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. - string workspace_id = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// `DeleteWorkspace` request message. -message DeleteWorkspaceRequest { - // Required. The workspace resource's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; -} - -// Represents the author of a Git commit. -message CommitAuthor { - // Required. The commit author's name. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The commit author's email address. - string email_address = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `PullGitCommits` request message. -message PullGitCommitsRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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. - CommitAuthor author = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// `PushGitCommits` request message. -message PushGitCommitsRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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]; -} - -// `FetchFileGitStatuses` request message. -message FetchFileGitStatusesRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; -} - -// `FetchFileGitStatuses` response message. -message FetchFileGitStatusesResponse { - // Represents the Git state of a file with uncommitted changes. - message UncommittedFileChange { - // Indicates the status of an uncommitted file change. - enum State { - // Default value. This value is unused. - STATE_UNSPECIFIED = 0; - - // The file has been newly added. - ADDED = 1; - - // The file has been deleted. - DELETED = 2; - - // The file has been modified. - MODIFIED = 3; - - // The file contains merge conflicts. - HAS_CONFLICTS = 4; - } - - // The file's full path including filename, relative to the workspace root. - string path = 1; - - // Indicates the status of the file. - State state = 2; - } - - // A list of all files which have uncommitted Git changes. There will only be - // a single entry for any given file. - repeated UncommittedFileChange uncommitted_file_changes = 1; -} - -// `FetchGitAheadBehind` request message. -message FetchGitAheadBehindRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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]; -} - -// `FetchGitAheadBehind` response message. -message FetchGitAheadBehindResponse { - // The number of commits in the remote branch that are not in the workspace. - int32 commits_ahead = 1; - - // The number of commits in the workspace that are not in the remote branch. - int32 commits_behind = 2; -} - -// `CommitWorkspaceChanges` request message. -message CommitWorkspaceChangesRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // Required. The commit's author. - CommitAuthor author = 4 [(google.api.field_behavior) = REQUIRED]; - - // 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. - repeated string paths = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// `ResetWorkspaceChanges` request message. -message ResetWorkspaceChangesRequest { - // Required. The workspace's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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. - bool clean = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// `FetchFileDiff` request message. -message FetchFileDiffRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // Required. The file's full path including filename, relative to the workspace root. - string path = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `FetchFileDiff` response message. -message FetchFileDiffResponse { - // The raw formatted Git diff for the file. - string formatted_diff = 1; -} - -// `QueryDirectoryContents` request message. -message QueryDirectoryContentsRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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 - // items than requested. If unspecified, the server will pick an appropriate - // 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. - // - // When paginating, all other parameters provided to - // `QueryDirectoryContents` must match the call that provided the page - // token. - string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// `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; - - // 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; -} - -// `MakeDirectory` request message. -message MakeDirectoryRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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 { - -} - -// `RemoveDirectory` request message. -message RemoveDirectoryRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // Required. The directory's full path including directory name, relative to the - // workspace root. - string path = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `MoveDirectory` request message. -message MoveDirectoryRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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. - string new_path = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// `MoveDirectory` response message. -message MoveDirectoryResponse { - -} - -// `ReadFile` request message. -message ReadFileRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // Required. The file's full path including filename, relative to the workspace root. - string path = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `ReadFile` response message. -message ReadFileResponse { - // The file's contents. - bytes file_contents = 1; -} - -// `RemoveFile` request message. -message RemoveFileRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // Required. The file's full path including filename, relative to the workspace root. - string path = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `MoveFile` request message. -message MoveFileRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // 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. - string new_path = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// `MoveFile` response message. -message MoveFileResponse { - -} - -// `WriteFile` request message. -message WriteFileRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - - // Required. The file. - string path = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The file's contents. - bytes contents = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// `WriteFile` response message. -message WriteFileResponse { - -} - -// `InstallNpmPackages` request message. -message InstallNpmPackagesRequest { - // Required. The workspace's name. - string workspace = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; -} - -// `InstallNpmPackages` response message. -message InstallNpmPackagesResponse { - -} - -// 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}" - }; - - // 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]; - } - - // An error encountered when attempting to compile a Dataform project. - message CompilationError { - // Output only. The error's top level message. - string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - string path = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The identifier of the action where this error occurred, if available. - Target action_target = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The compilation result's name. - 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: - // - a commit SHA: `12ade345` - // - a tag: `tag1` - // - a branch name: `branch1` - string git_commitish = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The name of the workspace to compile. Must be in the format - // `projects/*/locations/*/repositories/*/workspaces/*`. - string workspace = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Workspace" - } - ]; - } - - // Immutable. If set, fields of `code_compilation_overrides` override the default - // compilation settings that are specified in dataform.json. - CodeCompilationConfig code_compilation_config = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // 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]; -} - -// `ListCompilationResults` request message. -message ListCompilationResultsRequest { - // 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) = { - type: "dataform.googleapis.com/Repository" - } - ]; - - // 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. - // - // When paginating, all other parameters provided to `ListCompilationResults` - // must match the call that provided the page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// `ListCompilationResults` response message. -message ListCompilationResultsResponse { - // List of compilation results. - repeated CompilationResult compilation_results = 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; -} - -// `GetCompilationResult` request message. -message GetCompilationResultRequest { - // Required. The compilation result's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/CompilationResult" - } - ]; -} - -// `CreateCompilationResult` request message. -message CreateCompilationResultRequest { - // 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) = { - type: "dataform.googleapis.com/Repository" - } - ]; - - // Required. The compilation result to create. - CompilationResult compilation_result = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Represents an action identifier. If the action writes output, the output -// will be written to the referenced database object. -message Target { - // The action's database (Google Cloud project ID) . - string database = 1; - - // The action's schema (BigQuery dataset ID), within `database`. - string schema = 2; - - // The action's name, within `database` and `schema`. - string name = 3; -} - -// Describes a relation and its columns. -message RelationDescriptor { - // Describes a column. - message ColumnDescriptor { - // The identifier for the column. Each entry in `path` represents one level - // of nesting. - repeated string path = 1; - - // A textual description of the column. - string description = 2; - - // A list of BigQuery policy tags that will be applied to the column. - repeated string bigquery_policy_tags = 3; - } - - // A text description of the relation. - string description = 1; - - // A list of descriptions of columns within the relation. - repeated ColumnDescriptor columns = 2; - - // A set of BigQuery labels that should be applied to the relation. - map bigquery_labels = 3; -} - -// Represents a single Dataform action in a compilation result. -message CompilationResultAction { - // Represents a database relation. - message Relation { - // Indicates the type of this relation. - enum RelationType { - // Default value. This value is unused. - RELATION_TYPE_UNSPECIFIED = 0; - - // The relation is a table. - TABLE = 1; - - // The relation is a view. - VIEW = 2; - - // The relation is an incrementalized table. - INCREMENTAL_TABLE = 3; - - // The relation is a materialized view. - MATERIALIZED_VIEW = 4; - } - - // Contains settings for relations of type `INCREMENTAL_TABLE`. - message IncrementalTableConfig { - // The SELECT query which returns rows which should be inserted into the - // relation if it already exists and is not being refreshed. - string incremental_select_query = 1; - - // Whether this table should be protected from being refreshed. - bool refresh_disabled = 2; - - // A set of columns or SQL expressions used to define row uniqueness. - // If any duplicates are discovered (as defined by `unique_key_parts`), - // only the newly selected rows (as defined by `incremental_select_query`) - // will be included in the relation. - repeated string unique_key_parts = 3; - - // A SQL expression conditional used to limit the set of existing rows - // considered for a merge operation (see `unique_key_parts` for more - // information). - string update_partition_filter = 4; - - // SQL statements to be executed before inserting new rows into the - // relation. - repeated string incremental_pre_operations = 5; - - // SQL statements to be executed after inserting new rows into the - // relation. - repeated string incremental_post_operations = 6; - } - - // A list of actions that this action depends on. - repeated Target dependency_targets = 1; - - // Whether this action is disabled (i.e. should not be run). - bool disabled = 2; - - // Arbitrary, user-defined tags on this action. - repeated string tags = 3; - - // Descriptor for the relation and its columns. - RelationDescriptor relation_descriptor = 4; - - // The type of this relation. - RelationType relation_type = 5; - - // The SELECT query which returns rows which this relation should contain. - string select_query = 6; - - // SQL statements to be executed before creating the relation. - repeated string pre_operations = 7; - - // SQL statements to be executed after creating the relation. - repeated string post_operations = 8; - - // Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - // `relation_type` is `INCREMENTAL_TABLE`. - IncrementalTableConfig incremental_table_config = 9; - - // The SQL expression used to partition the relation. - string partition_expression = 10; - - // A list of columns or SQL expressions used to cluster the table. - repeated string cluster_expressions = 11; - - // Sets the partition expiration in days. - int32 partition_expiration_days = 12; - - // Specifies whether queries on this table must include a predicate filter - // that filters on the partitioning column. - bool require_partition_filter = 13; - - // Additional options that will be provided as key/value pairs into the - // options clause of a create table/view statement. See - // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language - // for more information on which options are supported. - map additional_options = 14; - } - - // Represents a list of arbitrary database operations. - message Operations { - // A list of actions that this action depends on. - repeated Target dependency_targets = 1; - - // Whether this action is disabled (i.e. should not be run). - bool disabled = 2; - - // Arbitrary, user-defined tags on this action. - repeated string tags = 3; - - // Descriptor for any output relation and its columns. Only set if - // `has_output` is true. - RelationDescriptor relation_descriptor = 6; - - // A list of arbitrary SQL statements that will be executed without - // alteration. - repeated string queries = 4; - - // Whether these operations produce an output relation. - bool has_output = 5; - } - - // Represents an assertion upon a SQL query which is required return zero - // rows. - message Assertion { - // A list of actions that this action depends on. - repeated Target dependency_targets = 1; - - // The parent action of this assertion. Only set if this assertion was - // automatically generated. - Target parent_action = 5; - - // Whether this action is disabled (i.e. should not be run). - bool disabled = 2; - - // Arbitrary, user-defined tags on this action. - repeated string tags = 3; - - // The SELECT query which must return zero rows in order for this assertion - // to succeed. - string select_query = 4; - - // Descriptor for the assertion's automatically-generated view and its - // columns. - RelationDescriptor relation_descriptor = 6; - } - - // Represents a relation which is not managed by Dataform but which may be - // referenced by Dataform actions. - message Declaration { - // Descriptor for the relation and its columns. Used as documentation only, - // i.e. values here will result in no changes to the relation's metadata. - RelationDescriptor relation_descriptor = 1; - } - - // This action's identifier. Unique within the compilation result. - Target target = 1; - - // The action's identifier if the project had been compiled without any - // overrides configured. Unique within the compilation result. - Target canonical_target = 2; - - // The full path including filename in which this action is located, relative - // to the workspace root. - string file_path = 3; - - oneof compiled_object { - // The database relation created/updated by this action. - Relation relation = 4; - - // The database operations executed by this action. - Operations operations = 5; - - // The assertion executed by this action. - Assertion assertion = 6; - - // The declaration declared by this action. - Declaration declaration = 7; - } -} - -// `QueryCompilationResultActions` request message. -message QueryCompilationResultActionsRequest { - // Required. The compilation result's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/CompilationResult" - } - ]; - - // 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. - // - // 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. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// `QueryCompilationResultActions` response message. -message QueryCompilationResultActionsResponse { - // List of compilation result actions. - repeated CompilationResultAction compilation_result_actions = 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 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}" - }; - - // 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]; - - // Immutable. The set of tags to include. - repeated string included_tags = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. When set to true, transitive dependencies of included actions will be - // executed. - bool transitive_dependencies_included = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. When set to true, transitive dependents of included actions will be - // executed. - bool transitive_dependents_included = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. When set to true, any incremental tables will be fully refreshed. - bool fully_refresh_incremental_tables_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Represents the current state of a workflow invocation. - enum State { - // Default value. This value is unused. - STATE_UNSPECIFIED = 0; - - // The workflow invocation is currently running. - RUNNING = 1; - - // The workflow invocation succeeded. A terminal state. - SUCCEEDED = 2; - - // The workflow invocation was cancelled. A terminal state. - CANCELLED = 3; - - // The workflow invocation failed. A terminal state. - FAILED = 4; - - // The workflow invocation is being cancelled, but some actions are still - // running. - CANCELING = 5; - } - - // 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" - } - ]; - - // Immutable. If left unset, a default InvocationConfig will be used. - 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]; -} - -// `ListWorkflowInvocations` request message. -message ListWorkflowInvocationsRequest { - // 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) = { - type: "dataform.googleapis.com/Repository" - } - ]; - - // 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. - // - // 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]; -} - -// `ListWorkflowInvocations` response message. -message ListWorkflowInvocationsResponse { - // List of workflow invocations. - repeated WorkflowInvocation workflow_invocations = 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; -} - -// `GetWorkflowInvocation` request message. -message GetWorkflowInvocationRequest { - // Required. The workflow invocation resource's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/WorkflowInvocation" - } - ]; -} - -// `CreateWorkflowInvocation` request message. -message CreateWorkflowInvocationRequest { - // Required. The parent resource of the WorkflowInvocation type. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/Repository" - } - ]; - - // Required. The workflow invocation resource to create. - WorkflowInvocation workflow_invocation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// `DeleteWorkflowInvocation` request message. -message DeleteWorkflowInvocationRequest { - // Required. The workflow invocation resource's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/WorkflowInvocation" - } - ]; -} - -// `CancelWorkflowInvocation` request message. -message CancelWorkflowInvocationRequest { - // Required. The workflow invocation resource's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/WorkflowInvocation" - } - ]; -} - -// Represents a single action in a workflow invocation. -message WorkflowInvocationAction { - // Represents the current state of an workflow invocation action. - enum State { - // The action has not yet been considered for invocation. - PENDING = 0; - - // The action is currently running. - RUNNING = 1; - - // Execution of the action was skipped because upstream dependencies did not - // all complete successfully. A terminal state. - SKIPPED = 2; - - // Execution of the action was disabled as per the configuration of the - // corresponding compilation result action. A terminal state. - DISABLED = 3; - - // The action succeeded. A terminal state. - SUCCEEDED = 4; - - // The action was cancelled. A terminal state. - CANCELLED = 5; - - // The action failed. A terminal state. - FAILED = 6; - } - - // Represents a workflow action that will run against BigQuery. - message BigQueryAction { - // Output only. The generated BigQuery SQL script that will be executed. - string sql_script = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // 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. - 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. - string failure_reason = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This action's timing details. - // `start_time` will be set if the action is in [RUNNING, SUCCEEDED, - // 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]; - - // Output only. The workflow action's bigquery action details. - BigQueryAction bigquery_action = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// `QueryWorkflowInvocationActions` request message. -message QueryWorkflowInvocationActionsRequest { - // Required. The workflow invocation's name. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataform.googleapis.com/WorkflowInvocation" - } - ]; - - // 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. - // - // When paginating, all other parameters provided to - // `QueryWorkflowInvocationActions` must match the call that provided the page - // token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// `QueryWorkflowInvocationActions` response message. -message QueryWorkflowInvocationActionsResponse { - // List of workflow invocation actions. - repeated WorkflowInvocationAction workflow_invocation_actions = 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; -} diff --git a/versions.txt b/versions.txt index cadb1d39dcba..4414f24f1fa0 100644 --- a/versions.txt +++ b/versions.txt @@ -171,8 +171,6 @@ google-cloud-dataflow:0.63.0:0.64.0-SNAPSHOT grpc-google-cloud-dataflow-v1beta3:0.63.0:0.64.0-SNAPSHOT proto-google-cloud-dataflow-v1beta3:0.63.0:0.64.0-SNAPSHOT google-cloud-dataform:0.58.0:0.59.0-SNAPSHOT -proto-google-cloud-dataform-v1alpha2:0.58.0:0.59.0-SNAPSHOT -grpc-google-cloud-dataform-v1alpha2:0.58.0:0.59.0-SNAPSHOT proto-google-cloud-dataform-v1beta1:0.58.0:0.59.0-SNAPSHOT grpc-google-cloud-dataform-v1beta1:0.58.0:0.59.0-SNAPSHOT google-cloud-data-fusion:1.59.0:1.60.0-SNAPSHOT