diff --git a/CHANGELOG.md b/CHANGELOG.md index 55f1f4d..0936350 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [0.2.0](https://github.com/googleapis/java-dataform/compare/v0.1.0...v0.2.0) (2022-08-09) + + +### Features + +* add fields for tracking reachable status of resources in list methods ([#3](https://github.com/googleapis/java-dataform/issues/3)) ([8e1c345](https://github.com/googleapis/java-dataform/commit/8e1c345c495c63bc10eac526f105a056d4ef6f2b)) +* add the failure_reason field to workflow invocation actions ([8e1c345](https://github.com/googleapis/java-dataform/commit/8e1c345c495c63bc10eac526f105a056d4ef6f2b)) +* Release API version v1beta1 (no changes to v1alpha2) ([#11](https://github.com/googleapis/java-dataform/issues/11)) ([0b21cf0](https://github.com/googleapis/java-dataform/commit/0b21cf0065a2157b144f5e1fe4a74df8234bbe17)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#13](https://github.com/googleapis/java-dataform/issues/13)) ([67f2b58](https://github.com/googleapis/java-dataform/commit/67f2b5825488013c7909ba4b2f9b4ee1c8efc69d)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#14](https://github.com/googleapis/java-dataform/issues/14)) ([43404e0](https://github.com/googleapis/java-dataform/commit/43404e033739cb0aec782f30070fe32fa2e4e8d8)) + ## 0.1.0 (2022-07-13) diff --git a/google-cloud-dataform-bom/pom.xml b/google-cloud-dataform-bom/pom.xml index 8b402cb..c46fa77 100644 --- a/google-cloud-dataform-bom/pom.xml +++ b/google-cloud-dataform-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-dataform-bom - 0.1.0 + 0.2.0 pom com.google.cloud google-cloud-shared-config - 1.2.7 + 1.5.3 Google Cloud Dataform BOM @@ -65,17 +65,27 @@ com.google.cloud google-cloud-dataform - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.1.0 + 0.2.0 + + + com.google.api.grpc + grpc-google-cloud-dataform-v1beta1 + 0.2.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.1.0 + 0.2.0 + + + com.google.api.grpc + proto-google-cloud-dataform-v1beta1 + 0.2.0 diff --git a/google-cloud-dataform/pom.xml b/google-cloud-dataform/pom.xml index ea36667..9f6f600 100644 --- a/google-cloud-dataform/pom.xml +++ b/google-cloud-dataform/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataform - 0.1.0 + 0.2.0 jar Google Cloud Dataform https://github.com/googleapis/java-dataform @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataform-parent - 0.1.0 + 0.2.0 google-cloud-dataform @@ -42,6 +42,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-dataform-v1beta1 + com.google.api.grpc proto-google-cloud-dataform-v1alpha2 @@ -66,6 +70,11 @@ com.google.api.grpc grpc-google-common-protos + + com.google.api.grpc + grpc-google-cloud-dataform-v1beta1 + test + com.google.api.grpc proto-google-iam-v1 diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java index b81a343..18adcd6 100644 --- a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/DataformClient.java @@ -3282,7 +3282,6 @@ public final void cancelWorkflowInvocation(CancelWorkflowInvocationRequest reque * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); * for (WorkflowInvocationAction element : * dataformClient.queryWorkflowInvocationActions(request).iterateAll()) { @@ -3317,7 +3316,6 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * dataformClient.queryWorkflowInvocationActionsPagedCallable().futureCall(request); @@ -3352,7 +3350,6 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); * while (true) { * QueryWorkflowInvocationActionsResponse response = @@ -3529,7 +3526,10 @@ public final UnaryCallable getLocationCallable() { * try (DataformClient dataformClient = DataformClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setResource( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -3558,7 +3558,10 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * try (DataformClient dataformClient = DataformClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setResource( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java index b0dc6e3..606cd23 100644 --- a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1alpha2/stub/HttpJsonDataformStub.java @@ -1397,7 +1397,6 @@ public class HttpJsonDataformStub extends DataformStub { 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()); return fields; @@ -1496,7 +1495,8 @@ public class HttpJsonDataformStub extends DataformStub { return fields; }) .setAdditionalPaths( - "/v1alpha2/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy") + "/v1alpha2/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy", + "/v1alpha2/{resource=projects/*/locations/*/repositories/*/compilationResults/*}:setIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java new file mode 100644 index 0000000..a652923 --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -0,0 +1,4236 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.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.v1beta1.stub.DataformStub; +import com.google.cloud.dataform.v1beta1.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.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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * 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(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * 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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * 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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DataformSettings dataformSettings =
+ *     DataformSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             DataformSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 repository in which to create the workflow invocation. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 repository in which to create the workflow invocation. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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 for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * 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(); + } + + @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/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java new file mode 100644 index 0000000..29c0bda --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -0,0 +1,664 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.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.v1beta1.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.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 total timeout of getRepository to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
+ * dataformSettingsBuilder
+ *     .getRepositorySettings()
+ *     .setRetrySettings(
+ *         dataformSettingsBuilder
+ *             .getRepositorySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DataformSettings dataformSettings = dataformSettingsBuilder.build();
+ * }
+ */ +@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(); + } + + 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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi + 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()); + } + + @BetaApi + 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(); + } + + @Override + public DataformSettings build() throws IOException { + return new DataformSettings(this); + } + } +} diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json new file mode 100644 index 0000000..b6506d0 --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json @@ -0,0 +1,132 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.dataform.v1beta1", + "libraryPackage": "com.google.cloud.dataform.v1beta1", + "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"] + }, + "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"] + }, + "UpdateRepository": { + "methods": ["updateRepository", "updateRepository", "updateRepositoryCallable"] + }, + "WriteFile": { + "methods": ["writeFile", "writeFileCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java new file mode 100644 index 0000000..c98392b --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * 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.v1beta1; + +import javax.annotation.Generated; diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java new file mode 100644 index 0000000..d4d7994 --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java @@ -0,0 +1,323 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.stub; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffResponse; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; +import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; +import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; +import com.google.cloud.dataform.v1beta1.ListWorkspacesResponse; +import com.google.cloud.dataform.v1beta1.MakeDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MakeDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveFileRequest; +import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; +import com.google.cloud.dataform.v1beta1.ReadFileRequest; +import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.RemoveFileRequest; +import com.google.cloud.dataform.v1beta1.Repository; +import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.WorkflowInvocation; +import com.google.cloud.dataform.v1beta1.Workspace; +import com.google.cloud.dataform.v1beta1.WriteFileRequest; +import com.google.cloud.dataform.v1beta1.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.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()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java new file mode 100644 index 0000000..0ad9497 --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -0,0 +1,1920 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.stub; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.CompilationResultAction; +import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffResponse; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; +import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; +import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; +import com.google.cloud.dataform.v1beta1.ListWorkspacesResponse; +import com.google.cloud.dataform.v1beta1.MakeDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MakeDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveFileRequest; +import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; +import com.google.cloud.dataform.v1beta1.ReadFileRequest; +import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.RemoveFileRequest; +import com.google.cloud.dataform.v1beta1.Repository; +import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.WorkflowInvocation; +import com.google.cloud.dataform.v1beta1.WorkflowInvocationAction; +import com.google.cloud.dataform.v1beta1.Workspace; +import com.google.cloud.dataform.v1beta1.WriteFileRequest; +import com.google.cloud.dataform.v1beta1.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.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 total timeout of getRepository to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
+ * dataformSettingsBuilder
+ *     .getRepositorySettings()
+ *     .setRetrySettings(
+ *         dataformSettingsBuilder
+ *             .getRepositorySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DataformStubSettings dataformSettings = dataformSettingsBuilder.build();
+ * }
+ */ +@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 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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() == null + ? ImmutableList.of() + : 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; + } + + 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 a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + 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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(DataformStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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(); + } + + /** 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 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(); + + 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); + 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(); + + 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); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + 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.setEndpoint(getDefaultEndpoint()); + 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")); + + 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; + } + + @Override + public DataformStubSettings build() throws IOException { + return new DataformStubSettings(this); + } + } +} diff --git a/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformCallableFactory.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformCallableFactory.java new file mode 100644 index 0000000..b7e808c --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.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/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java new file mode 100644 index 0000000..aaac507 --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -0,0 +1,1516 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.stub; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.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.UnaryCallable; +import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffResponse; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; +import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; +import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; +import com.google.cloud.dataform.v1beta1.ListWorkspacesResponse; +import com.google.cloud.dataform.v1beta1.MakeDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MakeDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveFileRequest; +import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; +import com.google.cloud.dataform.v1beta1.ReadFileRequest; +import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.RemoveFileRequest; +import com.google.cloud.dataform.v1beta1.Repository; +import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.WorkflowInvocation; +import com.google.cloud.dataform.v1beta1.Workspace; +import com.google.cloud.dataform.v1beta1.WriteFileRequest; +import com.google.cloud.dataform.v1beta1.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.ImmutableMap; +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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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 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 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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("repository.name", String.valueOf(request.getRepository().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + fetchRemoteBranchesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchRemoteBranchesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listWorkspacesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listWorkspacesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + installNpmPackagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(installNpmPackagesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings pullGitCommitsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(pullGitCommitsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings pushGitCommitsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(pushGitCommitsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + fetchFileGitStatusesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchFileGitStatusesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + fetchGitAheadBehindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchGitAheadBehindMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings commitWorkspaceChangesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(commitWorkspaceChangesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings resetWorkspaceChangesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resetWorkspaceChangesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings fetchFileDiffTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchFileDiffMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings + queryDirectoryContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryDirectoryContentsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings makeDirectoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(makeDirectoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings removeDirectoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeDirectoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings moveDirectoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveDirectoryMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings readFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(readFileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings removeFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeFileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings moveFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveFileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings writeFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(writeFileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workspace", String.valueOf(request.getWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings + listCompilationResultsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listCompilationResultsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getCompilationResultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCompilationResultMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createCompilationResultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCompilationResultMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + queryCompilationResultActionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(queryCompilationResultActionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listWorkflowInvocationsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listWorkflowInvocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getWorkflowInvocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowInvocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createWorkflowInvocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowInvocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteWorkflowInvocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkflowInvocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + cancelWorkflowInvocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelWorkflowInvocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + queryWorkflowInvocationActionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(queryWorkflowInvocationActionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.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.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 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/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformCallableFactory.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformCallableFactory.java new file mode 100644 index 0000000..293dcdc --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.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); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @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/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java new file mode 100644 index 0000000..bb2ab61 --- /dev/null +++ b/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -0,0 +1,2338 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.stub; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.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.UnaryCallable; +import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.CompilationResult; +import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffRequest; +import com.google.cloud.dataform.v1beta1.FetchFileDiffResponse; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest; +import com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest; +import com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest; +import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; +import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest; +import com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest; +import com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse; +import com.google.cloud.dataform.v1beta1.ListRepositoriesRequest; +import com.google.cloud.dataform.v1beta1.ListRepositoriesResponse; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest; +import com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse; +import com.google.cloud.dataform.v1beta1.ListWorkspacesRequest; +import com.google.cloud.dataform.v1beta1.ListWorkspacesResponse; +import com.google.cloud.dataform.v1beta1.MakeDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MakeDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; +import com.google.cloud.dataform.v1beta1.MoveFileRequest; +import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; +import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; +import com.google.cloud.dataform.v1beta1.ReadFileRequest; +import com.google.cloud.dataform.v1beta1.ReadFileResponse; +import com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest; +import com.google.cloud.dataform.v1beta1.RemoveFileRequest; +import com.google.cloud.dataform.v1beta1.Repository; +import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest; +import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.WorkflowInvocation; +import com.google.cloud.dataform.v1beta1.Workspace; +import com.google.cloud.dataform.v1beta1.WriteFileRequest; +import com.google.cloud.dataform.v1beta1.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.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.v1beta1.Dataform/ListRepositories") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/GetRepository") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + 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.v1beta1.Dataform/CreateRepository") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("repository", request.getRepository())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Repository.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateRepositoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateRepository") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("repository", request.getRepository())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Repository.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteRepositoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteRepository") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/FetchRemoteBranches") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + 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.v1beta1.Dataform/ListWorkspaces") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/GetWorkspace") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + 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.v1beta1.Dataform/CreateWorkspace") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workspace", request.getWorkspace())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Workspace.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteWorkspaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteWorkspace") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + 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.v1beta1.Dataform/InstallNpmPackages") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(InstallNpmPackagesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + pullGitCommitsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/PullGitCommits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + pushGitCommitsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/PushGitCommits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchFileGitStatusesRequest, FetchFileGitStatusesResponse> + fetchFileGitStatusesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/FetchFileGitStatuses") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + 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.v1beta1.Dataform/FetchGitAheadBehind") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/CommitWorkspaceChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + resetWorkspaceChangesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ResetWorkspaceChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + fetchFileDiffMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/FetchFileDiff") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/QueryDirectoryContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/MakeDirectory") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MakeDirectoryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + removeDirectoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/RemoveDirectory") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + moveDirectoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/MoveDirectory") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MoveDirectoryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + readFileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ReadFile") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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.v1beta1.Dataform/RemoveFile") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + moveFileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/MoveFile") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MoveFileResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + writeFileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/WriteFile") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearWorkspace().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WriteFileResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCompilationResultsRequest, ListCompilationResultsResponse> + listCompilationResultsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/ListCompilationResults") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + 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.v1beta1.Dataform/GetCompilationResult") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompilationResult.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCompilationResultMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateCompilationResult") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("compilationResult", request.getCompilationResult())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompilationResult.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> + queryCompilationResultActionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/QueryCompilationResultActions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + 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.v1beta1.Dataform/ListWorkflowInvocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkflowInvocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getWorkflowInvocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetWorkflowInvocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowInvocation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createWorkflowInvocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateWorkflowInvocation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workflowInvocation", request.getWorkflowInvocation())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowInvocation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteWorkflowInvocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowInvocation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + 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.v1beta1.Dataform/CancelWorkflowInvocation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> + queryWorkflowInvocationActionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/QueryWorkflowInvocationActions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{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()); + 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( + "/v1beta1/{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(); + 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( + "/v1beta1/{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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.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 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) + .build(); + HttpJsonCallSettings getRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + fetchRemoteBranchesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchRemoteBranchesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkspacesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listWorkspacesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getWorkspaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkspaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createWorkspaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteWorkspaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkspaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + installNpmPackagesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(installNpmPackagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings pullGitCommitsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(pullGitCommitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings pushGitCommitsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(pushGitCommitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + fetchFileGitStatusesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchFileGitStatusesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + fetchGitAheadBehindTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchGitAheadBehindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + commitWorkspaceChangesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(commitWorkspaceChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + resetWorkspaceChangesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resetWorkspaceChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + fetchFileDiffTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(fetchFileDiffMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + queryDirectoryContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryDirectoryContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + makeDirectoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(makeDirectoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings removeDirectoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeDirectoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + moveDirectoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveDirectoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings readFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(readFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings removeFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings moveFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings writeFileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(writeFileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCompilationResultsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCompilationResultsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCompilationResultTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCompilationResultMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createCompilationResultTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCompilationResultMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> + queryCompilationResultActionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(queryCompilationResultActionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkflowInvocationsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listWorkflowInvocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getWorkflowInvocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowInvocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createWorkflowInvocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowInvocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteWorkflowInvocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkflowInvocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + cancelWorkflowInvocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(cancelWorkflowInvocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> + queryWorkflowInvocationActionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(queryWorkflowInvocationActionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .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.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); + 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 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/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java index 3d546d1..9085e5c 100644 --- a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientHttpJsonTest.java @@ -2683,7 +2683,6 @@ public void queryWorkflowInvocationActionsTest() throws Exception { .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") .build(); QueryWorkflowInvocationActionsPagedResponse pagedListResponse = @@ -2726,7 +2725,6 @@ public void queryWorkflowInvocationActionsExceptionTest() throws Exception { .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") .build(); client.queryWorkflowInvocationActions(request); Assert.fail("No exception raised"); @@ -2864,7 +2862,10 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -2897,7 +2898,10 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientTest.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientTest.java index c27b72e..785f448 100644 --- a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientTest.java +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1alpha2/DataformClientTest.java @@ -2433,7 +2433,6 @@ public void queryWorkflowInvocationActionsTest() throws Exception { .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") .build(); QueryWorkflowInvocationActionsPagedResponse pagedListResponse = @@ -2453,7 +2452,6 @@ public void queryWorkflowInvocationActionsTest() throws Exception { 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(), @@ -2474,7 +2472,6 @@ public void queryWorkflowInvocationActionsExceptionTest() throws Exception { .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") .build(); client.queryWorkflowInvocationActions(request); Assert.fail("No exception raised"); @@ -2597,7 +2594,10 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -2626,7 +2626,10 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource( + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java new file mode 100644 index 0000000..daa3961 --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java @@ -0,0 +1,2843 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.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.v1beta1.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.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. + } + } +} diff --git a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java new file mode 100644 index 0000000..6fc77ca --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java @@ -0,0 +1,2575 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.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.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. + } + } +} diff --git a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataform.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataform.java new file mode 100644 index 0000000..d69e1d6 --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataform.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.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/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java new file mode 100644 index 0000000..e8066ef --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java @@ -0,0 +1,824 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dataform.v1beta1.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/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicy.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicy.java new file mode 100644 index 0000000..bb34dd5 --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.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/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java new file mode 100644 index 0000000..8d4fbce --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.protobuf.AbstractMessage; +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<>(); + } +} diff --git a/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockLocations.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockLocations.java new file mode 100644 index 0000000..46e95e6 --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.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/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockLocationsImpl.java b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockLocationsImpl.java new file mode 100644 index 0000000..4092da7 --- /dev/null +++ b/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.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/grpc-google-cloud-dataform-v1alpha2/pom.xml b/grpc-google-cloud-dataform-v1alpha2/pom.xml index ea386b4..727a056 100644 --- a/grpc-google-cloud-dataform-v1alpha2/pom.xml +++ b/grpc-google-cloud-dataform-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.1.0 + 0.2.0 grpc-google-cloud-dataform-v1alpha2 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.1.0 + 0.2.0 diff --git a/grpc-google-cloud-dataform-v1beta1/pom.xml b/grpc-google-cloud-dataform-v1beta1/pom.xml new file mode 100644 index 0000000..dcc0b6d --- /dev/null +++ b/grpc-google-cloud-dataform-v1beta1/pom.xml @@ -0,0 +1,65 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-dataform-v1beta1 + 0.2.0 + grpc-google-cloud-dataform-v1beta1 + GRPC library for google-cloud-dataform + + com.google.cloud + google-cloud-dataform-parent + 0.2.0 + + + + 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-v1beta1 + + + com.google.guava + guava + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java new file mode 100644 index 0000000..e76c2ad --- /dev/null +++ b/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java @@ -0,0 +1,4558 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.dataform.v1beta1; + +import 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/v1beta1/dataform.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataformGrpc { + + private DataformGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataform.v1beta1.Dataform"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest, + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse> + getListRepositoriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRepositories", + requestType = com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest, + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse> + getListRepositoriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("ListRepositories")) + .build(); + } + } + } + return getListRepositoriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository> + getGetRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRepository", + requestType = com.google.cloud.dataform.v1beta1.GetRepositoryRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Repository.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository> + getGetRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetRepositoryRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.GetRepositoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetRepository")) + .build(); + } + } + } + return getGetRepositoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository> + getCreateRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRepository", + requestType = com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Repository.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository> + getCreateRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.CreateRepositoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateRepository")) + .build(); + } + } + } + return getCreateRepositoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository> + getUpdateRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRepository", + requestType = com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Repository.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository> + getUpdateRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.UpdateRepositoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateRepository")) + .build(); + } + } + } + return getUpdateRepositoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest, com.google.protobuf.Empty> + getDeleteRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRepository", + requestType = com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest, com.google.protobuf.Empty> + getDeleteRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchRemoteBranchesRequest, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse> + getFetchRemoteBranchesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchRemoteBranches", + requestType = com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.class, + responseType = com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse> + getFetchRemoteBranchesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("FetchRemoteBranches")) + .build(); + } + } + } + return getFetchRemoteBranchesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest, + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse> + getListWorkspacesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkspaces", + requestType = com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest, + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse> + getListWorkspacesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("ListWorkspaces")) + .build(); + } + } + } + return getListWorkspacesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest, + com.google.cloud.dataform.v1beta1.Workspace> + getGetWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkspace", + requestType = com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Workspace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest, + com.google.cloud.dataform.v1beta1.Workspace> + getGetWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetWorkspace")) + .build(); + } + } + } + return getGetWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.Workspace> + getCreateWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkspace", + requestType = com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Workspace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.Workspace> + getCreateWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateWorkspace")) + .build(); + } + } + } + return getCreateWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, com.google.protobuf.Empty> + getDeleteWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkspace", + requestType = com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, com.google.protobuf.Empty> + getDeleteWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.InstallNpmPackagesRequest, + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse> + getInstallNpmPackagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InstallNpmPackages", + requestType = com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.class, + responseType = com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest, + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse> + getInstallNpmPackagesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("InstallNpmPackages")) + .build(); + } + } + } + return getInstallNpmPackagesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest, com.google.protobuf.Empty> + getPullGitCommitsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PullGitCommits", + requestType = com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest, com.google.protobuf.Empty> + getPullGitCommitsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.PushGitCommitsRequest, com.google.protobuf.Empty> + getPushGitCommitsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PushGitCommits", + requestType = com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest, com.google.protobuf.Empty> + getPushGitCommitsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesRequest, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse> + getFetchFileGitStatusesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchFileGitStatuses", + requestType = com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.class, + responseType = com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse> + getFetchFileGitStatusesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("FetchFileGitStatuses")) + .build(); + } + } + } + return getFetchFileGitStatusesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse> + getFetchGitAheadBehindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchGitAheadBehind", + requestType = com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.class, + responseType = com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse> + getFetchGitAheadBehindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("FetchGitAheadBehind")) + .build(); + } + } + } + return getFetchGitAheadBehindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest, + com.google.protobuf.Empty> + getCommitWorkspaceChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitWorkspaceChanges", + requestType = com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest, + com.google.protobuf.Empty> + getCommitWorkspaceChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.ResetWorkspaceChangesRequest, com.google.protobuf.Empty> + getResetWorkspaceChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetWorkspaceChanges", + requestType = com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest, com.google.protobuf.Empty> + getResetWorkspaceChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileDiffRequest, + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse> + getFetchFileDiffMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchFileDiff", + requestType = com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.class, + responseType = com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest, + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse> + getFetchFileDiffMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("FetchFileDiff")) + .build(); + } + } + } + return getFetchFileDiffMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse> + getQueryDirectoryContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryDirectoryContents", + requestType = com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse> + getQueryDirectoryContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryDirectoryContents")) + .build(); + } + } + } + return getQueryDirectoryContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest, + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse> + getMakeDirectoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MakeDirectory", + requestType = com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.class, + responseType = com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest, + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse> + getMakeDirectoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MakeDirectory")) + .build(); + } + } + } + return getMakeDirectoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest, com.google.protobuf.Empty> + getRemoveDirectoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveDirectory", + requestType = com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest, com.google.protobuf.Empty> + getRemoveDirectoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.MoveDirectoryRequest, + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse> + getMoveDirectoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveDirectory", + requestType = com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.class, + responseType = com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest, + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse> + getMoveDirectoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveDirectory")) + .build(); + } + } + } + return getMoveDirectoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ReadFileRequest, + com.google.cloud.dataform.v1beta1.ReadFileResponse> + getReadFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReadFile", + requestType = com.google.cloud.dataform.v1beta1.ReadFileRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ReadFileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ReadFileRequest, + com.google.cloud.dataform.v1beta1.ReadFileResponse> + getReadFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ReadFileRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ReadFileResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("ReadFile")) + .build(); + } + } + } + return getReadFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.RemoveFileRequest, com.google.protobuf.Empty> + getRemoveFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveFile", + requestType = com.google.cloud.dataform.v1beta1.RemoveFileRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.RemoveFileRequest, com.google.protobuf.Empty> + getRemoveFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.MoveFileRequest, + com.google.cloud.dataform.v1beta1.MoveFileResponse> + getMoveFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveFile", + requestType = com.google.cloud.dataform.v1beta1.MoveFileRequest.class, + responseType = com.google.cloud.dataform.v1beta1.MoveFileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveFileRequest, + com.google.cloud.dataform.v1beta1.MoveFileResponse> + getMoveFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveFileRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.MoveFileResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveFile")) + .build(); + } + } + } + return getMoveFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.WriteFileRequest, + com.google.cloud.dataform.v1beta1.WriteFileResponse> + getWriteFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "WriteFile", + requestType = com.google.cloud.dataform.v1beta1.WriteFileRequest.class, + responseType = com.google.cloud.dataform.v1beta1.WriteFileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.WriteFileRequest, + com.google.cloud.dataform.v1beta1.WriteFileResponse> + getWriteFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.WriteFileRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.WriteFileResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("WriteFile")) + .build(); + } + } + } + return getWriteFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + getListCompilationResultsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCompilationResults", + requestType = com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + getListCompilationResultsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + getListCompilationResultsMethod; + if ((getListCompilationResultsMethod = DataformGrpc.getListCompilationResultsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getListCompilationResultsMethod = DataformGrpc.getListCompilationResultsMethod) + == null) { + DataformGrpc.getListCompilationResultsMethod = + getListCompilationResultsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCompilationResults")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("ListCompilationResults")) + .build(); + } + } + } + return getListCompilationResultsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getGetCompilationResultMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCompilationResult", + requestType = com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.class, + responseType = com.google.cloud.dataform.v1beta1.CompilationResult.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getGetCompilationResultMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getGetCompilationResultMethod; + if ((getGetCompilationResultMethod = DataformGrpc.getGetCompilationResultMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetCompilationResultMethod = DataformGrpc.getGetCompilationResultMethod) == null) { + DataformGrpc.getGetCompilationResultMethod = + getGetCompilationResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCompilationResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CompilationResult + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("GetCompilationResult")) + .build(); + } + } + } + return getGetCompilationResultMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getCreateCompilationResultMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCompilationResult", + requestType = com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.class, + responseType = com.google.cloud.dataform.v1beta1.CompilationResult.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getCreateCompilationResultMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult> + getCreateCompilationResultMethod; + if ((getCreateCompilationResultMethod = DataformGrpc.getCreateCompilationResultMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCreateCompilationResultMethod = DataformGrpc.getCreateCompilationResultMethod) + == null) { + DataformGrpc.getCreateCompilationResultMethod = + getCreateCompilationResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCompilationResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CompilationResult + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateCompilationResult")) + .build(); + } + } + } + return getCreateCompilationResultMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + getQueryCompilationResultActionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryCompilationResultActions", + requestType = com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + getQueryCompilationResultActionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + getQueryCompilationResultActionsMethod; + if ((getQueryCompilationResultActionsMethod = + DataformGrpc.getQueryCompilationResultActionsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getQueryCompilationResultActionsMethod = + DataformGrpc.getQueryCompilationResultActionsMethod) + == null) { + DataformGrpc.getQueryCompilationResultActionsMethod = + getQueryCompilationResultActionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryCompilationResultActions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .QueryCompilationResultActionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryCompilationResultActions")) + .build(); + } + } + } + return getQueryCompilationResultActionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + getListWorkflowInvocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkflowInvocations", + requestType = com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + getListWorkflowInvocationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + getListWorkflowInvocationsMethod; + if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getListWorkflowInvocationsMethod = DataformGrpc.getListWorkflowInvocationsMethod) + == null) { + 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.v1beta1.ListWorkflowInvocationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("ListWorkflowInvocations")) + .build(); + } + } + } + return getListWorkflowInvocationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.WorkflowInvocation> + getGetWorkflowInvocationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkflowInvocation", + requestType = com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.class, + responseType = com.google.cloud.dataform.v1beta1.WorkflowInvocation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.WorkflowInvocation> + getGetWorkflowInvocationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkflowInvocationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.WorkflowInvocation + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("GetWorkflowInvocation")) + .build(); + } + } + } + return getGetWorkflowInvocationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.WorkflowInvocation> + getCreateWorkflowInvocationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowInvocation", + requestType = com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.class, + responseType = com.google.cloud.dataform.v1beta1.WorkflowInvocation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.WorkflowInvocation> + getCreateWorkflowInvocationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.WorkflowInvocation + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateWorkflowInvocation")) + .build(); + } + } + } + return getCreateWorkflowInvocationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest, + com.google.protobuf.Empty> + getDeleteWorkflowInvocationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowInvocation", + requestType = com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest, + com.google.protobuf.Empty> + getDeleteWorkflowInvocationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest, + com.google.protobuf.Empty> + getCancelWorkflowInvocationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelWorkflowInvocation", + requestType = com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest, + com.google.protobuf.Empty> + getCancelWorkflowInvocationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse> + getQueryWorkflowInvocationActionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryWorkflowInvocationActions", + requestType = com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse> + getQueryWorkflowInvocationActionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest, + com.google.cloud.dataform.v1beta1.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.v1beta1 + .QueryWorkflowInvocationActionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1 + .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 abstract static class DataformImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Repositories in a given project and location.
+     * 
+ */ + public void listRepositories( + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRepositoriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a single Repository.
+     * 
+ */ + public void getRepository( + com.google.cloud.dataform.v1beta1.GetRepositoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRepositoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Repository in a given project and location.
+     * 
+ */ + public void createRepository( + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRepositoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a single Repository.
+     * 
+ */ + public void updateRepository( + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRepositoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Repository.
+     * 
+ */ + public void deleteRepository( + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRepositoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a Repository's remote branches.
+     * 
+ */ + public void fetchRemoteBranches( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchRemoteBranchesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Workspaces in a given Repository.
+     * 
+ */ + public void listWorkspaces( + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkspacesMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a single Workspace.
+     * 
+ */ + public void getWorkspace( + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Workspace in a given Repository.
+     * 
+ */ + public void createWorkspace( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Workspace.
+     * 
+ */ + public void deleteWorkspace( + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Installs dependency NPM packages (inside a Workspace).
+     * 
+ */ + public void installNpmPackages( + com.google.cloud.dataform.v1beta1.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.
+     * 
+ */ + public void pullGitCommits( + com.google.cloud.dataform.v1beta1.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.
+     * 
+ */ + public void pushGitCommits( + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPushGitCommitsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches Git statuses for the files in a Workspace.
+     * 
+ */ + public void fetchFileGitStatuses( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchFileGitStatusesMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches Git ahead/behind against a remote branch.
+     * 
+ */ + public void fetchGitAheadBehind( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitAheadBehindMethod(), responseObserver); + } + + /** + * + * + *
+     * Applies a Git commit for uncommitted files in a Workspace.
+     * 
+ */ + public void commitWorkspaceChanges( + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitWorkspaceChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs a Git reset for uncommitted files in a Workspace.
+     * 
+ */ + public void resetWorkspaceChanges( + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetWorkspaceChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches Git diff for an uncommitted file in a Workspace.
+     * 
+ */ + public void fetchFileDiff( + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchFileDiffMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a given Workspace directory.
+     * 
+ */ + public void queryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryDirectoryContentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a directory inside a Workspace.
+     * 
+ */ + public void makeDirectory( + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMakeDirectoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a directory (inside a Workspace) and all of its contents.
+     * 
+ */ + public void removeDirectory( + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveDirectoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Moves a directory (inside a Workspace), and all of its contents, to a new
+     * location.
+     * 
+ */ + public void moveDirectory( + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMoveDirectoryMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Workspace).
+     * 
+ */ + public void readFile( + com.google.cloud.dataform.v1beta1.ReadFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a file (inside a Workspace).
+     * 
+ */ + public void removeFile( + com.google.cloud.dataform.v1beta1.RemoveFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Moves a file (inside a Workspace) to a new location.
+     * 
+ */ + public void moveFile( + com.google.cloud.dataform.v1beta1.MoveFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Writes to a file (inside a Workspace).
+     * 
+ */ + public void writeFile( + com.google.cloud.dataform.v1beta1.WriteFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CompilationResults in a given Repository.
+     * 
+ */ + public void listCompilationResults( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCompilationResultsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a single CompilationResult.
+     * 
+ */ + public void getCompilationResult( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCompilationResultMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new CompilationResult in a given project and location.
+     * 
+ */ + public void createCompilationResult( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCompilationResultMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns CompilationResultActions in a given CompilationResult.
+     * 
+ */ + public void queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryCompilationResultActionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists WorkflowInvocations in a given Repository.
+     * 
+ */ + public void listWorkflowInvocations( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowInvocationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a single WorkflowInvocation.
+     * 
+ */ + public void getWorkflowInvocation( + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkflowInvocationMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new WorkflowInvocation in a given Repository.
+     * 
+ */ + public void createWorkflowInvocation( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkflowInvocationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single WorkflowInvocation.
+     * 
+ */ + public void deleteWorkflowInvocation( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkflowInvocationMethod(), responseObserver); + } + + /** + * + * + *
+     * Requests cancellation of a running WorkflowInvocation.
+     * 
+ */ + public void cancelWorkflowInvocation( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelWorkflowInvocationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
+     * 
+ */ + public void queryWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryWorkflowInvocationActionsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListRepositoriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest, + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse>( + this, METHODID_LIST_REPOSITORIES))) + .addMethod( + getGetRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository>(this, METHODID_GET_REPOSITORY))) + .addMethod( + getCreateRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository>( + this, METHODID_CREATE_REPOSITORY))) + .addMethod( + getUpdateRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest, + com.google.cloud.dataform.v1beta1.Repository>( + this, METHODID_UPDATE_REPOSITORY))) + .addMethod( + getDeleteRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_REPOSITORY))) + .addMethod( + getFetchRemoteBranchesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse>( + this, METHODID_FETCH_REMOTE_BRANCHES))) + .addMethod( + getListWorkspacesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest, + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse>( + this, METHODID_LIST_WORKSPACES))) + .addMethod( + getGetWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest, + com.google.cloud.dataform.v1beta1.Workspace>(this, METHODID_GET_WORKSPACE))) + .addMethod( + getCreateWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.Workspace>( + this, METHODID_CREATE_WORKSPACE))) + .addMethod( + getDeleteWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WORKSPACE))) + .addMethod( + getInstallNpmPackagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest, + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse>( + this, METHODID_INSTALL_NPM_PACKAGES))) + .addMethod( + getPullGitCommitsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest, + com.google.protobuf.Empty>(this, METHODID_PULL_GIT_COMMITS))) + .addMethod( + getPushGitCommitsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest, + com.google.protobuf.Empty>(this, METHODID_PUSH_GIT_COMMITS))) + .addMethod( + getFetchFileGitStatusesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse>( + this, METHODID_FETCH_FILE_GIT_STATUSES))) + .addMethod( + getFetchGitAheadBehindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse>( + this, METHODID_FETCH_GIT_AHEAD_BEHIND))) + .addMethod( + getCommitWorkspaceChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest, + com.google.protobuf.Empty>(this, METHODID_COMMIT_WORKSPACE_CHANGES))) + .addMethod( + getResetWorkspaceChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest, + com.google.protobuf.Empty>(this, METHODID_RESET_WORKSPACE_CHANGES))) + .addMethod( + getFetchFileDiffMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest, + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse>( + this, METHODID_FETCH_FILE_DIFF))) + .addMethod( + getQueryDirectoryContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse>( + this, METHODID_QUERY_DIRECTORY_CONTENTS))) + .addMethod( + getMakeDirectoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest, + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse>( + this, METHODID_MAKE_DIRECTORY))) + .addMethod( + getRemoveDirectoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest, + com.google.protobuf.Empty>(this, METHODID_REMOVE_DIRECTORY))) + .addMethod( + getMoveDirectoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest, + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse>( + this, METHODID_MOVE_DIRECTORY))) + .addMethod( + getReadFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ReadFileRequest, + com.google.cloud.dataform.v1beta1.ReadFileResponse>( + this, METHODID_READ_FILE))) + .addMethod( + getRemoveFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.RemoveFileRequest, + com.google.protobuf.Empty>(this, METHODID_REMOVE_FILE))) + .addMethod( + getMoveFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.MoveFileRequest, + com.google.cloud.dataform.v1beta1.MoveFileResponse>( + this, METHODID_MOVE_FILE))) + .addMethod( + getWriteFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.WriteFileRequest, + com.google.cloud.dataform.v1beta1.WriteFileResponse>( + this, METHODID_WRITE_FILE))) + .addMethod( + getListCompilationResultsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse>( + this, METHODID_LIST_COMPILATION_RESULTS))) + .addMethod( + getGetCompilationResultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult>( + this, METHODID_GET_COMPILATION_RESULT))) + .addMethod( + getCreateCompilationResultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest, + com.google.cloud.dataform.v1beta1.CompilationResult>( + this, METHODID_CREATE_COMPILATION_RESULT))) + .addMethod( + getQueryCompilationResultActionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse>( + this, METHODID_QUERY_COMPILATION_RESULT_ACTIONS))) + .addMethod( + getListWorkflowInvocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse>( + this, METHODID_LIST_WORKFLOW_INVOCATIONS))) + .addMethod( + getGetWorkflowInvocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.WorkflowInvocation>( + this, METHODID_GET_WORKFLOW_INVOCATION))) + .addMethod( + getCreateWorkflowInvocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest, + com.google.cloud.dataform.v1beta1.WorkflowInvocation>( + this, METHODID_CREATE_WORKFLOW_INVOCATION))) + .addMethod( + getDeleteWorkflowInvocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_INVOCATION))) + .addMethod( + getCancelWorkflowInvocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest, + com.google.protobuf.Empty>(this, METHODID_CANCEL_WORKFLOW_INVOCATION))) + .addMethod( + getQueryWorkflowInvocationActionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse>( + this, METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS))) + .build(); + } + } + + /** + * + * + *
+   * 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileDiffRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchFileDiffMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a given Workspace directory.
+     * 
+ */ + public void queryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryDirectoryContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a directory inside a Workspace.
+     * 
+ */ + public void makeDirectory( + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMakeDirectoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a directory (inside a Workspace) and all of its contents.
+     * 
+ */ + public void removeDirectory( + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveDirectoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Moves a directory (inside a Workspace), and all of its contents, to a new
+     * location.
+     * 
+ */ + public void moveDirectory( + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveDirectoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the contents of a file (inside a Workspace).
+     * 
+ */ + public void readFile( + com.google.cloud.dataform.v1beta1.ReadFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReadFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a file (inside a Workspace).
+     * 
+ */ + public void removeFile( + com.google.cloud.dataform.v1beta1.RemoveFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Moves a file (inside a Workspace) to a new location.
+     * 
+ */ + public void moveFile( + com.google.cloud.dataform.v1beta1.MoveFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Writes to a file (inside a Workspace).
+     * 
+ */ + public void writeFile( + com.google.cloud.dataform.v1beta1.WriteFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWriteFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists CompilationResults in a given Repository.
+     * 
+ */ + public void listCompilationResults( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCompilationResultsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a single CompilationResult.
+     * 
+ */ + public void getCompilationResult( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.QueryCompilationResultActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkflowInvocationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a single WorkflowInvocation.
+     * 
+ */ + public void getWorkflowInvocation( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * 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.v1beta1.ListRepositoriesResponse listRepositories( + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRepositoriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a single Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.Repository getRepository( + com.google.cloud.dataform.v1beta1.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.v1beta1.Repository createRepository( + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRepositoryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a single Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.Repository updateRepository( + com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteRepositoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a Repository's remote branches.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse fetchRemoteBranches( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchRemoteBranchesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Workspaces in a given Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse listWorkspaces( + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkspacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a single Workspace.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.Workspace getWorkspace( + com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace createWorkspace( + com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkspaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Installs dependency NPM packages (inside a Workspace).
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse installNpmPackages( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse fetchFileGitStatuses( + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindResponse fetchGitAheadBehind( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileDiffResponse fetchFileDiff( + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse queryDirectoryContents( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryDirectoryContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a directory inside a Workspace.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse makeDirectory( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.MoveDirectoryResponse moveDirectory( + com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileResponse readFile( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.MoveFileResponse moveFile( + com.google.cloud.dataform.v1beta1.MoveFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMoveFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Writes to a file (inside a Workspace).
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.WriteFileResponse writeFile( + com.google.cloud.dataform.v1beta1.WriteFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CompilationResults in a given Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse listCompilationResults( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCompilationResultsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a single CompilationResult.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCompilationResultMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new CompilationResult in a given project and location.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResult( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns CompilationResultActions in a given CompilationResult.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists WorkflowInvocations in a given Repository.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + listWorkflowInvocations( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a single WorkflowInvocation.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation createWorkflowInvocation( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
+     * 
+ */ + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + queryWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * 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.v1beta1.ListRepositoriesResponse> + listRepositories(com.google.cloud.dataform.v1beta1.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.v1beta1.Repository> + getRepository(com.google.cloud.dataform.v1beta1.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.v1beta1.Repository> + createRepository(com.google.cloud.dataform.v1beta1.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.v1beta1.Repository> + updateRepository(com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchRemoteBranchesResponse> + fetchRemoteBranches(com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesResponse> + listWorkspaces(com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace> + getWorkspace(com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace> + createWorkspace(com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.InstallNpmPackagesResponse> + installNpmPackages(com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse> + fetchFileGitStatuses( + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindResponse> + fetchGitAheadBehind(com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileDiffResponse> + fetchFileDiff(com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse> + queryDirectoryContents( + com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryResponse> + makeDirectory(com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.MoveDirectoryResponse> + moveDirectory(com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileResponse> + readFile(com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.MoveFileResponse> + moveFile(com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileResponse> + writeFile(com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsResponse> + listCompilationResults( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult> + getCompilationResult( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult> + createCompilationResult( + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsResponse> + queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsResponse> + listWorkflowInvocations( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation> + getWorkflowInvocation( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation> + createWorkflowInvocation( + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsResponse> + queryWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.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 DataformImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataformImplBase 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.v1beta1.ListRepositoriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse>) + responseObserver); + break; + case METHODID_GET_REPOSITORY: + serviceImpl.getRepository( + (com.google.cloud.dataform.v1beta1.GetRepositoryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_REPOSITORY: + serviceImpl.createRepository( + (com.google.cloud.dataform.v1beta1.CreateRepositoryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_REPOSITORY: + serviceImpl.updateRepository( + (com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_REPOSITORY: + serviceImpl.deleteRepository( + (com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_REMOTE_BRANCHES: + serviceImpl.fetchRemoteBranches( + (com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse>) + responseObserver); + break; + case METHODID_LIST_WORKSPACES: + serviceImpl.listWorkspaces( + (com.google.cloud.dataform.v1beta1.ListWorkspacesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse>) + responseObserver); + break; + case METHODID_GET_WORKSPACE: + serviceImpl.getWorkspace( + (com.google.cloud.dataform.v1beta1.GetWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_WORKSPACE: + serviceImpl.createWorkspace( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_WORKSPACE: + serviceImpl.deleteWorkspace( + (com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_INSTALL_NPM_PACKAGES: + serviceImpl.installNpmPackages( + (com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse>) + responseObserver); + break; + case METHODID_PULL_GIT_COMMITS: + serviceImpl.pullGitCommits( + (com.google.cloud.dataform.v1beta1.PullGitCommitsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PUSH_GIT_COMMITS: + serviceImpl.pushGitCommits( + (com.google.cloud.dataform.v1beta1.PushGitCommitsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_FILE_GIT_STATUSES: + serviceImpl.fetchFileGitStatuses( + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse>) + responseObserver); + break; + case METHODID_FETCH_GIT_AHEAD_BEHIND: + serviceImpl.fetchGitAheadBehind( + (com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse>) + responseObserver); + break; + case METHODID_COMMIT_WORKSPACE_CHANGES: + serviceImpl.commitWorkspaceChanges( + (com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_WORKSPACE_CHANGES: + serviceImpl.resetWorkspaceChanges( + (com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_FILE_DIFF: + serviceImpl.fetchFileDiff( + (com.google.cloud.dataform.v1beta1.FetchFileDiffRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_QUERY_DIRECTORY_CONTENTS: + serviceImpl.queryDirectoryContents( + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse>) + responseObserver); + break; + case METHODID_MAKE_DIRECTORY: + serviceImpl.makeDirectory( + (com.google.cloud.dataform.v1beta1.MakeDirectoryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REMOVE_DIRECTORY: + serviceImpl.removeDirectory( + (com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MOVE_DIRECTORY: + serviceImpl.moveDirectory( + (com.google.cloud.dataform.v1beta1.MoveDirectoryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_READ_FILE: + serviceImpl.readFile( + (com.google.cloud.dataform.v1beta1.ReadFileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REMOVE_FILE: + serviceImpl.removeFile( + (com.google.cloud.dataform.v1beta1.RemoveFileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MOVE_FILE: + serviceImpl.moveFile( + (com.google.cloud.dataform.v1beta1.MoveFileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_WRITE_FILE: + serviceImpl.writeFile( + (com.google.cloud.dataform.v1beta1.WriteFileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_COMPILATION_RESULTS: + serviceImpl.listCompilationResults( + (com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse>) + responseObserver); + break; + case METHODID_GET_COMPILATION_RESULT: + serviceImpl.getCompilationResult( + (com.google.cloud.dataform.v1beta1.GetCompilationResultRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_COMPILATION_RESULT: + serviceImpl.createCompilationResult( + (com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_QUERY_COMPILATION_RESULT_ACTIONS: + serviceImpl.queryCompilationResultActions( + (com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse>) + responseObserver); + break; + case METHODID_LIST_WORKFLOW_INVOCATIONS: + serviceImpl.listWorkflowInvocations( + (com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse>) + responseObserver); + break; + case METHODID_GET_WORKFLOW_INVOCATION: + serviceImpl.getWorkflowInvocation( + (com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_WORKFLOW_INVOCATION: + serviceImpl.createWorkflowInvocation( + (com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_WORKFLOW_INVOCATION: + serviceImpl.deleteWorkflowInvocation( + (com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_WORKFLOW_INVOCATION: + serviceImpl.cancelWorkflowInvocation( + (com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS: + serviceImpl.queryWorkflowInvocationActions( + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.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(); + } + } + } + + 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.v1beta1.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 String methodName; + + DataformMethodDescriptorSupplier(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/pom.xml b/pom.xml index 89aeccf..f7a6593 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataform-parent pom - 0.1.0 + 0.2.0 Google Cloud Dataform Parent https://github.com/googleapis/java-dataform @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.3 @@ -69,23 +69,33 @@ com.google.cloud google-cloud-dataform - 0.1.0 + 0.2.0 + + + com.google.api.grpc + proto-google-cloud-dataform-v1beta1 + 0.2.0 + + + com.google.api.grpc + grpc-google-cloud-dataform-v1beta1 + 0.2.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.1.0 + 0.2.0 com.google.cloud google-cloud-shared-dependencies - 2.13.0 + 3.0.1 pom import @@ -112,7 +122,9 @@ 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 @@ -121,7 +133,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 diff --git a/proto-google-cloud-dataform-v1alpha2/pom.xml b/proto-google-cloud-dataform-v1alpha2/pom.xml index 14c95ed..53577b2 100644 --- a/proto-google-cloud-dataform-v1alpha2/pom.xml +++ b/proto-google-cloud-dataform-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.1.0 + 0.2.0 proto-google-cloud-dataform-v1alpha2 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.1.0 + 0.2.0 diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java index 81248f0..0a20fe4 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/DataformProto.java @@ -374,512 +374,514 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\"u\n\030ListRepositoriesRespon" - + "se\022@\n\014repositories\030\001 \003(\0132*.google.cloud." - + "dataform.v1alpha2.Repository\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"P\n\024GetRepositoryRequest\0228\n" - + "\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis" - + ".com/Repository\"\265\001\n\027CreateRepositoryRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" - + "oogleapis.com/Location\022C\n\nrepository\030\002 \001" - + "(\0132*.google.cloud.dataform.v1alpha2.Repo" - + "sitoryB\003\340A\002\022\032\n\rrepository_id\030\003 \001(\tB\003\340A\002\"" - + "\224\001\n\027UpdateRepositoryRequest\0224\n\013update_ma" - + "sk\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\001\022C\n\nrepository\030\002 \001(\0132*.google.cloud.dat" - + "aform.v1alpha2.RepositoryB\003\340A\002\"b\n\027Delete" - + "RepositoryRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dataform.googleapis.com/Repository\022\r\n\005f" - + "orce\030\002 \001(\010\"V\n\032FetchRemoteBranchesRequest" - + "\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googlea" - + "pis.com/Repository\"/\n\033FetchRemoteBranche" - + "sResponse\022\020\n\010branches\030\001 \003(\t\"\241\001\n\tWorkspac" - + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003:\200\001\352A}\n!dataform.goo" - + "gleapis.com/Workspace\022Xprojects/{project" - + "}/locations/{location}/repositories/{rep" - + "ository}/workspaces/{workspace}\"\260\001\n\025List" - + "WorkspacesRequest\022:\n\006parent\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\022\025\n\010order_by\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030" - + "\005 \001(\tB\003\340A\001\"p\n\026ListWorkspacesResponse\022=\n\n" - + "workspaces\030\001 \003(\0132).google.cloud.dataform" - + ".v1alpha2.Workspace\022\027\n\017next_page_token\030\002" - + " \001(\t\"N\n\023GetWorkspaceRequest\0227\n\004name\030\001 \001(" - + "\tB)\340A\002\372A#\n!dataform.googleapis.com/Works" - + "pace\"\262\001\n\026CreateWorkspaceRequest\022:\n\006paren" - + "t\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis.com" - + "/Repository\022A\n\tworkspace\030\002 \001(\0132).google." - + "cloud.dataform.v1alpha2.WorkspaceB\003\340A\002\022\031" - + "\n\014workspace_id\030\003 \001(\tB\003\340A\002\"Q\n\026DeleteWorks" - + "paceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataf" - + "orm.googleapis.com/Workspace\"=\n\014CommitAu" - + "thor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\032\n\remail_address" - + "\030\002 \001(\tB\003\340A\002\"\257\001\n\025PullGitCommitsRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis" - + ".com/Workspace\022\032\n\rremote_branch\030\002 \001(\tB\003\340" - + "A\001\022A\n\006author\030\003 \001(\0132,.google.cloud.datafo" - + "rm.v1alpha2.CommitAuthorB\003\340A\002\"l\n\025PushGit" - + "CommitsRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!da" - + "taform.googleapis.com/Workspace\022\032\n\rremot" - + "e_branch\030\002 \001(\tB\003\340A\001\"V\n\033FetchFileGitStatu" - + "sesRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!datafo" - + "rm.googleapis.com/Workspace\"\376\002\n\034FetchFil" - + "eGitStatusesResponse\022t\n\030uncommitted_file" - + "_changes\030\001 \003(\0132R.google.cloud.dataform.v" - + "1alpha2.FetchFileGitStatusesResponse.Unc" - + "ommittedFileChange\032\347\001\n\025UncommittedFileCh" - + "ange\022\014\n\004path\030\001 \001(\t\022g\n\005state\030\002 \001(\0162X.goog" - + "le.cloud.dataform.v1alpha2.FetchFileGitS" - + "tatusesResponse.UncommittedFileChange.St" - + "ate\"W\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005A" - + "DDED\020\001\022\013\n\007DELETED\020\002\022\014\n\010MODIFIED\020\003\022\021\n\rHAS" - + "_CONFLICTS\020\004\"q\n\032FetchGitAheadBehindReque" - + "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.googl" - + "eapis.com/Workspace\022\032\n\rremote_branch\030\002 \001" - + "(\tB\003\340A\001\"L\n\033FetchGitAheadBehindResponse\022\025" - + "\n\rcommits_ahead\030\001 \001(\005\022\026\n\016commits_behind\030" - + "\002 \001(\005\"\314\001\n\035CommitWorkspaceChangesRequest\022" - + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleap" - + "is.com/Workspace\022A\n\006author\030\004 \001(\0132,.googl" - + "e.cloud.dataform.v1alpha2.CommitAuthorB\003" - + "\340A\002\022\033\n\016commit_message\030\002 \001(\tB\003\340A\001\022\022\n\005path" - + "s\030\003 \003(\tB\003\340A\001\"\177\n\034ResetWorkspaceChangesReq" - + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.goo" - + "gleapis.com/Workspace\022\022\n\005paths\030\002 \003(\tB\003\340A" - + "\001\022\022\n\005clean\030\003 \001(\010B\003\340A\001\"g\n\024FetchFileDiffRe" - + "quest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!datafo" - + "rm.googleapis.com/Workspace\022\021\n\004path\030\002 \001(" - + "\tB\003\340A\002\"/\n\025FetchFileDiffResponse\022\026\n\016forma" - + "tted_diff\030\001 \001(\t\"\241\001\n\035QueryDirectoryConten" - + "tsRequest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!da" + + "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\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npa" - + "ge_token\030\004 \001(\tB\003\340A\001\"\343\001\n\036QueryDirectoryCo" - + "ntentsResponse\022h\n\021directory_entries\030\001 \003(" - + "\0132M.google.cloud.dataform.v1alpha2.Query" - + "DirectoryContentsResponse.DirectoryEntry" - + "\022\027\n\017next_page_token\030\002 \001(\t\032>\n\016DirectoryEn" - + "try\022\016\n\004file\030\001 \001(\tH\000\022\023\n\tdirectory\030\002 \001(\tH\000" - + "B\007\n\005entry\"g\n\024MakeDirectoryRequest\022<\n\twor" - + "kspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapi" - + "s.com/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\"\027\n\025Ma" - + "keDirectoryResponse\"i\n\026RemoveDirectoryRe" - + "quest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!datafo" - + "rm.googleapis.com/Workspace\022\021\n\004path\030\002 \001(" - + "\tB\003\340A\002\"~\n\024MoveDirectoryRequest\022<\n\tworksp" - + "ace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.c" - + "om/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\025\n\010new_p" - + "ath\030\003 \001(\tB\003\340A\002\"\027\n\025MoveDirectoryResponse\"" - + "b\n\017ReadFileRequest\022<\n\tworkspace\030\001 \001(\tB)\340" - + "A\002\372A#\n!dataform.googleapis.com/Workspace" - + "\022\021\n\004path\030\002 \001(\tB\003\340A\002\")\n\020ReadFileResponse\022" - + "\025\n\rfile_contents\030\001 \001(\014\"d\n\021RemoveFileRequ" - + "est\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\"y\n\017MoveFileRequest\022<\n\tworkspace\030\001 \001" - + "(\tB)\340A\002\372A#\n!dataform.googleapis.com/Work" - + "space\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\020WriteFile" + + "\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\022\025\n\010contents\030\003 \001(\014B\003\340A\002\"\023\n\021Write" - + "FileResponse\"Y\n\031InstallNpmPackagesReques" - + "t\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.g" - + "oogleapis.com/Workspace\"\034\n\032InstallNpmPac" - + "kagesResponse\"\265\010\n\021CompilationResult\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022\034\n\rgit_commitish\030\002 \001(\tB\003\340" - + "A\005H\000\022>\n\tworkspace\030\003 \001(\tB)\340A\005\372A#\n!datafor" - + "m.googleapis.com/WorkspaceH\000\022m\n\027code_com" - + "pilation_config\030\004 \001(\0132G.google.cloud.dat" - + "aform.v1alpha2.CompilationResult.CodeCom" - + "pilationConfigB\003\340A\005\022\"\n\025dataform_core_ver" - + "sion\030\005 \001(\tB\003\340A\003\022c\n\022compilation_errors\030\006 " - + "\003(\0132B.google.cloud.dataform.v1alpha2.Com" - + "pilationResult.CompilationErrorB\003\340A\003\032\371\002\n" - + "\025CodeCompilationConfig\022\035\n\020default_databa" - + "se\030\001 \001(\tB\003\340A\001\022\033\n\016default_schema\030\002 \001(\tB\003\340" - + "A\001\022\035\n\020default_location\030\010 \001(\tB\003\340A\001\022\035\n\020ass" - + "ertion_schema\030\003 \001(\tB\003\340A\001\022d\n\004vars\030\004 \003(\0132Q" - + ".google.cloud.dataform.v1alpha2.Compilat" - + "ionResult.CodeCompilationConfig.VarsEntr" - + "yB\003\340A\001\022\034\n\017database_suffix\030\005 \001(\tB\003\340A\001\022\032\n\r" - + "schema_suffix\030\006 \001(\tB\003\340A\001\022\031\n\014table_prefix" - + "\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\020CompilationError\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.Targe" - + "tB\003\340A\003:\232\001\352A\226\001\n)dataform.googleapis.com/C" - + "ompilationResult\022iprojects/{project}/loc" - + "ations/{location}/repositories/{reposito" - + "ry}/compilationResults/{compilation_resu" - + "lt}B\010\n\006source\"\214\001\n\035ListCompilationResults" - + "Request\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"datafor" - + "m.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\"\211\001\n" - + "\036ListCompilationResultsResponse\022N\n\023compi" - + "lation_results\030\001 \003(\01321.google.cloud.data" - + "form.v1alpha2.CompilationResult\022\027\n\017next_" - + "page_token\030\002 \001(\t\"^\n\033GetCompilationResult" - + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataform." - + "googleapis.com/CompilationResult\"\260\001\n\036Cre" - + "ateCompilationResultRequest\022:\n\006parent\030\001 " - + "\001(\tB*\340A\002\372A$\n\"dataform.googleapis.com/Rep" - + "ository\022R\n\022compilation_result\030\002 \001(\01321.go" + + "\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" - + "ResultB\003\340A\002\"8\n\006Target\022\020\n\010database\030\001 \001(\t\022" - + "\016\n\006schema\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"\354\002\n\022Relati" - + "onDescriptor\022\023\n\013description\030\001 \001(\t\022T\n\007col" - + "umns\030\002 \003(\0132C.google.cloud.dataform.v1alp" - + "ha2.RelationDescriptor.ColumnDescriptor\022" - + "_\n\017bigquery_labels\030\003 \003(\0132F.google.cloud." - + "dataform.v1alpha2.RelationDescriptor.Big" - + "queryLabelsEntry\032S\n\020ColumnDescriptor\022\014\n\004" - + "path\030\001 \003(\t\022\023\n\013description\030\002 \001(\t\022\034\n\024bigqu" - + "ery_policy_tags\030\003 \003(\t\0325\n\023BigqueryLabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\344\021\n" - + "\027CompilationResultAction\0226\n\006target\030\001 \001(\013" - + "2&.google.cloud.dataform.v1alpha2.Target" - + "\022@\n\020canonical_target\030\002 \001(\0132&.google.clou" - + "d.dataform.v1alpha2.Target\022\021\n\tfile_path\030" - + "\003 \001(\t\022T\n\010relation\030\004 \001(\0132@.google.cloud.d" - + "ataform.v1alpha2.CompilationResultAction" - + ".RelationH\000\022X\n\noperations\030\005 \001(\0132B.google" - + ".cloud.dataform.v1alpha2.CompilationResu" - + "ltAction.OperationsH\000\022V\n\tassertion\030\006 \001(\013" - + "2A.google.cloud.dataform.v1alpha2.Compil" - + "ationResultAction.AssertionH\000\022Z\n\013declara" - + "tion\030\007 \001(\0132C.google.cloud.dataform.v1alp" - + "ha2.CompilationResultAction.DeclarationH" - + "\000\032\343\010\n\010Relation\022B\n\022dependency_targets\030\001 \003" - + "(\0132&.google.cloud.dataform.v1alpha2.Targ" - + "et\022\020\n\010disabled\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022O\n\023re" - + "lation_descriptor\030\004 \001(\01322.google.cloud.d" - + "ataform.v1alpha2.RelationDescriptor\022d\n\rr" - + "elation_type\030\005 \001(\0162M.google.cloud.datafo" - + "rm.v1alpha2.CompilationResultAction.Rela" - + "tion.RelationType\022\024\n\014select_query\030\006 \001(\t\022" - + "\026\n\016pre_operations\030\007 \003(\t\022\027\n\017post_operatio" - + "ns\030\010 \003(\t\022y\n\030incremental_table_config\030\t \001" - + "(\0132W.google.cloud.dataform.v1alpha2.Comp" - + "ilationResultAction.Relation.Incremental" - + "TableConfig\022\034\n\024partition_expression\030\n \001(" - + "\t\022\033\n\023cluster_expressions\030\013 \003(\t\022!\n\031partit" - + "ion_expiration_days\030\014 \001(\005\022 \n\030require_par" - + "tition_filter\030\r \001(\010\022s\n\022additional_option" - + "s\030\016 \003(\0132W.google.cloud.dataform.v1alpha2" - + ".CompilationResultAction.Relation.Additi" - + "onalOptionsEntry\032\330\001\n\026IncrementalTableCon" - + "fig\022 \n\030incremental_select_query\030\001 \001(\t\022\030\n" - + "\020refresh_disabled\030\002 \001(\010\022\030\n\020unique_key_pa" - + "rts\030\003 \003(\t\022\037\n\027update_partition_filter\030\004 \001" - + "(\t\022\"\n\032incremental_pre_operations\030\005 \003(\t\022#" - + "\n\033incremental_post_operations\030\006 \003(\t\0328\n\026A" - + "dditionalOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"p\n\014RelationType\022\035\n\031RELATIO" - + "N_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\001\022\010\n\004VIEW\020" - + "\002\022\025\n\021INCREMENTAL_TABLE\020\003\022\025\n\021MATERIALIZED" - + "_VIEW\020\004\032\346\001\n\nOperations\022B\n\022dependency_tar" - + "gets\030\001 \003(\0132&.google.cloud.dataform.v1alp" + + "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\022O\n\023relation_descriptor\030\006 \001(\01322.google" - + ".cloud.dataform.v1alpha2.RelationDescrip" - + "tor\022\017\n\007queries\030\004 \003(\t\022\022\n\nhas_output\030\005 \001(\010" - + "\032\225\002\n\tAssertion\022B\n\022dependency_targets\030\001 \003" - + "(\0132&.google.cloud.dataform.v1alpha2.Targ" - + "et\022=\n\rparent_action\030\005 \001(\0132&.google.cloud" - + ".dataform.v1alpha2.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\022" - + "O\n\023relation_descriptor\030\006 \001(\01322.google.cl" - + "oud.dataform.v1alpha2.RelationDescriptor" - + "\032^\n\013Declaration\022O\n\023relation_descriptor\030\001" - + " \001(\01322.google.cloud.dataform.v1alpha2.Re" - + "lationDescriptorB\021\n\017compiled_object\"\255\001\n$" - + "QueryCompilationResultActionsRequest\022?\n\004" - + "name\030\001 \001(\tB1\340A\002\372A+\n)dataform.googleapis." - + "com/CompilationResult\022\026\n\tpage_size\030\002 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter" - + "\030\004 \001(\tB\003\340A\001\"\235\001\n%QueryCompilationResultAc" - + "tionsResponse\022[\n\032compilation_result_acti" - + "ons\030\001 \003(\01327.google.cloud.dataform.v1alph" - + "a2.CompilationResultAction\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\361\006\n\022WorkflowInvocation\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\003\022M\n\022compilation_result\030\002 \001(" - + "\tB1\340A\005\372A+\n)dataform.googleapis.com/Compi" - + "lationResult\022c\n\021invocation_config\030\003 \001(\0132" - + "C.google.cloud.dataform.v1alpha2.Workflo" - + "wInvocation.InvocationConfigB\003\340A\005\022L\n\005sta" - + "te\030\004 \001(\01628.google.cloud.dataform.v1alpha" - + "2.WorkflowInvocation.StateB\003\340A\003\0225\n\021invoc" - + "ation_timing\030\005 \001(\0132\025.google.type.Interva" - + "lB\003\340A\003\032\210\002\n\020InvocationConfig\022E\n\020included_" - + "targets\030\001 \003(\0132&.google.cloud.dataform.v1" - + "alpha2.TargetB\003\340A\005\022\032\n\rincluded_tags\030\002 \003(" - + "\tB\003\340A\005\022-\n transitive_dependencies_includ" - + "ed\030\003 \001(\010B\003\340A\005\022+\n\036transitive_dependents_i" - + "ncluded\030\004 \001(\010B\003\340A\005\0225\n(fully_refresh_incr" - + "emental_tables_enabled\030\005 \001(\010B\003\340A\005\"d\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r" - + "\n\tSUCCEEDED\020\002\022\r\n\tCANCELLED\020\003\022\n\n\006FAILED\020\004" - + "\022\r\n\tCANCELING\020\005:\235\001\352A\231\001\n*dataform.googlea" - + "pis.com/WorkflowInvocation\022kprojects/{pr" - + "oject}/locations/{location}/repositories" - + "/{repository}/workflowInvocations/{workf" - + "low_invocation}\"\215\001\n\036ListWorkflowInvocati" - + "onsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"data" - + "form.googleapis.com/Repository\022\026\n\tpage_s" - + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" - + "\214\001\n\037ListWorkflowInvocationsResponse\022P\n\024w" - + "orkflow_invocations\030\001 \003(\01322.google.cloud" - + ".dataform.v1alpha2.WorkflowInvocation\022\027\n" - + "\017next_page_token\030\002 \001(\t\"`\n\034GetWorkflowInv" - + "ocationRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*da" - + "taform.googleapis.com/WorkflowInvocation" - + "\"\263\001\n\037CreateWorkflowInvocationRequest\022:\n\006" - + "parent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapi" - + "s.com/Repository\022T\n\023workflow_invocation\030" - + "\002 \001(\01322.google.cloud.dataform.v1alpha2.W" - + "orkflowInvocationB\003\340A\002\"c\n\037DeleteWorkflow" - + "InvocationRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*dataform.googleapis.com/WorkflowInvocat" - + "ion\"c\n\037CancelWorkflowInvocationRequest\022@" - + "\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dataform.googleapi" - + "s.com/WorkflowInvocation\"\243\004\n\030WorkflowInv" - + "ocationAction\022;\n\006target\030\001 \001(\0132&.google.c" - + "loud.dataform.v1alpha2.TargetB\003\340A\003\022E\n\020ca" - + "nonical_target\030\002 \001(\0132&.google.cloud.data" - + "form.v1alpha2.TargetB\003\340A\003\022R\n\005state\030\004 \001(\016" - + "2>.google.cloud.dataform.v1alpha2.Workfl" - + "owInvocationAction.StateB\003\340A\003\0225\n\021invocat" - + "ion_timing\030\005 \001(\0132\025.google.type.IntervalB" - + "\003\340A\003\022e\n\017bigquery_action\030\006 \001(\0132G.google.c" - + "loud.dataform.v1alpha2.WorkflowInvocatio" - + "nAction.BigQueryActionB\003\340A\003\032)\n\016BigQueryA" - + "ction\022\027\n\nsql_script\030\001 \001(\tB\003\340A\003\"f\n\005State\022" - + "\013\n\007PENDING\020\000\022\013\n\007RUNNING\020\001\022\013\n\007SKIPPED\020\002\022\014" - + "\n\010DISABLED\020\003\022\r\n\tSUCCEEDED\020\004\022\r\n\tCANCELLED" - + "\020\005\022\n\n\006FAILED\020\006\"\257\001\n%QueryWorkflowInvocati" - + "onActionsRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" - + "dataform.googleapis.com/WorkflowInvocati" - + "on\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\023\n\006filter\030\004 \001(\tB\003\340A\001\"\240\001\n&Que" - + "ryWorkflowInvocationActionsResponse\022]\n\033w" - + "orkflow_invocation_actions\030\001 \003(\01328.googl" - + "e.cloud.dataform.v1alpha2.WorkflowInvoca" - + "tionAction\022\027\n\017next_page_token\030\002 \001(\t2\255?\n\010" - + "Dataform\022\316\001\n\020ListRepositories\0227.google.c" - + "loud.dataform.v1alpha2.ListRepositoriesR" - + "equest\0328.google.cloud.dataform.v1alpha2." - + "ListRepositoriesResponse\"G\202\323\344\223\0028\0226/v1alp" - + "ha2/{parent=projects/*/locations/*}/repo" - + "sitories\332A\006parent\022\270\001\n\rGetRepository\0224.go" - + "ogle.cloud.dataform.v1alpha2.GetReposito" - + "ryRequest\032*.google.cloud.dataform.v1alph" - + "a2.Repository\"E\202\323\344\223\0028\0226/v1alpha2/{name=p" - + "rojects/*/locations/*/repositories/*}\332A\004" - + "name\022\345\001\n\020CreateRepository\0227.google.cloud" - + ".dataform.v1alpha2.CreateRepositoryReque" - + "st\032*.google.cloud.dataform.v1alpha2.Repo" - + "sitory\"l\202\323\344\223\002D\"6/v1alpha2/{parent=projec" - + "ts/*/locations/*}/repositories:\nreposito" - + "ry\332A\037parent,repository,repository_id\022\347\001\n" - + "\020UpdateRepository\0227.google.cloud.datafor" - + "m.v1alpha2.UpdateRepositoryRequest\032*.goo" - + "gle.cloud.dataform.v1alpha2.Repository\"n" - + "\202\323\344\223\002O2A/v1alpha2/{repository.name=proje" - + "cts/*/locations/*/repositories/*}:\nrepos" - + "itory\332A\026repository,update_mask\022\252\001\n\020Delet" - + "eRepository\0227.google.cloud.dataform.v1al" - + "pha2.DeleteRepositoryRequest\032\026.google.pr" - + "otobuf.Empty\"E\202\323\344\223\0028*6/v1alpha2/{name=pr" - + "ojects/*/locations/*/repositories/*}\332A\004n" - + "ame\022\342\001\n\023FetchRemoteBranches\022:.google.clo" - + "ud.dataform.v1alpha2.FetchRemoteBranches" - + "Request\032;.google.cloud.dataform.v1alpha2" - + ".FetchRemoteBranchesResponse\"R\202\323\344\223\002L\022J/v" - + "1alpha2/{name=projects/*/locations/*/rep" - + "ositories/*}:fetchRemoteBranches\022\325\001\n\016Lis" - + "tWorkspaces\0225.google.cloud.dataform.v1al" - + "pha2.ListWorkspacesRequest\0326.google.clou" - + "d.dataform.v1alpha2.ListWorkspacesRespon" - + "se\"T\202\323\344\223\002E\022C/v1alpha2/{parent=projects/*" - + "/locations/*/repositories/*}/workspaces\332" - + "A\006parent\022\302\001\n\014GetWorkspace\0223.google.cloud" - + ".dataform.v1alpha2.GetWorkspaceRequest\032)" - + ".google.cloud.dataform.v1alpha2.Workspac" - + "e\"R\202\323\344\223\002E\022C/v1alpha2/{name=projects/*/lo" - + "cations/*/repositories/*/workspaces/*}\332A" - + "\004name\022\354\001\n\017CreateWorkspace\0226.google.cloud" - + ".dataform.v1alpha2.CreateWorkspaceReques" - + "t\032).google.cloud.dataform.v1alpha2.Works" - + "pace\"v\202\323\344\223\002P\"C/v1alpha2/{parent=projects" - + "/*/locations/*/repositories/*}/workspace" - + "s:\tworkspace\332A\035parent,workspace,workspac" - + "e_id\022\265\001\n\017DeleteWorkspace\0226.google.cloud." - + "dataform.v1alpha2.DeleteWorkspaceRequest" - + "\032\026.google.protobuf.Empty\"R\202\323\344\223\002E*C/v1alp" - + "ha2/{name=projects/*/locations/*/reposit" - + "ories/*/workspaces/*}\332A\004name\022\363\001\n\022Install" - + "NpmPackages\0229.google.cloud.dataform.v1al" - + "pha2.InstallNpmPackagesRequest\032:.google." - + "cloud.dataform.v1alpha2.InstallNpmPackag" - + "esResponse\"f\202\323\344\223\002`\"[/v1alpha2/{workspace" + + "(\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" + + "\202\323\344\223\0028\0226/v1alpha2/{parent=projects/*/loc" + + "ations/*}/repositories\332A\006parent\022\270\001\n\rGetR" + + "epository\0224.google.cloud.dataform.v1alph" + + "a2.GetRepositoryRequest\032*.google.cloud.d" + + "ataform.v1alpha2.Repository\"E\202\323\344\223\0028\0226/v1" + + "alpha2/{name=projects/*/locations/*/repo" + + "sitories/*}\332A\004name\022\345\001\n\020CreateRepository\022" + + "7.google.cloud.dataform.v1alpha2.CreateR" + + "epositoryRequest\032*.google.cloud.dataform" + + ".v1alpha2.Repository\"l\202\323\344\223\002D\"6/v1alpha2/" + + "{parent=projects/*/locations/*}/reposito" + + "ries:\nrepository\332A\037parent,repository,rep" + + "ository_id\022\347\001\n\020UpdateRepository\0227.google" + + ".cloud.dataform.v1alpha2.UpdateRepositor" + + "yRequest\032*.google.cloud.dataform.v1alpha" + + "2.Repository\"n\202\323\344\223\002O2A/v1alpha2/{reposit" + + "ory.name=projects/*/locations/*/reposito" + + "ries/*}:\nrepository\332A\026repository,update_" + + "mask\022\252\001\n\020DeleteRepository\0227.google.cloud" + + ".dataform.v1alpha2.DeleteRepositoryReque" + + "st\032\026.google.protobuf.Empty\"E\202\323\344\223\0028*6/v1a" + + "lpha2/{name=projects/*/locations/*/repos" + + "itories/*}\332A\004name\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\202\323\344\223\002E\022C/v1alpha2/{par" + + "ent=projects/*/locations/*/repositories/" + + "*}/workspaces\332A\006parent\022\302\001\n\014GetWorkspace\022" + + "3.google.cloud.dataform.v1alpha2.GetWork" + + "spaceRequest\032).google.cloud.dataform.v1a" + + "lpha2.Workspace\"R\202\323\344\223\002E\022C/v1alpha2/{name" + "=projects/*/locations/*/repositories/*/w" - + "orkspaces/*}:installNpmPackages:\001*\022\264\001\n\016P" - + "ullGitCommits\0225.google.cloud.dataform.v1" - + "alpha2.PullGitCommitsRequest\032\026.google.pr" - + "otobuf.Empty\"S\202\323\344\223\002M\"H/v1alpha2/{name=pr" - + "ojects/*/locations/*/repositories/*/work" - + "spaces/*}:pull:\001*\022\264\001\n\016PushGitCommits\0225.g" - + "oogle.cloud.dataform.v1alpha2.PushGitCom" - + "mitsRequest\032\026.google.protobuf.Empty\"S\202\323\344" - + "\223\002M\"H/v1alpha2/{name=projects/*/location" - + "s/*/repositories/*/workspaces/*}:push:\001*" - + "\022\363\001\n\024FetchFileGitStatuses\022;.google.cloud" - + ".dataform.v1alpha2.FetchFileGitStatusesR" - + "equest\032<.google.cloud.dataform.v1alpha2." - + "FetchFileGitStatusesResponse\"`\202\323\344\223\002Z\022X/v" - + "1alpha2/{name=projects/*/locations/*/rep" - + "ositories/*/workspaces/*}:fetchFileGitSt" - + "atuses\022\357\001\n\023FetchGitAheadBehind\022:.google." - + "cloud.dataform.v1alpha2.FetchGitAheadBeh" - + "indRequest\032;.google.cloud.dataform.v1alp" - + "ha2.FetchGitAheadBehindResponse\"_\202\323\344\223\002Y\022" - + "W/v1alpha2/{name=projects/*/locations/*/" - + "repositories/*/workspaces/*}:fetchGitAhe", - "adBehind\022\306\001\n\026CommitWorkspaceChanges\022=.go" - + "ogle.cloud.dataform.v1alpha2.CommitWorks" - + "paceChangesRequest\032\026.google.protobuf.Emp" - + "ty\"U\202\323\344\223\002O\"J/v1alpha2/{name=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:" - + "commit:\001*\022\303\001\n\025ResetWorkspaceChanges\022<.go" - + "ogle.cloud.dataform.v1alpha2.ResetWorksp" - + "aceChangesRequest\032\026.google.protobuf.Empt" - + "y\"T\202\323\344\223\002N\"I/v1alpha2/{name=projects/*/lo" - + "cations/*/repositories/*/workspaces/*}:r" - + "eset:\001*\022\334\001\n\rFetchFileDiff\0224.google.cloud" - + ".dataform.v1alpha2.FetchFileDiffRequest\032" - + "5.google.cloud.dataform.v1alpha2.FetchFi" - + "leDiffResponse\"^\202\323\344\223\002X\022V/v1alpha2/{works" - + "pace=projects/*/locations/*/repositories" - + "/*/workspaces/*}:fetchFileDiff\022\200\002\n\026Query" - + "DirectoryContents\022=.google.cloud.datafor" - + "m.v1alpha2.QueryDirectoryContentsRequest" - + "\032>.google.cloud.dataform.v1alpha2.QueryD" - + "irectoryContentsResponse\"g\202\323\344\223\002a\022_/v1alp" + + "orkspaces/*}\332A\004name\022\354\001\n\017CreateWorkspace\022" + + "6.google.cloud.dataform.v1alpha2.CreateW" + + "orkspaceRequest\032).google.cloud.dataform." + + "v1alpha2.Workspace\"v\202\323\344\223\002P\"C/v1alpha2/{p" + + "arent=projects/*/locations/*/repositorie" + + "s/*}/workspaces:\tworkspace\332A\035parent,work" + + "space,workspace_id\022\265\001\n\017DeleteWorkspace\0226" + + ".google.cloud.dataform.v1alpha2.DeleteWo" + + "rkspaceRequest\032\026.google.protobuf.Empty\"R" + + "\202\323\344\223\002E*C/v1alpha2/{name=projects/*/locat" + + "ions/*/repositories/*/workspaces/*}\332A\004na" + + "me\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/*}:queryDirector" - + "yContents\022\337\001\n\rMakeDirectory\0224.google.clo" - + "ud.dataform.v1alpha2.MakeDirectoryReques" - + "t\0325.google.cloud.dataform.v1alpha2.MakeD" - + "irectoryResponse\"a\202\323\344\223\002[\"V/v1alpha2/{wor" - + "kspace=projects/*/locations/*/repositori" - + "es/*/workspaces/*}:makeDirectory:\001*\022\306\001\n\017" - + "RemoveDirectory\0226.google.cloud.dataform." - + "v1alpha2.RemoveDirectoryRequest\032\026.google" - + ".protobuf.Empty\"c\202\323\344\223\002]\"X/v1alpha2/{work" - + "space=projects/*/locations/*/repositorie" - + "s/*/workspaces/*}:removeDirectory:\001*\022\337\001\n" - + "\rMoveDirectory\0224.google.cloud.dataform.v" - + "1alpha2.MoveDirectoryRequest\0325.google.cl" - + "oud.dataform.v1alpha2.MoveDirectoryRespo" - + "nse\"a\202\323\344\223\002[\"V/v1alpha2/{workspace=projec" - + "ts/*/locations/*/repositories/*/workspac" - + "es/*}:moveDirectory:\001*\022\310\001\n\010ReadFile\022/.go" - + "ogle.cloud.dataform.v1alpha2.ReadFileReq" - + "uest\0320.google.cloud.dataform.v1alpha2.Re" - + "adFileResponse\"Y\202\323\344\223\002S\022Q/v1alpha2/{works" - + "pace=projects/*/locations/*/repositories" - + "/*/workspaces/*}:readFile\022\267\001\n\nRemoveFile" - + "\0221.google.cloud.dataform.v1alpha2.Remove" - + "FileRequest\032\026.google.protobuf.Empty\"^\202\323\344" - + "\223\002X\"S/v1alpha2/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:re" - + "moveFile:\001*\022\313\001\n\010MoveFile\022/.google.cloud." - + "dataform.v1alpha2.MoveFileRequest\0320.goog" - + "le.cloud.dataform.v1alpha2.MoveFileRespo" - + "nse\"\\\202\323\344\223\002V\"Q/v1alpha2/{workspace=projec" - + "ts/*/locations/*/repositories/*/workspac" - + "es/*}:moveFile:\001*\022\317\001\n\tWriteFile\0220.google" - + ".cloud.dataform.v1alpha2.WriteFileReques" - + "t\0321.google.cloud.dataform.v1alpha2.Write" - + "FileResponse\"]\202\323\344\223\002W\"R/v1alpha2/{workspa" - + "ce=projects/*/locations/*/repositories/*" - + "/workspaces/*}:writeFile:\001*\022\365\001\n\026ListComp" - + "ilationResults\022=.google.cloud.dataform.v" - + "1alpha2.ListCompilationResultsRequest\032>." - + "google.cloud.dataform.v1alpha2.ListCompi" - + "lationResultsResponse\"\\\202\323\344\223\002M\022K/v1alpha2" - + "/{parent=projects/*/locations/*/reposito" - + "ries/*}/compilationResults\332A\006parent\022\342\001\n\024" - + "GetCompilationResult\022;.google.cloud.data" - + "form.v1alpha2.GetCompilationResultReques" - + "t\0321.google.cloud.dataform.v1alpha2.Compi" - + "lationResult\"Z\202\323\344\223\002M\022K/v1alpha2/{name=pr" - + "ojects/*/locations/*/repositories/*/comp" - + "ilationResults/*}\332A\004name\022\222\002\n\027CreateCompi" - + "lationResult\022>.google.cloud.dataform.v1a" - + "lpha2.CreateCompilationResultRequest\0321.g" - + "oogle.cloud.dataform.v1alpha2.Compilatio" - + "nResult\"\203\001\202\323\344\223\002a\"K/v1alpha2/{parent=proj" - + "ects/*/locations/*/repositories/*}/compi" - + "lationResults:\022compilation_result\332A\031pare" - + "nt,compilation_result\022\207\002\n\035QueryCompilati" - + "onResultActions\022D.google.cloud.dataform." - + "v1alpha2.QueryCompilationResultActionsRe" - + "quest\032E.google.cloud.dataform.v1alpha2.Q" - + "ueryCompilationResultActionsResponse\"Y\202\323" - + "\344\223\002S\022Q/v1alpha2/{name=projects/*/locatio" - + "ns/*/repositories/*/compilationResults/*" - + "}:query\022\371\001\n\027ListWorkflowInvocations\022>.go" - + "ogle.cloud.dataform.v1alpha2.ListWorkflo" - + "wInvocationsRequest\032?.google.cloud.dataf" - + "orm.v1alpha2.ListWorkflowInvocationsResp" - + "onse\"]\202\323\344\223\002N\022L/v1alpha2/{parent=projects" - + "/*/locations/*/repositories/*}/workflowI" - + "nvocations\332A\006parent\022\346\001\n\025GetWorkflowInvoc" - + "ation\022<.google.cloud.dataform.v1alpha2.G" - + "etWorkflowInvocationRequest\0322.google.clo" - + "ud.dataform.v1alpha2.WorkflowInvocation\"" - + "[\202\323\344\223\002N\022L/v1alpha2/{name=projects/*/loca" - + "tions/*/repositories/*/workflowInvocatio" - + "ns/*}\332A\004name\022\230\002\n\030CreateWorkflowInvocatio" - + "n\022?.google.cloud.dataform.v1alpha2.Creat" - + "eWorkflowInvocationRequest\0322.google.clou" - + "d.dataform.v1alpha2.WorkflowInvocation\"\206" - + "\001\202\323\344\223\002c\"L/v1alpha2/{parent=projects/*/lo" - + "cations/*/repositories/*}/workflowInvoca" - + "tions:\023workflow_invocation\332A\032parent,work" - + "flow_invocation\022\320\001\n\030DeleteWorkflowInvoca" - + "tion\022?.google.cloud.dataform.v1alpha2.De" - + "leteWorkflowInvocationRequest\032\026.google.p" - + "rotobuf.Empty\"[\202\323\344\223\002N*L/v1alpha2/{name=p" + + "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\"\\\202\323\344" + + "\223\002M\022K/v1alpha2/{parent=projects/*/locati" + + "ons/*/repositories/*}/compilationResults" + + "\332A\006parent\022\342\001\n\024GetCompilationResult\022;.goo" + + "gle.cloud.dataform.v1alpha2.GetCompilati" + + "onResultRequest\0321.google.cloud.dataform." + + "v1alpha2.CompilationResult\"Z\202\323\344\223\002M\022K/v1a" + + "lpha2/{name=projects/*/locations/*/repos" + + "itories/*/compilationResults/*}\332A\004name\022\222" + + "\002\n\027CreateCompilationResult\022>.google.clou" + + "d.dataform.v1alpha2.CreateCompilationRes" + + "ultRequest\0321.google.cloud.dataform.v1alp" + + "ha2.CompilationResult\"\203\001\202\323\344\223\002a\"K/v1alpha" + + "2/{parent=projects/*/locations/*/reposit" + + "ories/*}/compilationResults:\022compilation" + + "_result\332A\031parent,compilation_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\"]\202\323\344\223\002N\022L/v1alpha2/{p" + + "arent=projects/*/locations/*/repositorie" + + "s/*}/workflowInvocations\332A\006parent\022\346\001\n\025Ge" + + "tWorkflowInvocation\022<.google.cloud.dataf" + + "orm.v1alpha2.GetWorkflowInvocationReques" + + "t\0322.google.cloud.dataform.v1alpha2.Workf" + + "lowInvocation\"[\202\323\344\223\002N\022L/v1alpha2/{name=p" + "rojects/*/locations/*/repositories/*/wor" - + "kflowInvocations/*}\332A\004name\022\323\001\n\030CancelWor" + + "kflowInvocations/*}\332A\004name\022\230\002\n\030CreateWor" + "kflowInvocation\022?.google.cloud.dataform." - + "v1alpha2.CancelWorkflowInvocationRequest" - + "\032\026.google.protobuf.Empty\"^\202\323\344\223\002X\"S/v1alp" - + "ha2/{name=projects/*/locations/*/reposit" - + "ories/*/workflowInvocations/*}:cancel:\001*" - + "\022\213\002\n\036QueryWorkflowInvocationActions\022E.go" - + "ogle.cloud.dataform.v1alpha2.QueryWorkfl" - + "owInvocationActionsRequest\032F.google.clou" - + "d.dataform.v1alpha2.QueryWorkflowInvocat" - + "ionActionsResponse\"Z\202\323\344\223\002T\022R/v1alpha2/{n" - + "ame=projects/*/locations/*/repositories/" - + "*/workflowInvocations/*}:query\032K\312A\027dataf" - + "orm.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\312\002\n\"com.goog" - + "le.cloud.dataform.v1alpha2B\rDataformProt" - + "oP\001ZFgoogle.golang.org/genproto/googleap" - + "is/cloud/dataform/v1alpha2;dataform\252\002\036Go" - + "ogle.Cloud.Dataform.V1Alpha2\312\002\036Google\\Cl" - + "oud\\Dataform\\V1alpha2\352\002!Google::Cloud::D" - + "ataform::V1alpha2\352Ad\n*secretmanager.goog" - + "leapis.com/SecretVersion\0226projects/{proj" - + "ect}/secrets/{secret}/versions/{version}" - + "b\006proto3" + + "v1alpha2.CreateWorkflowInvocationRequest" + + "\0322.google.cloud.dataform.v1alpha2.Workfl" + + "owInvocation\"\206\001\202\323\344\223\002c\"L/v1alpha2/{parent" + + "=projects/*/locations/*/repositories/*}/" + + "workflowInvocations:\023workflow_invocation" + + "\332A\032parent,workflow_invocation\022\320\001\n\030Delete" + + "WorkflowInvocation\022?.google.cloud.datafo" + + "rm.v1alpha2.DeleteWorkflowInvocationRequ" + + "est\032\026.google.protobuf.Empty\"[\202\323\344\223\002N*L/v1" + + "alpha2/{name=projects/*/locations/*/repo" + + "sitories/*/workflowInvocations/*}\332A\004name" + + "\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\312\002\n\"com.google.cloud.dataform.v1alpha2" + + "B\rDataformProtoP\001ZFgoogle.golang.org/gen" + + "proto/googleapis/cloud/dataform/v1alpha2" + + ";dataform\252\002\036Google.Cloud.Dataform.V1Alph" + + "a2\312\002\036Google\\Cloud\\Dataform\\V1alpha2\352\002!Go" + + "ogle::Cloud::Dataform::V1alpha2\352Ad\n*secr" + + "etmanager.googleapis.com/SecretVersion\0226" + + "projects/{project}/secrets/{secret}/vers" + + "ions/{version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -925,7 +927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1alpha2_ListRepositoriesResponse_descriptor, new java.lang.String[] { - "Repositories", "NextPageToken", + "Repositories", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1alpha2_GetRepositoryRequest_descriptor = getDescriptor().getMessageTypes().get(3); @@ -997,7 +999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1alpha2_ListWorkspacesResponse_descriptor, new java.lang.String[] { - "Workspaces", "NextPageToken", + "Workspaces", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1alpha2_GetWorkspaceRequest_descriptor = getDescriptor().getMessageTypes().get(12); @@ -1314,7 +1316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1alpha2_ListCompilationResultsResponse_descriptor, new java.lang.String[] { - "CompilationResults", "NextPageToken", + "CompilationResults", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1alpha2_GetCompilationResultRequest_descriptor = getDescriptor().getMessageTypes().get(45); @@ -1518,7 +1520,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1alpha2_ListWorkflowInvocationsResponse_descriptor, new java.lang.String[] { - "WorkflowInvocations", "NextPageToken", + "WorkflowInvocations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1alpha2_GetWorkflowInvocationRequest_descriptor = getDescriptor().getMessageTypes().get(55); @@ -1558,7 +1560,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor, new java.lang.String[] { - "Target", "CanonicalTarget", "State", "InvocationTiming", "BigqueryAction", + "Target", + "CanonicalTarget", + "State", + "FailureReason", + "InvocationTiming", + "BigqueryAction", }); internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_BigQueryAction_descriptor = internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocationAction_descriptor @@ -1576,7 +1583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsRequest_descriptor, new java.lang.String[] { - "Name", "PageSize", "PageToken", "Filter", + "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1alpha2_QueryWorkflowInvocationActionsResponse_descriptor = getDescriptor().getMessageTypes().get(61); diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java index 36011d7..0767d5c 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponse.java @@ -41,6 +41,7 @@ private ListCompilationResultsResponse( private ListCompilationResultsResponse() { compilationResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -93,6 +94,16 @@ private ListCompilationResultsResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -112,6 +123,9 @@ private ListCompilationResultsResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { compilationResults_ = java.util.Collections.unmodifiableList(compilationResults_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -259,6 +273,67 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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 @@ -279,6 +354,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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)); + } unknownFields.writeTo(output); } @@ -295,6 +373,14 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -313,6 +399,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCompilationResultsList().equals(other.getCompilationResultsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,6 +417,10 @@ public int 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -488,6 +579,8 @@ public Builder clear() { } nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -527,6 +620,11 @@ public com.google.cloud.dataform.v1alpha2.ListCompilationResultsResponse buildPa result.compilationResults_ = compilationResultsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -610,6 +708,16 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1136,6 +1244,174 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java index 70891f5..60be13b 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListCompilationResultsResponseOrBuilder.java @@ -107,4 +107,55 @@ com.google.cloud.dataform.v1alpha2.CompilationResultOrBuilder getCompilationResu * @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/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java index 9da0b2e..35e257f 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponse.java @@ -40,6 +40,7 @@ private ListRepositoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder< private ListRepositoriesResponse() { repositories_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -91,6 +92,16 @@ private ListRepositoriesResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -110,6 +121,9 @@ private ListRepositoriesResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { repositories_ = java.util.Collections.unmodifiableList(repositories_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -251,6 +265,67 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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 @@ -271,6 +346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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)); + } unknownFields.writeTo(output); } @@ -286,6 +364,14 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -304,6 +390,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRepositoriesList().equals(other.getRepositoriesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,6 +408,10 @@ public int 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +568,8 @@ public Builder clear() { } nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -515,6 +608,11 @@ public com.google.cloud.dataform.v1alpha2.ListRepositoriesResponse buildPartial( result.repositories_ = repositoriesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -596,6 +694,16 @@ public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ListRepositoriesResp nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1091,6 +1199,174 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java index f4a3c4e..2c5eaa5 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListRepositoriesResponseOrBuilder.java @@ -101,4 +101,55 @@ public interface ListRepositoriesResponseOrBuilder * @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/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java index 07c937a..ac50089 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponse.java @@ -41,6 +41,7 @@ private ListWorkflowInvocationsResponse( private ListWorkflowInvocationsResponse() { workflowInvocations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -94,6 +95,16 @@ private ListWorkflowInvocationsResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -113,6 +124,9 @@ private ListWorkflowInvocationsResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { workflowInvocations_ = java.util.Collections.unmodifiableList(workflowInvocations_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -261,6 +275,67 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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 @@ -281,6 +356,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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)); + } unknownFields.writeTo(output); } @@ -297,6 +375,14 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -315,6 +401,7 @@ public boolean equals(final java.lang.Object obj) { if (!getWorkflowInvocationsList().equals(other.getWorkflowInvocationsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,6 +419,10 @@ public int 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -490,6 +581,8 @@ public Builder clear() { } nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -530,6 +623,11 @@ public com.google.cloud.dataform.v1alpha2.ListWorkflowInvocationsResponse buildP result.workflowInvocations_ = workflowInvocationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -614,6 +712,16 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1141,6 +1249,174 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java index 426e3b0..0313b99 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkflowInvocationsResponseOrBuilder.java @@ -108,4 +108,55 @@ com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder getWorkflowInvoca * @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/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java index bafce83..c342be0 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponse.java @@ -40,6 +40,7 @@ private ListWorkspacesResponse(com.google.protobuf.GeneratedMessageV3.Builder private ListWorkspacesResponse() { workspaces_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -91,6 +92,16 @@ private ListWorkspacesResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -110,6 +121,9 @@ private ListWorkspacesResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { workspaces_ = java.util.Collections.unmodifiableList(workspaces_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -250,6 +264,67 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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 @@ -270,6 +345,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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)); + } unknownFields.writeTo(output); } @@ -285,6 +363,14 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -303,6 +389,7 @@ public boolean equals(final java.lang.Object obj) { if (!getWorkspacesList().equals(other.getWorkspacesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,6 +407,10 @@ public int 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -476,6 +567,8 @@ public Builder clear() { } nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -514,6 +607,11 @@ public com.google.cloud.dataform.v1alpha2.ListWorkspacesResponse buildPartial() result.workspaces_ = workspacesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -595,6 +693,16 @@ public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.ListWorkspacesRespon nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1089,6 +1197,174 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java index 467098e..3589dc0 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/ListWorkspacesResponseOrBuilder.java @@ -101,4 +101,55 @@ public interface ListWorkspacesResponseOrBuilder * @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/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java index 07fe75c..e5c3132 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequest.java @@ -42,7 +42,6 @@ private QueryWorkflowInvocationActionsRequest( private QueryWorkflowInvocationActionsRequest() { name_ = ""; pageToken_ = ""; - filter_ = ""; } @java.lang.Override @@ -93,13 +92,6 @@ private QueryWorkflowInvocationActionsRequest( pageToken_ = s; break; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -266,57 +258,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } - public static final int FILTER_FIELD_NUMBER = 4; - 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 @@ -340,9 +281,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } unknownFields.writeTo(output); } @@ -361,9 +299,6 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -384,7 +319,6 @@ public boolean equals(final java.lang.Object 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -402,8 +336,6 @@ public int hashCode() { 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -559,8 +491,6 @@ public Builder clear() { pageToken_ = ""; - filter_ = ""; - return this; } @@ -594,7 +524,6 @@ public com.google.cloud.dataform.v1alpha2.QueryWorkflowInvocationActionsRequest result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; - result.filter_ = filter_; onBuilt(); return result; } @@ -660,10 +589,6 @@ public Builder mergeFrom( pageToken_ = other.pageToken_; onChanged(); } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -995,117 +920,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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; - 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(); - 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; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java index 15f67c2..8cba9c9 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/QueryWorkflowInvocationActionsRequestOrBuilder.java @@ -99,31 +99,4 @@ public interface QueryWorkflowInvocationActionsRequestOrBuilder * @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/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java index 4d5c549..d85097c 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationAction.java @@ -39,6 +39,7 @@ private WorkflowInvocationAction(com.google.protobuf.GeneratedMessageV3.Builder< private WorkflowInvocationAction() { state_ = 0; + failureReason_ = ""; } @java.lang.Override @@ -141,6 +142,13 @@ private WorkflowInvocationAction( bigqueryAction_ = subBuilder.buildPartial(); } + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + failureReason_ = s; break; } default: @@ -1262,6 +1270,55 @@ public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction.State getStat : result; } + public static final int FAILURE_REASON_FIELD_NUMBER = 7; + 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_; /** @@ -1413,6 +1470,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bigqueryAction_ != null) { output.writeMessage(6, getBigqueryAction()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, failureReason_); + } unknownFields.writeTo(output); } @@ -1438,6 +1498,9 @@ public int getSerializedSize() { if (bigqueryAction_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBigqueryAction()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, failureReason_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1463,6 +1526,7 @@ public boolean equals(final java.lang.Object obj) { 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; @@ -1492,6 +1556,8 @@ public int 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(); @@ -1660,6 +1726,8 @@ public Builder clear() { } state_ = 0; + failureReason_ = ""; + if (invocationTimingBuilder_ == null) { invocationTiming_ = null; } else { @@ -1710,6 +1778,7 @@ public com.google.cloud.dataform.v1alpha2.WorkflowInvocationAction buildPartial( result.canonicalTarget_ = canonicalTargetBuilder_.build(); } result.state_ = state_; + result.failureReason_ = failureReason_; if (invocationTimingBuilder_ == null) { result.invocationTiming_ = invocationTiming_; } else { @@ -1779,6 +1848,10 @@ public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.WorkflowInvocationAc if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (!other.getFailureReason().isEmpty()) { + failureReason_ = other.failureReason_; + onChanged(); + } if (other.hasInvocationTiming()) { mergeInvocationTiming(other.getInvocationTiming()); } @@ -2335,6 +2408,112 @@ public Builder clearState() { 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; + 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(); + 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; + onChanged(); + return this; + } + private com.google.type.Interval invocationTiming_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Interval, diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java index 6bd628d..7d71d2e 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java +++ b/proto-google-cloud-dataform-v1alpha2/src/main/java/com/google/cloud/dataform/v1alpha2/WorkflowInvocationActionOrBuilder.java @@ -137,6 +137,31 @@ public interface WorkflowInvocationActionOrBuilder */ 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(); + /** * * diff --git a/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto b/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto index 0145971..771acdb 100644 --- a/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto +++ b/proto-google-cloud-dataform-v1alpha2/src/main/proto/google/cloud/dataform/v1alpha2/dataform.proto @@ -421,6 +421,9 @@ message ListRepositoriesResponse { // 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. @@ -547,6 +550,9 @@ message ListWorkspacesResponse { // 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. @@ -1084,6 +1090,9 @@ message ListCompilationResultsResponse { // 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. @@ -1474,6 +1483,9 @@ message ListWorkflowInvocationsResponse { // 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. @@ -1567,6 +1579,9 @@ message WorkflowInvocationAction { // 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. @@ -1600,10 +1615,6 @@ message QueryWorkflowInvocationActionsRequest { // `QueryWorkflowInvocationActions` 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]; } // `QueryWorkflowInvocationActions` response message. diff --git a/proto-google-cloud-dataform-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-dataform-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 0000000..6f37c7a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/dataform/v1beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/dataform/v1beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/dataform/v1beta1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-dataform-v1beta1/pom.xml b/proto-google-cloud-dataform-v1beta1/pom.xml new file mode 100644 index 0000000..912e32a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/pom.xml @@ -0,0 +1,42 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-dataform-v1beta1 + 0.2.0 + proto-google-cloud-dataform-v1beta1 + Proto library for google-cloud-dataform + + com.google.cloud + google-cloud-dataform-parent + 0.2.0 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CancelWorkflowInvocationRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CancelWorkflowInvocationRequest.java new file mode 100644 index 0000000..e0c855a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CancelWorkflowInvocationRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CancelWorkflowInvocation` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest} + */ +public final class CancelWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CancelWorkflowInvocationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest other = + (com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CancelWorkflowInvocationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest build() { + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest result = + new com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest) + private static final com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CancelWorkflowInvocationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CancelWorkflowInvocationRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CancelWorkflowInvocationRequestOrBuilder.java new file mode 100644 index 0000000..e8dd84e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CancelWorkflowInvocationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CancelWorkflowInvocationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitAuthor.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitAuthor.java new file mode 100644 index 0000000..22f092f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitAuthor.java @@ -0,0 +1,815 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents the author of a Git commit.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitAuthor} + */ +public final class CommitAuthor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommitAuthor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitAuthor.class, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CommitAuthor)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitAuthor other = + (com.google.cloud.dataform.v1beta1.CommitAuthor) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEmailAddress().equals(other.getEmailAddress())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitAuthor parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitAuthor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitAuthor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitAuthor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitAuthor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CommitAuthor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitAuthor) + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitAuthor.class, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CommitAuthor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + emailAddress_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor build() { + com.google.cloud.dataform.v1beta1.CommitAuthor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor buildPartial() { + com.google.cloud.dataform.v1beta1.CommitAuthor result = + new com.google.cloud.dataform.v1beta1.CommitAuthor(this); + result.name_ = name_; + result.emailAddress_ = emailAddress_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CommitAuthor) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CommitAuthor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CommitAuthor other) { + if (other == com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CommitAuthor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataform.v1beta1.CommitAuthor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitAuthor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitAuthor) + private static final com.google.cloud.dataform.v1beta1.CommitAuthor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitAuthor(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CommitAuthor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitAuthorOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitAuthorOrBuilder.java new file mode 100644 index 0000000..b0a7744 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitAuthorOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CommitAuthorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java new file mode 100644 index 0000000..45afa6d --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequest.java @@ -0,0 +1,1434 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CommitWorkspaceChanges` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest} + */ +public final class CommitWorkspaceChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommitWorkspaceChangesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommitWorkspaceChangesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + commitMessage_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paths_.add(s); + break; + } + case 34: + { + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder subBuilder = null; + if (author_ != null) { + subBuilder = author_.toBuilder(); + } + author_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CommitAuthor.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(author_); + author_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + paths_ = paths_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.class, + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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.v1beta1.CommitAuthor author_; + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return author_ != null; + } + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + return getAuthor(); + } + + public static final int COMMIT_MESSAGE_FIELD_NUMBER = 2; + 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; + private com.google.protobuf.LazyStringList 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 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 (author_ != null) { + output.writeMessage(4, getAuthor()); + } + unknownFields.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 (author_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthor()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitWorkspaceChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitWorkspaceChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitWorkspaceChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CommitWorkspaceChangesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CommitWorkspaceChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.class, + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (authorBuilder_ == null) { + author_ = null; + } else { + author_ = null; + authorBuilder_ = null; + } + commitMessage_ = ""; + + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest build() { + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest result = + new com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (authorBuilder_ == null) { + result.author_ = author_; + } else { + result.author_ = authorBuilder_.build(); + } + result.commitMessage_ = commitMessage_; + if (((bitField0_ & 0x00000001) != 0)) { + paths_ = paths_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.paths_ = paths_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasAuthor()) { + mergeAuthor(other.getAuthor()); + } + if (!other.getCommitMessage().isEmpty()) { + commitMessage_ = other.commitMessage_; + onChanged(); + } + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CommitAuthor author_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + authorBuilder_; + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return authorBuilder_ != null || author_ != null; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + if (authorBuilder_ == null) { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } else { + return authorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + onChanged(); + } else { + authorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthor( + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder builderForValue) { + if (authorBuilder_ == null) { + author_ = builderForValue.build(); + onChanged(); + } else { + authorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (author_ != null) { + author_ = + com.google.cloud.dataform.v1beta1.CommitAuthor.newBuilder(author_) + .mergeFrom(value) + .buildPartial(); + } else { + author_ = value; + } + onChanged(); + } else { + authorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthor() { + if (authorBuilder_ == null) { + author_ = null; + onChanged(); + } else { + author_ = null; + authorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor.Builder getAuthorBuilder() { + + onChanged(); + return getAuthorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + if (authorBuilder_ != null) { + return authorBuilder_.getMessageOrBuilder(); + } else { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + } + /** + * + * + *
+     * Required. The commit's author.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + getAuthorFieldBuilder() { + if (authorBuilder_ == null) { + authorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder>( + getAuthor(), getParentForChildren(), isClean()); + author_ = null; + } + return authorBuilder_; + } + + private java.lang.Object commitMessage_ = ""; + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitMessage. + */ + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitMessage. + */ + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The commit's message.
+     * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + commitMessage_ = value; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList paths_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePathsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * 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_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest) + private static final com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CommitWorkspaceChangesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java new file mode 100644 index 0000000..545a509 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CommitWorkspaceChangesRequestOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CommitWorkspaceChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor(); + /** + * + * + *
+   * Required. The commit's author.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder(); + + /** + * + * + *
+   * Optional. The commit's message.
+   * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitMessage. + */ + java.lang.String getCommitMessage(); + /** + * + * + *
+   * Optional. The commit's message.
+   * 
+ * + * string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitMessage. + */ + com.google.protobuf.ByteString getCommitMessageBytes(); + + /** + * + * + *
+   * 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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java new file mode 100644 index 0000000..959e61b --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java @@ -0,0 +1,6111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents the result of compiling a Dataform project.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResult} + */ +public final class CompilationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompilationResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 3; + source_ = s; + break; + } + case 34: + { + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder + subBuilder = null; + if (codeCompilationConfig_ != null) { + subBuilder = codeCompilationConfig_.toBuilder(); + } + codeCompilationConfig_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(codeCompilationConfig_); + codeCompilationConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + dataformCoreVersion_ = s; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + compilationErrors_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError>(); + mutable_bitField0_ |= 0x00000001; + } + compilationErrors_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + compilationErrors_ = java.util.Collections.unmodifiableList(compilationErrors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResult.class, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder.class); + } + + public interface CodeCompilationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultDatabase. + */ + java.lang.String getDefaultDatabase(); + /** + * + * + *
+     * Optional. The default database (Google Cloud project ID).
+     * 
+ * + * string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultDatabase. + */ + com.google.protobuf.ByteString getDefaultDatabaseBytes(); + + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultSchema. + */ + java.lang.String getDefaultSchema(); + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID).
+     * 
+ * + * string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultSchema. + */ + com.google.protobuf.ByteString getDefaultSchemaBytes(); + + /** + * + * + *
+     * Optional. The default BigQuery location to use. Defaults to "US".
+     * See the BigQuery docs for a full list of locations:
+     * https://cloud.google.com/bigquery/docs/locations.
+     * 
+ * + * string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultLocation. + */ + java.lang.String getDefaultLocation(); + /** + * + * + *
+     * Optional. The default BigQuery location to use. Defaults to "US".
+     * See the BigQuery docs for a full list of locations:
+     * https://cloud.google.com/bigquery/docs/locations.
+     * 
+ * + * string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultLocation. + */ + com.google.protobuf.ByteString getDefaultLocationBytes(); + + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assertionSchema. + */ + java.lang.String getAssertionSchema(); + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assertionSchema. + */ + com.google.protobuf.ByteString getAssertionSchemaBytes(); + + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code during
+     * compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getVarsCount(); + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code during
+     * compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsVars(java.lang.String key); + /** Use {@link #getVarsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getVars(); + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code during
+     * compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getVarsMap(); + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code during
+     * compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + + /* nullable */ + java.lang.String getVarsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+     * Optional. User-defined variables that are made available to project code during
+     * compilation.
+     * 
+ * + * map<string, string> vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getVarsOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud project
+     * ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The databaseSuffix. + */ + java.lang.String getDatabaseSuffix(); + /** + * + * + *
+     * Optional. The suffix that should be appended to all database (Google Cloud project
+     * ID) names.
+     * 
+ * + * string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for databaseSuffix. + */ + com.google.protobuf.ByteString getDatabaseSuffixBytes(); + + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
+     * names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaSuffix. + */ + java.lang.String getSchemaSuffix(); + /** + * + * + *
+     * Optional. The suffix that should be appended to all schema (BigQuery dataset ID)
+     * names.
+     * 
+ * + * string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for schemaSuffix. + */ + com.google.protobuf.ByteString getSchemaSuffixBytes(); + + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tablePrefix. + */ + java.lang.String getTablePrefix(); + /** + * + * + *
+     * Optional. The prefix that should be prepended to all table names.
+     * 
+ * + * string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tablePrefix. + */ + com.google.protobuf.ByteString getTablePrefixBytes(); + } + /** + * + * + *
+   * Configures various aspects of Dataform code compilation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} + */ + public static final class CodeCompilationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) + CodeCompilationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CodeCompilationConfig.newBuilder() to construct. + private CodeCompilationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CodeCompilationConfig() { + defaultDatabase_ = ""; + defaultSchema_ = ""; + defaultLocation_ = ""; + assertionSchema_ = ""; + databaseSuffix_ = ""; + schemaSuffix_ = ""; + tablePrefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CodeCompilationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CodeCompilationConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + defaultDatabase_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultSchema_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + assertionSchema_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vars_ = + com.google.protobuf.MapField.newMapField(VarsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry vars__ = + input.readMessage( + VarsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + vars_.getMutableMap().put(vars__.getKey(), vars__.getValue()); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + databaseSuffix_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + schemaSuffix_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + tablePrefix_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultLocation_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetVars(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.class, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder + .class); + } + + public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1; + 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; + 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; + 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; + private volatile java.lang.Object assertionSchema_; + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assertionSchema. + */ + @java.lang.Override + public java.lang.String getAssertionSchema() { + java.lang.Object ref = assertionSchema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assertionSchema_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The default schema (BigQuery dataset ID) for assertions.
+     * 
+ * + * string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assertionSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssertionSchemaBytes() { + java.lang.Object ref = assertionSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assertionSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VARS_FIELD_NUMBER = 4; + + private static final class VarsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + 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 java.lang.String getVarsOrDefault(java.lang.String key, 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; + 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig other = + (com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) obj; + + if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; + if (!getDefaultSchema().equals(other.getDefaultSchema())) return false; + if (!getDefaultLocation().equals(other.getDefaultLocation())) return false; + if (!getAssertionSchema().equals(other.getAssertionSchema())) return false; + if (!internalGetVars().equals(other.internalGetVars())) return false; + if (!getDatabaseSuffix().equals(other.getDatabaseSuffix())) return false; + if (!getSchemaSuffix().equals(other.getSchemaSuffix())) return false; + if (!getTablePrefix().equals(other.getTablePrefix())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configures various aspects of Dataform code compilation.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetVars(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableVars(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.class, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + defaultDatabase_ = ""; + + defaultSchema_ = ""; + + defaultLocation_ = ""; + + assertionSchema_ = ""; + + internalGetMutableVars().clear(); + databaseSuffix_ = ""; + + schemaSuffix_ = ""; + + tablePrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig build() { + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig result = + new com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig(this); + int from_bitField0_ = bitField0_; + result.defaultDatabase_ = defaultDatabase_; + result.defaultSchema_ = defaultSchema_; + result.defaultLocation_ = defaultLocation_; + result.assertionSchema_ = assertionSchema_; + result.vars_ = internalGetVars(); + result.vars_.makeImmutable(); + result.databaseSuffix_ = databaseSuffix_; + result.schemaSuffix_ = schemaSuffix_; + result.tablePrefix_ = tablePrefix_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig other) { + if (other + == com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + .getDefaultInstance()) return this; + if (!other.getDefaultDatabase().isEmpty()) { + defaultDatabase_ = other.defaultDatabase_; + onChanged(); + } + if (!other.getDefaultSchema().isEmpty()) { + defaultSchema_ = other.defaultSchema_; + onChanged(); + } + if (!other.getDefaultLocation().isEmpty()) { + defaultLocation_ = other.defaultLocation_; + onChanged(); + } + if (!other.getAssertionSchema().isEmpty()) { + assertionSchema_ = other.assertionSchema_; + onChanged(); + } + internalGetMutableVars().mergeFrom(other.internalGetVars()); + if (!other.getDatabaseSuffix().isEmpty()) { + databaseSuffix_ = other.databaseSuffix_; + onChanged(); + } + if (!other.getSchemaSuffix().isEmpty()) { + schemaSuffix_ = other.schemaSuffix_; + onChanged(); + } + if (!other.getTablePrefix().isEmpty()) { + tablePrefix_ = other.tablePrefix_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + 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() { + onChanged(); + ; + if (vars_ == null) { + vars_ = com.google.protobuf.MapField.newMapField(VarsDefaultEntryHolder.defaultEntry); + } + if (!vars_.isMutable()) { + vars_ = vars_.copy(); + } + 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 java.lang.String getVarsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig) + private static final com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig(); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeCompilationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CodeCompilationConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CompilationErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResult.CompilationError) + 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.v1beta1.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.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionTarget. + */ + com.google.cloud.dataform.v1beta1.Target getActionTarget(); + /** + * + * + *
+     * Output only. The identifier of the action where this error occurred, if available.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getActionTargetOrBuilder(); + } + /** + * + * + *
+   * An error encountered when attempting to compile a Dataform project.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResult.CompilationError} + */ + public static final class CompilationError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompilationError( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + message_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + stack_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 34: + { + com.google.cloud.dataform.v1beta1.Target.Builder subBuilder = null; + if (actionTarget_ != null) { + subBuilder = actionTarget_.toBuilder(); + } + actionTarget_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(actionTarget_); + actionTarget_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.class, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + 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; + 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; + 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.v1beta1.Target actionTarget_; + /** + * + * + *
+     * Output only. The identifier of the action where this error occurred, if available.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actionTarget field is set. + */ + @java.lang.Override + public boolean hasActionTarget() { + return actionTarget_ != null; + } + /** + * + * + *
+     * Output only. The identifier of the action where this error occurred, if available.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionTarget. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getActionTarget() { + return actionTarget_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : actionTarget_; + } + /** + * + * + *
+     * Output only. The identifier of the action where this error occurred, if available.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getActionTargetOrBuilder() { + return getActionTarget(); + } + + 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 (actionTarget_ != null) { + output.writeMessage(4, getActionTarget()); + } + unknownFields.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 (actionTarget_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getActionTarget()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResult.CompilationError} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResult.CompilationError) + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.class, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + stack_ = ""; + + path_ = ""; + + if (actionTargetBuilder_ == null) { + actionTarget_ = null; + } else { + actionTarget_ = null; + actionTargetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError build() { + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError result = + new com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError(this); + result.message_ = message_; + result.stack_ = stack_; + result.path_ = path_; + if (actionTargetBuilder_ == null) { + result.actionTarget_ = actionTarget_; + } else { + result.actionTarget_ = actionTargetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError other) { + if (other + == com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + .getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getStack().isEmpty()) { + stack_ = other.stack_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (other.hasActionTarget()) { + mergeActionTarget(other.getActionTarget()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.Target actionTarget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + actionTargetBuilder_; + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actionTarget field is set. + */ + public boolean hasActionTarget() { + return actionTargetBuilder_ != null || actionTarget_ != null; + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionTarget. + */ + public com.google.cloud.dataform.v1beta1.Target getActionTarget() { + if (actionTargetBuilder_ == null) { + return actionTarget_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : actionTarget_; + } else { + return actionTargetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActionTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (actionTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionTarget_ = value; + onChanged(); + } else { + actionTargetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActionTarget( + com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (actionTargetBuilder_ == null) { + actionTarget_ = builderForValue.build(); + onChanged(); + } else { + actionTargetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActionTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (actionTargetBuilder_ == null) { + if (actionTarget_ != null) { + actionTarget_ = + com.google.cloud.dataform.v1beta1.Target.newBuilder(actionTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + actionTarget_ = value; + } + onChanged(); + } else { + actionTargetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActionTarget() { + if (actionTargetBuilder_ == null) { + actionTarget_ = null; + onChanged(); + } else { + actionTarget_ = null; + actionTargetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getActionTargetBuilder() { + + onChanged(); + return getActionTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getActionTargetOrBuilder() { + if (actionTargetBuilder_ != null) { + return actionTargetBuilder_.getMessageOrBuilder(); + } else { + return actionTarget_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : actionTarget_; + } + } + /** + * + * + *
+       * Output only. The identifier of the action where this error occurred, if available.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getActionTargetFieldBuilder() { + if (actionTargetBuilder_ == null) { + actionTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResult.CompilationError) + private static final com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CompilationError(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + 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; + 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.v1beta1.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.v1beta1.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 codeCompilationConfig_ != null; + } + /** + * + * + *
+   * Immutable. If set, fields of `code_compilation_overrides` override the default
+   * compilation settings that are specified in dataform.json.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The codeCompilationConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + getCodeCompilationConfig() { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder + getCodeCompilationConfigOrBuilder() { + return getCodeCompilationConfig(); + } + + public static final int DATAFORM_CORE_VERSION_FIELD_NUMBER = 5; + 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; + private java.util.List + compilationErrors_; + /** + * + * + *
+   * Output only. Errors encountered during project compilation.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder> + getCompilationErrorsOrBuilderList() { + return compilationErrors_; + } + /** + * + * + *
+   * Output only. Errors encountered during project compilation.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError getCompilationErrors( + int index) { + return compilationErrors_.get(index); + } + /** + * + * + *
+   * Output only. Errors encountered during project compilation.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.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 (codeCompilationConfig_ != null) { + 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)); + } + unknownFields.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 (codeCompilationConfig_ != null) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResult)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResult other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CompilationResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.CompilationResult 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.v1beta1.CompilationResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResult) + com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResult.class, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) { + getCompilationErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (codeCompilationConfigBuilder_ == null) { + codeCompilationConfig_ = null; + } else { + codeCompilationConfig_ = null; + codeCompilationConfigBuilder_ = null; + } + dataformCoreVersion_ = ""; + + if (compilationErrorsBuilder_ == null) { + compilationErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + compilationErrorsBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult build() { + com.google.cloud.dataform.v1beta1.CompilationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResult result = + new com.google.cloud.dataform.v1beta1.CompilationResult(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (sourceCase_ == 2) { + result.source_ = source_; + } + if (sourceCase_ == 3) { + result.source_ = source_; + } + if (codeCompilationConfigBuilder_ == null) { + result.codeCompilationConfig_ = codeCompilationConfig_; + } else { + result.codeCompilationConfig_ = codeCompilationConfigBuilder_.build(); + } + result.dataformCoreVersion_ = dataformCoreVersion_; + if (compilationErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + compilationErrors_ = java.util.Collections.unmodifiableList(compilationErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.compilationErrors_ = compilationErrors_; + } else { + result.compilationErrors_ = compilationErrorsBuilder_.build(); + } + result.sourceCase_ = sourceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResult) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CompilationResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResult other) { + if (other == com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCodeCompilationConfig()) { + mergeCodeCompilationConfig(other.getCodeCompilationConfig()); + } + if (!other.getDataformCoreVersion().isEmpty()) { + dataformCoreVersion_ = other.dataformCoreVersion_; + onChanged(); + } + if (compilationErrorsBuilder_ == null) { + if (!other.compilationErrors_.isEmpty()) { + if (compilationErrors_.isEmpty()) { + compilationErrors_ = other.compilationErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompilationErrorsIsMutable(); + compilationErrors_.addAll(other.compilationErrors_); + } + onChanged(); + } + } else { + if (!other.compilationErrors_.isEmpty()) { + if (compilationErrorsBuilder_.isEmpty()) { + compilationErrorsBuilder_.dispose(); + compilationErrorsBuilder_ = null; + compilationErrors_ = other.compilationErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + 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.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + 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(); + 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; + 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.v1beta1.CompilationResult.CodeCompilationConfig + codeCompilationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder> + codeCompilationConfigBuilder_; + /** + * + * + *
+     * Immutable. If set, fields of `code_compilation_overrides` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the codeCompilationConfig field is set. + */ + public boolean hasCodeCompilationConfig() { + return codeCompilationConfigBuilder_ != null || codeCompilationConfig_ != null; + } + /** + * + * + *
+     * Immutable. If set, fields of `code_compilation_overrides` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The codeCompilationConfig. + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig + getCodeCompilationConfig() { + if (codeCompilationConfigBuilder_ == null) { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCodeCompilationConfig( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig value) { + if (codeCompilationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + codeCompilationConfig_ = value; + onChanged(); + } else { + codeCompilationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. If set, fields of `code_compilation_overrides` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCodeCompilationConfig( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder + builderForValue) { + if (codeCompilationConfigBuilder_ == null) { + codeCompilationConfig_ = builderForValue.build(); + onChanged(); + } else { + codeCompilationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. If set, fields of `code_compilation_overrides` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCodeCompilationConfig( + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig value) { + if (codeCompilationConfigBuilder_ == null) { + if (codeCompilationConfig_ != null) { + codeCompilationConfig_ = + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.newBuilder( + codeCompilationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + codeCompilationConfig_ = value; + } + onChanged(); + } else { + codeCompilationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. If set, fields of `code_compilation_overrides` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCodeCompilationConfig() { + if (codeCompilationConfigBuilder_ == null) { + codeCompilationConfig_ = null; + onChanged(); + } else { + codeCompilationConfig_ = null; + codeCompilationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. If set, fields of `code_compilation_overrides` override the default
+     * compilation settings that are specified in dataform.json.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder + getCodeCompilationConfigBuilder() { + + 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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder + getCodeCompilationConfigOrBuilder() { + if (codeCompilationConfigBuilder_ != null) { + return codeCompilationConfigBuilder_.getMessageOrBuilder(); + } else { + return codeCompilationConfig_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder> + getCodeCompilationConfigFieldBuilder() { + if (codeCompilationConfigBuilder_ == null) { + codeCompilationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfig.Builder, + com.google.cloud.dataform.v1beta1.CompilationResult.CodeCompilationConfigOrBuilder>( + 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; + 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(); + 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; + onChanged(); + return this; + } + + private java.util.List + compilationErrors_ = java.util.Collections.emptyList(); + + private void ensureCompilationErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + compilationErrors_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError>( + compilationErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder> + compilationErrorsBuilder_; + + /** + * + * + *
+     * Output only. Errors encountered during project compilation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompilationErrors( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompilationErrors( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCompilationErrors( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCompilationErrors( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCompilationErrors( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCompilationErrors( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCompilationErrors( + java.lang.Iterable< + ? extends com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCompilationErrors() { + if (compilationErrorsBuilder_ == null) { + compilationErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + compilationErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Errors encountered during project compilation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder + getCompilationErrorsBuilder(int index) { + return getCompilationErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Errors encountered during project compilation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder + addCompilationErrorsBuilder() { + return getCompilationErrorsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Errors encountered during project compilation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder + addCompilationErrorsBuilder(int index) { + return getCompilationErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Errors encountered during project compilation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder> + getCompilationErrorsBuilderList() { + return getCompilationErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder> + getCompilationErrorsFieldBuilder() { + if (compilationErrorsBuilder_ == null) { + compilationErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError.Builder, + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder>( + compilationErrors_, + ((bitField0_ & 0x00000001) != 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.v1beta1.CompilationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResult) + private static final com.google.cloud.dataform.v1beta1.CompilationResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResult(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CompilationResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java new file mode 100644 index 0000000..7c1e77e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java @@ -0,0 +1,14782 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a single Dataform action in a compilation result.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction} + */ +public final class CompilationResultAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompilationResultAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.Target.Builder subBuilder = null; + if (target_ != null) { + subBuilder = target_.toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(target_); + target_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.Target.Builder subBuilder = null; + if (canonicalTarget_ != null) { + subBuilder = canonicalTarget_.toBuilder(); + } + canonicalTarget_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(canonicalTarget_); + canonicalTarget_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filePath_ = s; + break; + } + case 34: + { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder + subBuilder = null; + if (compiledObjectCase_ == 4) { + subBuilder = + ((com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + compiledObject_) + .toBuilder(); + } + compiledObject_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + compiledObject_); + compiledObject_ = subBuilder.buildPartial(); + } + compiledObjectCase_ = 4; + break; + } + case 42: + { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder + subBuilder = null; + if (compiledObjectCase_ == 5) { + subBuilder = + ((com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + compiledObject_) + .toBuilder(); + } + compiledObject_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + compiledObject_); + compiledObject_ = subBuilder.buildPartial(); + } + compiledObjectCase_ = 5; + break; + } + case 50: + { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder + subBuilder = null; + if (compiledObjectCase_ == 6) { + subBuilder = + ((com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + compiledObject_) + .toBuilder(); + } + compiledObject_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + compiledObject_); + compiledObject_ = subBuilder.buildPartial(); + } + compiledObjectCase_ = 6; + break; + } + case 58: + { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder + subBuilder = null; + if (compiledObjectCase_ == 7) { + subBuilder = + ((com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_) + .toBuilder(); + } + compiledObject_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_); + compiledObject_ = subBuilder.buildPartial(); + } + compiledObjectCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder.class); + } + + public interface RelationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + java.util.List getDependencyTargetsList(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + int getDependencyTargetsCount(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + java.util.List + getDependencyTargetsOrBuilderList(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 4; + * + * @return Whether the relationDescriptor field is set. + */ + boolean hasRelationDescriptor(); + /** + * + * + *
+     * Descriptor for the relation and its columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * + * @return The relationDescriptor. + */ + com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor(); + /** + * + * + *
+     * Descriptor for the relation and its columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder(); + + /** + * + * + *
+     * The type of this relation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * + * + * @return The relationType. + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + * + * @return The incrementalTableConfig. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + getIncrementalTableConfig(); + /** + * + * + *
+     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+     * `relation_type` is `INCREMENTAL_TABLE`.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation} + */ + public static final class Relation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + relationType_ = 0; + selectQuery_ = ""; + preOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + postOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + partitionExpression_ = ""; + clusterExpressions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Relation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Relation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dependencyTargets_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry)); + break; + } + case 16: + { + disabled_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tags_.add(s); + break; + } + case 34: + { + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder subBuilder = null; + if (relationDescriptor_ != null) { + subBuilder = relationDescriptor_.toBuilder(); + } + relationDescriptor_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.RelationDescriptor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(relationDescriptor_); + relationDescriptor_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + int rawValue = input.readEnum(); + + relationType_ = rawValue; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + selectQuery_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + preOperations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + preOperations_.add(s); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + postOperations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + postOperations_.add(s); + break; + } + case 74: + { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder + subBuilder = null; + if (incrementalTableConfig_ != null) { + subBuilder = incrementalTableConfig_.toBuilder(); + } + incrementalTableConfig_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(incrementalTableConfig_); + incrementalTableConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + partitionExpression_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + clusterExpressions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + clusterExpressions_.add(s); + break; + } + case 96: + { + partitionExpirationDays_ = input.readInt32(); + break; + } + case 104: + { + requirePartitionFilter_ = input.readBool(); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + additionalOptions_ = + com.google.protobuf.MapField.newMapField( + AdditionalOptionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000020; + } + com.google.protobuf.MapEntry + additionalOptions__ = + input.readMessage( + AdditionalOptionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + additionalOptions_ + .getMutableMap() + .put(additionalOptions__.getKey(), additionalOptions__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + preOperations_ = preOperations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + postOperations_ = postOperations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + clusterExpressions_ = clusterExpressions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder.class); + } + + /** + * + * + *
+     * Indicates the type of this relation.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Relation.RelationType) + } + + public interface IncrementalTableConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} + */ + public static final class IncrementalTableConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + updatePartitionFilter_ = ""; + incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IncrementalTableConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IncrementalTableConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + incrementalSelectQuery_ = s; + break; + } + case 16: + { + refreshDisabled_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + uniqueKeyParts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + uniqueKeyParts_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + updatePartitionFilter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + incrementalPreOperations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + incrementalPreOperations_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + incrementalPostOperations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + incrementalPostOperations_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + uniqueKeyParts_ = uniqueKeyParts_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + incrementalPreOperations_ = incrementalPreOperations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + incrementalPostOperations_ = incrementalPostOperations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder.class); + } + + public static final int INCREMENTAL_SELECT_QUERY_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+       * 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; + private com.google.protobuf.LazyStringList 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 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; + 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; + private com.google.protobuf.LazyStringList incrementalPreOperations_; + /** + * + * + *
+       * 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; + private com.google.protobuf.LazyStringList incrementalPostOperations_; + /** + * + * + *
+       * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig) + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + incrementalSelectQuery_ = ""; + + refreshDisabled_ = false; + + uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + updatePartitionFilter_ = ""; + + incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + build() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + result = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig(this); + int from_bitField0_ = bitField0_; + result.incrementalSelectQuery_ = incrementalSelectQuery_; + result.refreshDisabled_ = refreshDisabled_; + if (((bitField0_ & 0x00000001) != 0)) { + uniqueKeyParts_ = uniqueKeyParts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.uniqueKeyParts_ = uniqueKeyParts_; + result.updatePartitionFilter_ = updatePartitionFilter_; + if (((bitField0_ & 0x00000002) != 0)) { + incrementalPreOperations_ = incrementalPreOperations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.incrementalPreOperations_ = incrementalPreOperations_; + if (((bitField0_ & 0x00000004) != 0)) { + incrementalPostOperations_ = incrementalPostOperations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.incrementalPostOperations_ = incrementalPostOperations_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + other) { + if (other + == com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.getDefaultInstance()) return this; + if (!other.getIncrementalSelectQuery().isEmpty()) { + incrementalSelectQuery_ = other.incrementalSelectQuery_; + onChanged(); + } + if (other.getRefreshDisabled() != false) { + setRefreshDisabled(other.getRefreshDisabled()); + } + if (!other.uniqueKeyParts_.isEmpty()) { + if (uniqueKeyParts_.isEmpty()) { + uniqueKeyParts_ = other.uniqueKeyParts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUniqueKeyPartsIsMutable(); + uniqueKeyParts_.addAll(other.uniqueKeyParts_); + } + onChanged(); + } + if (!other.getUpdatePartitionFilter().isEmpty()) { + updatePartitionFilter_ = other.updatePartitionFilter_; + onChanged(); + } + if (!other.incrementalPreOperations_.isEmpty()) { + if (incrementalPreOperations_.isEmpty()) { + incrementalPreOperations_ = other.incrementalPreOperations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncrementalPreOperationsIsMutable(); + incrementalPreOperations_.addAll(other.incrementalPreOperations_); + } + onChanged(); + } + if (!other.incrementalPostOperations_.isEmpty()) { + if (incrementalPostOperations_.isEmpty()) { + incrementalPostOperations_ = other.incrementalPostOperations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIncrementalPostOperationsIsMutable(); + incrementalPostOperations_.addAll(other.incrementalPostOperations_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + 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(); + 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; + 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; + onChanged(); + return this; + } + /** + * + * + *
+         * Whether this table should be protected from being refreshed.
+         * 
+ * + * bool refresh_disabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearRefreshDisabled() { + + refreshDisabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList uniqueKeyParts_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUniqueKeyPartsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + uniqueKeyParts_ = new com.google.protobuf.LazyStringArrayList(uniqueKeyParts_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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); + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList incrementalPreOperations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIncrementalPreOperationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + incrementalPreOperations_ = + new com.google.protobuf.LazyStringArrayList(incrementalPreOperations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList incrementalPostOperations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIncrementalPostOperationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + incrementalPostOperations_ = + new com.google.protobuf.LazyStringArrayList(incrementalPostOperations_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+         * 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_.getUnmodifiableView(); + } + /** + * + * + *
+         * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig) + private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new IncrementalTableConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1; + private java.util.List dependencyTargets_; + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) { + return dependencyTargets_.get(index); + } + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder( + int index) { + return dependencyTargets_.get(index); + } + + public static final int DISABLED_FIELD_NUMBER = 2; + 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_; + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+     * 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.v1beta1.RelationDescriptor relationDescriptor_; + /** + * + * + *
+     * Descriptor for the relation and its columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * + * @return Whether the relationDescriptor field is set. + */ + @java.lang.Override + public boolean hasRelationDescriptor() { + return relationDescriptor_ != null; + } + /** + * + * + *
+     * Descriptor for the relation and its columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * + * @return The relationDescriptor. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } + /** + * + * + *
+     * Descriptor for the relation and its columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + return getRelationDescriptor(); + } + + public static final int RELATION_TYPE_FIELD_NUMBER = 5; + private int relationType_; + /** + * + * + *
+     * The type of this relation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * + * + * @return The relationType. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + getRelationType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType result = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType.valueOf( + relationType_); + return result == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + .UNRECOGNIZED + : result; + } + + public static final int SELECT_QUERY_FIELD_NUMBER = 6; + 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; + private com.google.protobuf.LazyStringList preOperations_; + /** + * + * + *
+     * 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; + private com.google.protobuf.LazyStringList postOperations_; + /** + * + * + *
+     * 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.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + incrementalTableConfig_; + /** + * + * + *
+     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+     * `relation_type` is `INCREMENTAL_TABLE`.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + * + * @return Whether the incrementalTableConfig field is set. + */ + @java.lang.Override + public boolean hasIncrementalTableConfig() { + return incrementalTableConfig_ != null; + } + /** + * + * + *
+     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+     * `relation_type` is `INCREMENTAL_TABLE`.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + * + * @return The incrementalTableConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + getIncrementalTableConfig() { + return incrementalTableConfig_ == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.getDefaultInstance() + : incrementalTableConfig_; + } + /** + * + * + *
+     * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+     * `relation_type` is `INCREMENTAL_TABLE`.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfigOrBuilder + getIncrementalTableConfigOrBuilder() { + return getIncrementalTableConfig(); + } + + public static final int PARTITION_EXPRESSION_FIELD_NUMBER = 10; + 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; + private com.google.protobuf.LazyStringList clusterExpressions_; + /** + * + * + *
+     * 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_; + /** + * + * + *
+     * 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_; + /** + * + * + *
+     * 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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + 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 java.lang.String getAdditionalOptionsOrDefault( + java.lang.String key, 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 (relationDescriptor_ != null) { + output.writeMessage(4, getRelationDescriptor()); + } + if (relationType_ + != com.google.cloud.dataform.v1beta1.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 (incrementalTableConfig_ != null) { + 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); + unknownFields.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 (relationDescriptor_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRelationDescriptor()); + } + if (relationType_ + != com.google.cloud.dataform.v1beta1.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 (incrementalTableConfig_ != null) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Relation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 14: + return internalGetAdditionalOptions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dependencyTargetsBuilder_ == null) { + dependencyTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dependencyTargetsBuilder_.clear(); + } + disabled_ = false; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + relationType_ = 0; + + selectQuery_ = ""; + + preOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + postOperations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (incrementalTableConfigBuilder_ == null) { + incrementalTableConfig_ = null; + } else { + incrementalTableConfig_ = null; + incrementalTableConfigBuilder_ = null; + } + partitionExpression_ = ""; + + clusterExpressions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + partitionExpirationDays_ = 0; + + requirePartitionFilter_ = false; + + internalGetMutableAdditionalOptions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation build() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation result = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(this); + int from_bitField0_ = bitField0_; + if (dependencyTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dependencyTargets_ = dependencyTargets_; + } else { + result.dependencyTargets_ = dependencyTargetsBuilder_.build(); + } + result.disabled_ = disabled_; + if (((bitField0_ & 0x00000002) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tags_ = tags_; + if (relationDescriptorBuilder_ == null) { + result.relationDescriptor_ = relationDescriptor_; + } else { + result.relationDescriptor_ = relationDescriptorBuilder_.build(); + } + result.relationType_ = relationType_; + result.selectQuery_ = selectQuery_; + if (((bitField0_ & 0x00000004) != 0)) { + preOperations_ = preOperations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.preOperations_ = preOperations_; + if (((bitField0_ & 0x00000008) != 0)) { + postOperations_ = postOperations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.postOperations_ = postOperations_; + if (incrementalTableConfigBuilder_ == null) { + result.incrementalTableConfig_ = incrementalTableConfig_; + } else { + result.incrementalTableConfig_ = incrementalTableConfigBuilder_.build(); + } + result.partitionExpression_ = partitionExpression_; + if (((bitField0_ & 0x00000010) != 0)) { + clusterExpressions_ = clusterExpressions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.clusterExpressions_ = clusterExpressions_; + result.partitionExpirationDays_ = partitionExpirationDays_; + result.requirePartitionFilter_ = requirePartitionFilter_; + result.additionalOptions_ = internalGetAdditionalOptions(); + result.additionalOptions_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation other) { + if (other + == com.google.cloud.dataform.v1beta1.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_ = (bitField0_ & ~0x00000002); + } 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_; + onChanged(); + } + if (!other.preOperations_.isEmpty()) { + if (preOperations_.isEmpty()) { + preOperations_ = other.preOperations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePreOperationsIsMutable(); + preOperations_.addAll(other.preOperations_); + } + onChanged(); + } + if (!other.postOperations_.isEmpty()) { + if (postOperations_.isEmpty()) { + postOperations_ = other.postOperations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePostOperationsIsMutable(); + postOperations_.addAll(other.postOperations_); + } + onChanged(); + } + if (other.hasIncrementalTableConfig()) { + mergeIncrementalTableConfig(other.getIncrementalTableConfig()); + } + if (!other.getPartitionExpression().isEmpty()) { + partitionExpression_ = other.partitionExpression_; + onChanged(); + } + if (!other.clusterExpressions_.isEmpty()) { + if (clusterExpressions_.isEmpty()) { + clusterExpressions_ = other.clusterExpressions_; + bitField0_ = (bitField0_ & ~0x00000010); + } 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()); + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + dependencyTargetsBuilder_; + + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder setDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder setDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets(com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getDependencyTargetsBuilder( + int index) { + return getDependencyTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder() { + return getDependencyTargetsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder( + int index) { + return getDependencyTargetsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public java.util.List + getDependencyTargetsBuilderList() { + return getDependencyTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getDependencyTargetsFieldBuilder() { + if (dependencyTargetsBuilder_ == null) { + dependencyTargetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.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; + 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() { + + disabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + relationDescriptorBuilder_; + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * + * @return Whether the relationDescriptor field is set. + */ + public boolean hasRelationDescriptor() { + return relationDescriptorBuilder_ != null || relationDescriptor_ != null; + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * + * @return The relationDescriptor. + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } else { + return relationDescriptorBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relationDescriptor_ = value; + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = builderForValue.build(); + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + public Builder mergeRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (relationDescriptor_ != null) { + relationDescriptor_ = + com.google.cloud.dataform.v1beta1.RelationDescriptor.newBuilder(relationDescriptor_) + .mergeFrom(value) + .buildPartial(); + } else { + relationDescriptor_ = value; + } + onChanged(); + } else { + relationDescriptorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + public Builder clearRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + onChanged(); + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder + getRelationDescriptorBuilder() { + + onChanged(); + return getRelationDescriptorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + if (relationDescriptorBuilder_ != null) { + return relationDescriptorBuilder_.getMessageOrBuilder(); + } else { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } + } + /** + * + * + *
+       * Descriptor for the relation and its columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + getRelationDescriptorFieldBuilder() { + if (relationDescriptorBuilder_ == null) { + relationDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>( + getRelationDescriptor(), getParentForChildren(), isClean()); + relationDescriptor_ = null; + } + return relationDescriptorBuilder_; + } + + private int relationType_ = 0; + /** + * + * + *
+       * The type of this relation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.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; + onChanged(); + return this; + } + /** + * + * + *
+       * The type of this relation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * + * + * @return The relationType. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + getRelationType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType result = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType.valueOf( + relationType_); + return result == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The type of this relation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * + * + * @param value The relationType to set. + * @return This builder for chaining. + */ + public Builder setRelationType( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType value) { + if (value == null) { + throw new NullPointerException(); + } + + relationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The type of this relation.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearRelationType() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList preOperations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePreOperationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + preOperations_ = new com.google.protobuf.LazyStringArrayList(preOperations_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + 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); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList postOperations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePostOperationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + postOperations_ = new com.google.protobuf.LazyStringArrayList(postOperations_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + 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); + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + incrementalTableConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfigOrBuilder> + incrementalTableConfigBuilder_; + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + * + * @return Whether the incrementalTableConfig field is set. + */ + public boolean hasIncrementalTableConfig() { + return incrementalTableConfigBuilder_ != null || incrementalTableConfig_ != null; + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + * + * @return The incrementalTableConfig. + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig + getIncrementalTableConfig() { + if (incrementalTableConfigBuilder_ == null) { + return incrementalTableConfig_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + public Builder setIncrementalTableConfig( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + value) { + if (incrementalTableConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + incrementalTableConfig_ = value; + onChanged(); + } else { + incrementalTableConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + public Builder setIncrementalTableConfig( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + .Builder + builderForValue) { + if (incrementalTableConfigBuilder_ == null) { + incrementalTableConfig_ = builderForValue.build(); + onChanged(); + } else { + incrementalTableConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + public Builder mergeIncrementalTableConfig( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + value) { + if (incrementalTableConfigBuilder_ == null) { + if (incrementalTableConfig_ != null) { + incrementalTableConfig_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.newBuilder(incrementalTableConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + incrementalTableConfig_ = value; + } + onChanged(); + } else { + incrementalTableConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + public Builder clearIncrementalTableConfig() { + if (incrementalTableConfigBuilder_ == null) { + incrementalTableConfig_ = null; + onChanged(); + } else { + incrementalTableConfig_ = null; + incrementalTableConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder + getIncrementalTableConfigBuilder() { + + onChanged(); + return getIncrementalTableConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfigOrBuilder + getIncrementalTableConfigOrBuilder() { + if (incrementalTableConfigBuilder_ != null) { + return incrementalTableConfigBuilder_.getMessageOrBuilder(); + } else { + return incrementalTableConfig_ == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.getDefaultInstance() + : incrementalTableConfig_; + } + } + /** + * + * + *
+       * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
+       * `relation_type` is `INCREMENTAL_TABLE`.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfigOrBuilder> + getIncrementalTableConfigFieldBuilder() { + if (incrementalTableConfigBuilder_ == null) { + incrementalTableConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .IncrementalTableConfig.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList clusterExpressions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureClusterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + clusterExpressions_ = new com.google.protobuf.LazyStringArrayList(clusterExpressions_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + 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); + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * Sets the partition expiration in days.
+       * 
+ * + * int32 partition_expiration_days = 12; + * + * @return This builder for chaining. + */ + public Builder clearPartitionExpirationDays() { + + 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; + 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() { + + 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() { + onChanged(); + ; + if (additionalOptions_ == null) { + additionalOptions_ = + com.google.protobuf.MapField.newMapField( + AdditionalOptionsDefaultEntryHolder.defaultEntry); + } + if (!additionalOptions_.isMutable()) { + additionalOptions_ = additionalOptions_.copy(); + } + 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 java.lang.String getAdditionalOptionsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Relation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OperationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + java.util.List getDependencyTargetsList(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + int getDependencyTargetsCount(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + java.util.List + getDependencyTargetsOrBuilderList(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return The relationDescriptor. + */ + com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor(); + /** + * + * + *
+     * Descriptor for any output relation and its columns. Only set if
+     * `has_output` is true.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations} + */ + public static final class Operations extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Operations(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Operations( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dependencyTargets_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry)); + break; + } + case 16: + { + disabled_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tags_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + queries_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + queries_.add(s); + break; + } + case 40: + { + hasOutput_ = input.readBool(); + break; + } + case 50: + { + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder subBuilder = null; + if (relationDescriptor_ != null) { + subBuilder = relationDescriptor_.toBuilder(); + } + relationDescriptor_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.RelationDescriptor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(relationDescriptor_); + relationDescriptor_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + queries_ = queries_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder.class); + } + + public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1; + private java.util.List dependencyTargets_; + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) { + return dependencyTargets_.get(index); + } + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder( + int index) { + return dependencyTargets_.get(index); + } + + public static final int DISABLED_FIELD_NUMBER = 2; + 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_; + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+     * 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.v1beta1.RelationDescriptor relationDescriptor_; + /** + * + * + *
+     * Descriptor for any output relation and its columns. Only set if
+     * `has_output` is true.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return Whether the relationDescriptor field is set. + */ + @java.lang.Override + public boolean hasRelationDescriptor() { + return relationDescriptor_ != null; + } + /** + * + * + *
+     * Descriptor for any output relation and its columns. Only set if
+     * `has_output` is true.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return The relationDescriptor. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } + /** + * + * + *
+     * Descriptor for any output relation and its columns. Only set if
+     * `has_output` is true.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + return getRelationDescriptor(); + } + + public static final int QUERIES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList queries_; + /** + * + * + *
+     * 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_; + /** + * + * + *
+     * 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 (relationDescriptor_ != null) { + output.writeMessage(6, getRelationDescriptor()); + } + unknownFields.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 (relationDescriptor_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRelationDescriptor()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Operations} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dependencyTargetsBuilder_ == null) { + dependencyTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dependencyTargetsBuilder_.clear(); + } + disabled_ = false; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + hasOutput_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations build() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations result = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(this); + int from_bitField0_ = bitField0_; + if (dependencyTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dependencyTargets_ = dependencyTargets_; + } else { + result.dependencyTargets_ = dependencyTargetsBuilder_.build(); + } + result.disabled_ = disabled_; + if (((bitField0_ & 0x00000002) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tags_ = tags_; + if (relationDescriptorBuilder_ == null) { + result.relationDescriptor_ = relationDescriptor_; + } else { + result.relationDescriptor_ = relationDescriptorBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + queries_ = queries_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.queries_ = queries_; + result.hasOutput_ = hasOutput_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations other) { + if (other + == com.google.cloud.dataform.v1beta1.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_ = (bitField0_ & ~0x00000002); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.hasRelationDescriptor()) { + mergeRelationDescriptor(other.getRelationDescriptor()); + } + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + if (other.getHasOutput() != false) { + setHasOutput(other.getHasOutput()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + dependencyTargetsBuilder_; + + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder setDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder setDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets(com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getDependencyTargetsBuilder( + int index) { + return getDependencyTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder() { + return getDependencyTargetsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder( + int index) { + return getDependencyTargetsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public java.util.List + getDependencyTargetsBuilderList() { + return getDependencyTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getDependencyTargetsFieldBuilder() { + if (dependencyTargetsBuilder_ == null) { + dependencyTargetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.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; + 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() { + + disabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + relationDescriptorBuilder_; + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return Whether the relationDescriptor field is set. + */ + public boolean hasRelationDescriptor() { + return relationDescriptorBuilder_ != null || relationDescriptor_ != null; + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return The relationDescriptor. + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relationDescriptor_ = value; + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = builderForValue.build(); + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder mergeRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (relationDescriptor_ != null) { + relationDescriptor_ = + com.google.cloud.dataform.v1beta1.RelationDescriptor.newBuilder(relationDescriptor_) + .mergeFrom(value) + .buildPartial(); + } else { + relationDescriptor_ = value; + } + onChanged(); + } else { + relationDescriptorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder clearRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + onChanged(); + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder + getRelationDescriptorBuilder() { + + onChanged(); + return getRelationDescriptorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + if (relationDescriptorBuilder_ != null) { + return relationDescriptorBuilder_.getMessageOrBuilder(); + } else { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } + } + /** + * + * + *
+       * Descriptor for any output relation and its columns. Only set if
+       * `has_output` is true.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + getRelationDescriptorFieldBuilder() { + if (relationDescriptorBuilder_ == null) { + relationDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>( + getRelationDescriptor(), getParentForChildren(), isClean()); + relationDescriptor_ = null; + } + return relationDescriptorBuilder_; + } + + private com.google.protobuf.LazyStringList queries_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + queries_ = new com.google.protobuf.LazyStringArrayList(queries_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + 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); + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether these operations produce an output relation.
+       * 
+ * + * bool has_output = 5; + * + * @return This builder for chaining. + */ + public Builder clearHasOutput() { + + 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.v1beta1.CompilationResultAction.Operations) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Operations(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AssertionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + java.util.List getDependencyTargetsList(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + int getDependencyTargetsCount(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + java.util.List + getDependencyTargetsOrBuilderList(); + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(int index); + + /** + * + * + *
+     * The parent action of this assertion. Only set if this assertion was
+     * automatically generated.
+     * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.Target parent_action = 5; + * + * @return The parentAction. + */ + com.google.cloud.dataform.v1beta1.Target getParentAction(); + /** + * + * + *
+     * The parent action of this assertion. Only set if this assertion was
+     * automatically generated.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return The relationDescriptor. + */ + com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor(); + /** + * + * + *
+     * Descriptor for the assertion's automatically-generated view and its
+     * columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder(); + } + /** + * + * + *
+   * Represents an assertion upon a SQL query which is required return zero
+   * rows.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Assertion} + */ + public static final class Assertion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + selectQuery_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Assertion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Assertion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dependencyTargets_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry)); + break; + } + case 16: + { + disabled_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tags_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + selectQuery_ = s; + break; + } + case 42: + { + com.google.cloud.dataform.v1beta1.Target.Builder subBuilder = null; + if (parentAction_ != null) { + subBuilder = parentAction_.toBuilder(); + } + parentAction_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentAction_); + parentAction_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder subBuilder = null; + if (relationDescriptor_ != null) { + subBuilder = relationDescriptor_.toBuilder(); + } + relationDescriptor_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.RelationDescriptor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(relationDescriptor_); + relationDescriptor_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder.class); + } + + public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1; + private java.util.List dependencyTargets_; + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) { + return dependencyTargets_.get(index); + } + /** + * + * + *
+     * A list of actions that this action depends on.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder( + int index) { + return dependencyTargets_.get(index); + } + + public static final int PARENT_ACTION_FIELD_NUMBER = 5; + private com.google.cloud.dataform.v1beta1.Target parentAction_; + /** + * + * + *
+     * The parent action of this assertion. Only set if this assertion was
+     * automatically generated.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + * + * @return Whether the parentAction field is set. + */ + @java.lang.Override + public boolean hasParentAction() { + return parentAction_ != null; + } + /** + * + * + *
+     * The parent action of this assertion. Only set if this assertion was
+     * automatically generated.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + * + * @return The parentAction. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getParentAction() { + return parentAction_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : parentAction_; + } + /** + * + * + *
+     * The parent action of this assertion. Only set if this assertion was
+     * automatically generated.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getParentActionOrBuilder() { + return getParentAction(); + } + + public static final int DISABLED_FIELD_NUMBER = 2; + 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_; + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+     * 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; + 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.v1beta1.RelationDescriptor relationDescriptor_; + /** + * + * + *
+     * Descriptor for the assertion's automatically-generated view and its
+     * columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return Whether the relationDescriptor field is set. + */ + @java.lang.Override + public boolean hasRelationDescriptor() { + return relationDescriptor_ != null; + } + /** + * + * + *
+     * Descriptor for the assertion's automatically-generated view and its
+     * columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return The relationDescriptor. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } + /** + * + * + *
+     * Descriptor for the assertion's automatically-generated view and its
+     * columns.
+     * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + return getRelationDescriptor(); + } + + 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 (parentAction_ != null) { + output.writeMessage(5, getParentAction()); + } + if (relationDescriptor_ != null) { + output.writeMessage(6, getRelationDescriptor()); + } + unknownFields.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 (parentAction_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParentAction()); + } + if (relationDescriptor_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRelationDescriptor()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Assertion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dependencyTargetsBuilder_ == null) { + dependencyTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dependencyTargetsBuilder_.clear(); + } + if (parentActionBuilder_ == null) { + parentAction_ = null; + } else { + parentAction_ = null; + parentActionBuilder_ = null; + } + disabled_ = false; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + selectQuery_ = ""; + + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion build() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion result = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(this); + int from_bitField0_ = bitField0_; + if (dependencyTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dependencyTargets_ = dependencyTargets_; + } else { + result.dependencyTargets_ = dependencyTargetsBuilder_.build(); + } + if (parentActionBuilder_ == null) { + result.parentAction_ = parentAction_; + } else { + result.parentAction_ = parentActionBuilder_.build(); + } + result.disabled_ = disabled_; + if (((bitField0_ & 0x00000002) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tags_ = tags_; + result.selectQuery_ = selectQuery_; + if (relationDescriptorBuilder_ == null) { + result.relationDescriptor_ = relationDescriptor_; + } else { + result.relationDescriptor_ = relationDescriptorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion other) { + if (other + == com.google.cloud.dataform.v1beta1.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_ = (bitField0_ & ~0x00000002); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (!other.getSelectQuery().isEmpty()) { + selectQuery_ = other.selectQuery_; + onChanged(); + } + if (other.hasRelationDescriptor()) { + mergeRelationDescriptor(other.getRelationDescriptor()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + dependencyTargetsBuilder_; + + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder setDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder setDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets(com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + com.google.cloud.dataform.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public Builder addDependencyTargets( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getDependencyTargetsBuilder( + int index) { + return getDependencyTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder() { + return getDependencyTargetsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder( + int index) { + return getDependencyTargetsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * A list of actions that this action depends on.
+       * 
+ * + * repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + public java.util.List + getDependencyTargetsBuilderList() { + return getDependencyTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getDependencyTargetsFieldBuilder() { + if (dependencyTargetsBuilder_ == null) { + dependencyTargetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder>( + dependencyTargets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dependencyTargets_ = null; + } + return dependencyTargetsBuilder_; + } + + private com.google.cloud.dataform.v1beta1.Target parentAction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + parentActionBuilder_; + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + * + * @return Whether the parentAction field is set. + */ + public boolean hasParentAction() { + return parentActionBuilder_ != null || parentAction_ != null; + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + * + * @return The parentAction. + */ + public com.google.cloud.dataform.v1beta1.Target getParentAction() { + if (parentActionBuilder_ == null) { + return parentAction_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : parentAction_; + } else { + return parentActionBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + public Builder setParentAction(com.google.cloud.dataform.v1beta1.Target value) { + if (parentActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentAction_ = value; + onChanged(); + } else { + parentActionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + public Builder setParentAction( + com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (parentActionBuilder_ == null) { + parentAction_ = builderForValue.build(); + onChanged(); + } else { + parentActionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + public Builder mergeParentAction(com.google.cloud.dataform.v1beta1.Target value) { + if (parentActionBuilder_ == null) { + if (parentAction_ != null) { + parentAction_ = + com.google.cloud.dataform.v1beta1.Target.newBuilder(parentAction_) + .mergeFrom(value) + .buildPartial(); + } else { + parentAction_ = value; + } + onChanged(); + } else { + parentActionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + public Builder clearParentAction() { + if (parentActionBuilder_ == null) { + parentAction_ = null; + onChanged(); + } else { + parentAction_ = null; + parentActionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getParentActionBuilder() { + + onChanged(); + return getParentActionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getParentActionOrBuilder() { + if (parentActionBuilder_ != null) { + return parentActionBuilder_.getMessageOrBuilder(); + } else { + return parentAction_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : parentAction_; + } + } + /** + * + * + *
+       * The parent action of this assertion. Only set if this assertion was
+       * automatically generated.
+       * 
+ * + * .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getParentActionFieldBuilder() { + if (parentActionBuilder_ == null) { + parentActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.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; + 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() { + + disabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + relationDescriptorBuilder_; + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return Whether the relationDescriptor field is set. + */ + public boolean hasRelationDescriptor() { + return relationDescriptorBuilder_ != null || relationDescriptor_ != null; + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * + * @return The relationDescriptor. + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } else { + return relationDescriptorBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relationDescriptor_ = value; + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = builderForValue.build(); + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder mergeRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (relationDescriptor_ != null) { + relationDescriptor_ = + com.google.cloud.dataform.v1beta1.RelationDescriptor.newBuilder(relationDescriptor_) + .mergeFrom(value) + .buildPartial(); + } else { + relationDescriptor_ = value; + } + onChanged(); + } else { + relationDescriptorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public Builder clearRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + onChanged(); + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder + getRelationDescriptorBuilder() { + + onChanged(); + return getRelationDescriptorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + if (relationDescriptorBuilder_ != null) { + return relationDescriptorBuilder_.getMessageOrBuilder(); + } else { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance() + : relationDescriptor_; + } + } + /** + * + * + *
+       * Descriptor for the assertion's automatically-generated view and its
+       * columns.
+       * 
+ * + * .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + getRelationDescriptorFieldBuilder() { + if (relationDescriptorBuilder_ == null) { + relationDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Assertion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeclarationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + * + * @return The relationDescriptor. + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration} + */ + public static final class Declaration extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Declaration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder subBuilder = null; + if (relationDescriptor_ != null) { + subBuilder = relationDescriptor_.toBuilder(); + } + relationDescriptor_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.RelationDescriptor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(relationDescriptor_); + relationDescriptor_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder.class); + } + + public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 1; + private com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + * + * @return Whether the relationDescriptor field is set. + */ + @java.lang.Override + public boolean hasRelationDescriptor() { + return relationDescriptor_ != null; + } + /** + * + * + *
+     * 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.v1beta1.RelationDescriptor relation_descriptor = 1; + * + * @return The relationDescriptor. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + return getRelationDescriptor(); + } + + 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 (relationDescriptor_ != null) { + output.writeMessage(1, getRelationDescriptor()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (relationDescriptor_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationDescriptor()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration other = + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) obj; + + if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false; + if (hasRelationDescriptor()) { + if (!getRelationDescriptor().equals(other.getRelationDescriptor())) return false; + } + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Declaration} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration build() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration result = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(this); + if (relationDescriptorBuilder_ == null) { + result.relationDescriptor_ = relationDescriptor_; + } else { + result.relationDescriptor_ = relationDescriptorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration other) { + if (other + == com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance()) return this; + if (other.hasRelationDescriptor()) { + mergeRelationDescriptor(other.getRelationDescriptor()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + * + * @return Whether the relationDescriptor field is set. + */ + public boolean hasRelationDescriptor() { + return relationDescriptorBuilder_ != null || relationDescriptor_ != null; + } + /** + * + * + *
+       * 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.v1beta1.RelationDescriptor relation_descriptor = 1; + * + * @return The relationDescriptor. + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relationDescriptor_ = value; + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(value); + } + + 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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + public Builder setRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = builderForValue.build(); + onChanged(); + } else { + relationDescriptorBuilder_.setMessage(builderForValue.build()); + } + + 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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + public Builder mergeRelationDescriptor( + com.google.cloud.dataform.v1beta1.RelationDescriptor value) { + if (relationDescriptorBuilder_ == null) { + if (relationDescriptor_ != null) { + relationDescriptor_ = + com.google.cloud.dataform.v1beta1.RelationDescriptor.newBuilder(relationDescriptor_) + .mergeFrom(value) + .buildPartial(); + } else { + relationDescriptor_ = value; + } + onChanged(); + } else { + relationDescriptorBuilder_.mergeFrom(value); + } + + 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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + public Builder clearRelationDescriptor() { + if (relationDescriptorBuilder_ == null) { + relationDescriptor_ = null; + onChanged(); + } else { + relationDescriptor_ = null; + relationDescriptorBuilder_ = null; + } + + 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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder + getRelationDescriptorBuilder() { + + 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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder + getRelationDescriptorOrBuilder() { + if (relationDescriptorBuilder_ != null) { + return relationDescriptorBuilder_.getMessageOrBuilder(); + } else { + return relationDescriptor_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder> + getRelationDescriptorFieldBuilder() { + if (relationDescriptorBuilder_ == null) { + relationDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Declaration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int compiledObjectCase_ = 0; + 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.v1beta1.Target target_; + /** + * + * + *
+   * This action's identifier. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + * + * @return Whether the target field is set. + */ + @java.lang.Override + public boolean hasTarget() { + return target_ != null; + } + /** + * + * + *
+   * This action's identifier. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + * + * @return The target. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getTarget() { + return target_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : target_; + } + /** + * + * + *
+   * This action's identifier. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { + return getTarget(); + } + + public static final int CANONICAL_TARGET_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.Target canonicalTarget_; + /** + * + * + *
+   * The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + * + * @return Whether the canonicalTarget field is set. + */ + @java.lang.Override + public boolean hasCanonicalTarget() { + return canonicalTarget_ != null; + } + /** + * + * + *
+   * The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + * + * @return The canonicalTarget. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() { + return canonicalTarget_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() { + return getCanonicalTarget(); + } + + public static final int FILE_PATH_FIELD_NUMBER = 3; + 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.v1beta1.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.v1beta1.CompilationResultAction.Relation relation = 4; + * + * @return The relation. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation getRelation() { + if (compiledObjectCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.getDefaultInstance(); + } + /** + * + * + *
+   * The database relation created/updated by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder + getRelationOrBuilder() { + if (compiledObjectCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.getDefaultInstance(); + } + + public static final int OPERATIONS_FIELD_NUMBER = 5; + /** + * + * + *
+   * The database operations executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations operations = 5; + * + * @return The operations. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations getOperations() { + if (compiledObjectCase_ == 5) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } + /** + * + * + *
+   * The database operations executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder + getOperationsOrBuilder() { + if (compiledObjectCase_ == 5) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } + + public static final int ASSERTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * The assertion executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion assertion = 6; + * + * @return The assertion. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion getAssertion() { + if (compiledObjectCase_ == 6) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.getDefaultInstance(); + } + /** + * + * + *
+   * The assertion executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder + getAssertionOrBuilder() { + if (compiledObjectCase_ == 6) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.getDefaultInstance(); + } + + public static final int DECLARATION_FIELD_NUMBER = 7; + /** + * + * + *
+   * The declaration declared by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + * + * @return The declaration. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration getDeclaration() { + if (compiledObjectCase_ == 7) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance(); + } + /** + * + * + *
+   * The declaration declared by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder + getDeclarationOrBuilder() { + if (compiledObjectCase_ == 7) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.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 (target_ != null) { + output.writeMessage(1, getTarget()); + } + if (canonicalTarget_ != null) { + 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.v1beta1.CompilationResultAction.Relation) compiledObject_); + } + if (compiledObjectCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) compiledObject_); + } + if (compiledObjectCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) compiledObject_); + } + if (compiledObjectCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) compiledObject_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (target_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTarget()); + } + if (canonicalTarget_ != null) { + 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.v1beta1.CompilationResultAction.Relation) compiledObject_); + } + if (compiledObjectCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + compiledObject_); + } + if (compiledObjectCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + compiledObject_); + } + if (compiledObjectCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CompilationResultAction other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CompilationResultAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction) + com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CompilationResultAction.class, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (targetBuilder_ == null) { + target_ = null; + } else { + target_ = null; + targetBuilder_ = null; + } + if (canonicalTargetBuilder_ == null) { + canonicalTarget_ = null; + } else { + canonicalTarget_ = null; + canonicalTargetBuilder_ = null; + } + filePath_ = ""; + + compiledObjectCase_ = 0; + compiledObject_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction build() { + com.google.cloud.dataform.v1beta1.CompilationResultAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction buildPartial() { + com.google.cloud.dataform.v1beta1.CompilationResultAction result = + new com.google.cloud.dataform.v1beta1.CompilationResultAction(this); + if (targetBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = targetBuilder_.build(); + } + if (canonicalTargetBuilder_ == null) { + result.canonicalTarget_ = canonicalTarget_; + } else { + result.canonicalTarget_ = canonicalTargetBuilder_.build(); + } + result.filePath_ = filePath_; + if (compiledObjectCase_ == 4) { + if (relationBuilder_ == null) { + result.compiledObject_ = compiledObject_; + } else { + result.compiledObject_ = relationBuilder_.build(); + } + } + if (compiledObjectCase_ == 5) { + if (operationsBuilder_ == null) { + result.compiledObject_ = compiledObject_; + } else { + result.compiledObject_ = operationsBuilder_.build(); + } + } + if (compiledObjectCase_ == 6) { + if (assertionBuilder_ == null) { + result.compiledObject_ = compiledObject_; + } else { + result.compiledObject_ = assertionBuilder_.build(); + } + } + if (compiledObjectCase_ == 7) { + if (declarationBuilder_ == null) { + result.compiledObject_ = compiledObject_; + } else { + result.compiledObject_ = declarationBuilder_.build(); + } + } + result.compiledObjectCase_ = compiledObjectCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CompilationResultAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResultAction other) { + if (other == com.google.cloud.dataform.v1beta1.CompilationResultAction.getDefaultInstance()) + return this; + if (other.hasTarget()) { + mergeTarget(other.getTarget()); + } + if (other.hasCanonicalTarget()) { + mergeCanonicalTarget(other.getCanonicalTarget()); + } + if (!other.getFilePath().isEmpty()) { + filePath_ = other.filePath_; + 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.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CompilationResultAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CompilationResultAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 com.google.cloud.dataform.v1beta1.Target target_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + targetBuilder_; + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + * + * @return Whether the target field is set. + */ + public boolean hasTarget() { + return targetBuilder_ != null || target_ != null; + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + * + * @return The target. + */ + public com.google.cloud.dataform.v1beta1.Target getTarget() { + if (targetBuilder_ == null) { + return target_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : target_; + } else { + return targetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + public Builder setTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (targetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + targetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + public Builder setTarget(com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (targetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + targetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + public Builder mergeTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (targetBuilder_ == null) { + if (target_ != null) { + target_ = + com.google.cloud.dataform.v1beta1.Target.newBuilder(target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + targetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + public Builder clearTarget() { + if (targetBuilder_ == null) { + target_ = null; + onChanged(); + } else { + target_ = null; + targetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getTargetBuilder() { + + onChanged(); + return getTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { + if (targetBuilder_ != null) { + return targetBuilder_.getMessageOrBuilder(); + } else { + return target_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : target_; + } + } + /** + * + * + *
+     * This action's identifier. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getTargetFieldBuilder() { + if (targetBuilder_ == null) { + targetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder>( + getTarget(), getParentForChildren(), isClean()); + target_ = null; + } + return targetBuilder_; + } + + private com.google.cloud.dataform.v1beta1.Target canonicalTarget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + canonicalTargetBuilder_; + /** + * + * + *
+     * The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + * + * @return Whether the canonicalTarget field is set. + */ + public boolean hasCanonicalTarget() { + return canonicalTargetBuilder_ != null || canonicalTarget_ != null; + } + /** + * + * + *
+     * The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + * + * @return The canonicalTarget. + */ + public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() { + if (canonicalTargetBuilder_ == null) { + return canonicalTarget_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2; + */ + public Builder setCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (canonicalTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + canonicalTarget_ = value; + onChanged(); + } else { + canonicalTargetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + */ + public Builder setCanonicalTarget( + com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (canonicalTargetBuilder_ == null) { + canonicalTarget_ = builderForValue.build(); + onChanged(); + } else { + canonicalTargetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + */ + public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (canonicalTargetBuilder_ == null) { + if (canonicalTarget_ != null) { + canonicalTarget_ = + com.google.cloud.dataform.v1beta1.Target.newBuilder(canonicalTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + canonicalTarget_ = value; + } + onChanged(); + } else { + canonicalTargetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + */ + public Builder clearCanonicalTarget() { + if (canonicalTargetBuilder_ == null) { + canonicalTarget_ = null; + onChanged(); + } else { + canonicalTarget_ = null; + canonicalTargetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getCanonicalTargetBuilder() { + + 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.v1beta1.Target canonical_target = 2; + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() { + if (canonicalTargetBuilder_ != null) { + return canonicalTargetBuilder_.getMessageOrBuilder(); + } else { + return canonicalTarget_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getCanonicalTargetFieldBuilder() { + if (canonicalTargetBuilder_ == null) { + canonicalTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder> + relationBuilder_; + /** + * + * + *
+     * The database relation created/updated by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation relation = 4; + * + * @return The relation. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation getRelation() { + if (relationBuilder_ == null) { + if (compiledObjectCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .getDefaultInstance(); + } else { + if (compiledObjectCase_ == 4) { + return relationBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The database relation created/updated by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + */ + public Builder setRelation( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation relation = 4; + */ + public Builder setRelation( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation relation = 4; + */ + public Builder mergeRelation( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation value) { + if (relationBuilder_ == null) { + if (compiledObjectCase_ == 4 + && compiledObject_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .getDefaultInstance()) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.newBuilder( + (com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Relation relation = 4; + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder + getRelationBuilder() { + return getRelationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The database relation created/updated by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder + getRelationOrBuilder() { + if ((compiledObjectCase_ == 4) && (relationBuilder_ != null)) { + return relationBuilder_.getMessageOrBuilder(); + } else { + if (compiledObjectCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The database relation created/updated by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder> + getRelationFieldBuilder() { + if (relationBuilder_ == null) { + if (!(compiledObjectCase_ == 4)) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation + .getDefaultInstance(); + } + relationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder>( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) + compiledObject_, + getParentForChildren(), + isClean()); + compiledObject_ = null; + } + compiledObjectCase_ = 4; + onChanged(); + ; + return relationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder> + operationsBuilder_; + /** + * + * + *
+     * The database operations executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations operations = 5; + * + * + * @return The operations. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations getOperations() { + if (operationsBuilder_ == null) { + if (compiledObjectCase_ == 5) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } else { + if (compiledObjectCase_ == 5) { + return operationsBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The database operations executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * + */ + public Builder setOperations( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations operations = 5; + * + */ + public Builder setOperations( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Operations operations = 5; + * + */ + public Builder mergeOperations( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations value) { + if (operationsBuilder_ == null) { + if (compiledObjectCase_ == 5 + && compiledObject_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance()) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.newBuilder( + (com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Operations operations = 5; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder + getOperationsBuilder() { + return getOperationsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The database operations executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder + getOperationsOrBuilder() { + if ((compiledObjectCase_ == 5) && (operationsBuilder_ != null)) { + return operationsBuilder_.getMessageOrBuilder(); + } else { + if (compiledObjectCase_ == 5) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The database operations executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + if (!(compiledObjectCase_ == 5)) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations + .getDefaultInstance(); + } + operationsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder>( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) + compiledObject_, + getParentForChildren(), + isClean()); + compiledObject_ = null; + } + compiledObjectCase_ = 5; + onChanged(); + ; + return operationsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder> + assertionBuilder_; + /** + * + * + *
+     * The assertion executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion assertion = 6; + * + * @return The assertion. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion getAssertion() { + if (assertionBuilder_ == null) { + if (compiledObjectCase_ == 6) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + .getDefaultInstance(); + } else { + if (compiledObjectCase_ == 6) { + return assertionBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The assertion executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + public Builder setAssertion( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + public Builder setAssertion( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + public Builder mergeAssertion( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion value) { + if (assertionBuilder_ == null) { + if (compiledObjectCase_ == 6 + && compiledObject_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + .getDefaultInstance()) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.newBuilder( + (com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder + getAssertionBuilder() { + return getAssertionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The assertion executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder + getAssertionOrBuilder() { + if ((compiledObjectCase_ == 6) && (assertionBuilder_ != null)) { + return assertionBuilder_.getMessageOrBuilder(); + } else { + if (compiledObjectCase_ == 6) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The assertion executed by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder> + getAssertionFieldBuilder() { + if (assertionBuilder_ == null) { + if (!(compiledObjectCase_ == 6)) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + .getDefaultInstance(); + } + assertionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder>( + (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) + compiledObject_, + getParentForChildren(), + isClean()); + compiledObject_ = null; + } + compiledObjectCase_ = 6; + onChanged(); + ; + return assertionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder> + declarationBuilder_; + /** + * + * + *
+     * The declaration declared by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + * + * @return The declaration. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration getDeclaration() { + if (declarationBuilder_ == null) { + if (compiledObjectCase_ == 7) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance(); + } else { + if (compiledObjectCase_ == 7) { + return declarationBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The declaration declared by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + public Builder setDeclaration( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + public Builder setDeclaration( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + public Builder mergeDeclaration( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration value) { + if (declarationBuilder_ == null) { + if (compiledObjectCase_ == 7 + && compiledObject_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance()) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.newBuilder( + (com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder + getDeclarationBuilder() { + return getDeclarationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The declaration declared by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder + getDeclarationOrBuilder() { + if ((compiledObjectCase_ == 7) && (declarationBuilder_ != null)) { + return declarationBuilder_.getMessageOrBuilder(); + } else { + if (compiledObjectCase_ == 7) { + return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) + compiledObject_; + } + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The declaration declared by this action.
+     * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder> + getDeclarationFieldBuilder() { + if (declarationBuilder_ == null) { + if (!(compiledObjectCase_ == 7)) { + compiledObject_ = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + .getDefaultInstance(); + } + declarationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder>( + (com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction) + private static final com.google.cloud.dataform.v1beta1.CompilationResultAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CompilationResultAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultActionOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultActionOrBuilder.java new file mode 100644 index 0000000..e45d948 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultActionOrBuilder.java @@ -0,0 +1,275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CompilationResultActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This action's identifier. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + * + * @return Whether the target field is set. + */ + boolean hasTarget(); + /** + * + * + *
+   * This action's identifier. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + * + * @return The target. + */ + com.google.cloud.dataform.v1beta1.Target getTarget(); + /** + * + * + *
+   * This action's identifier. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target target = 1; + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder(); + + /** + * + * + *
+   * The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2; + * + * @return The canonicalTarget. + */ + com.google.cloud.dataform.v1beta1.Target getCanonicalTarget(); + /** + * + * + *
+   * The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2; + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction.Relation relation = 4; + * + * @return Whether the relation field is set. + */ + boolean hasRelation(); + /** + * + * + *
+   * The database relation created/updated by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + * + * @return The relation. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation getRelation(); + /** + * + * + *
+   * The database relation created/updated by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder + getRelationOrBuilder(); + + /** + * + * + *
+   * The database operations executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * + * @return Whether the operations field is set. + */ + boolean hasOperations(); + /** + * + * + *
+   * The database operations executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * + * @return The operations. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations getOperations(); + /** + * + * + *
+   * The database operations executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder + getOperationsOrBuilder(); + + /** + * + * + *
+   * The assertion executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + * + * @return Whether the assertion field is set. + */ + boolean hasAssertion(); + /** + * + * + *
+   * The assertion executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + * + * @return The assertion. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion getAssertion(); + /** + * + * + *
+   * The assertion executed by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder + getAssertionOrBuilder(); + + /** + * + * + *
+   * The declaration declared by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + * + * @return Whether the declaration field is set. + */ + boolean hasDeclaration(); + /** + * + * + *
+   * The declaration declared by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + * + * @return The declaration. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration getDeclaration(); + /** + * + * + *
+   * The declaration declared by this action.
+   * 
+ * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder + getDeclarationOrBuilder(); + + public com.google.cloud.dataform.v1beta1.CompilationResultAction.CompiledObjectCase + getCompiledObjectCase(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java new file mode 100644 index 0000000..a6a4b4f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class 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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java new file mode 100644 index 0000000..597f51b --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java @@ -0,0 +1,287 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CompilationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The codeCompilationConfig. + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError getCompilationErrors( + int index); + /** + * + * + *
+   * Output only. Errors encountered during project compilation.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCompilationErrorsCount(); + /** + * + * + *
+   * Output only. Errors encountered during project compilation.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder> + getCompilationErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. Errors encountered during project compilation.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorOrBuilder + getCompilationErrorsOrBuilder(int index); + + public com.google.cloud.dataform.v1beta1.CompilationResult.SourceCase getSourceCase(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java new file mode 100644 index 0000000..f15d0f3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CreateCompilationResult` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateCompilationResultRequest} + */ +public final class CreateCompilationResultRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCompilationResultRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.CompilationResult.Builder subBuilder = null; + if (compilationResult_ != null) { + subBuilder = compilationResult_.toBuilder(); + } + compilationResult_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResult.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compilationResult_); + compilationResult_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.class, + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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.v1beta1.CompilationResult compilationResult_; + /** + * + * + *
+   * Required. The compilation result to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the compilationResult field is set. + */ + @java.lang.Override + public boolean hasCompilationResult() { + return compilationResult_ != null; + } + /** + * + * + *
+   * Required. The compilation result to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The compilationResult. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult() { + return compilationResult_ == null + ? com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance() + : compilationResult_; + } + /** + * + * + *
+   * Required. The compilation result to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder + getCompilationResultOrBuilder() { + return getCompilationResult(); + } + + 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 (compilationResult_ != null) { + output.writeMessage(2, getCompilationResult()); + } + unknownFields.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 (compilationResult_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCompilationResult()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateCompilationResultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateCompilationResultRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateCompilationResultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateCompilationResultRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CreateCompilationResultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateCompilationResultRequest) + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.class, + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (compilationResultBuilder_ == null) { + compilationResult_ = null; + } else { + compilationResult_ = null; + compilationResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest build() { + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest result = + new com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest(this); + result.parent_ = parent_; + if (compilationResultBuilder_ == null) { + result.compilationResult_ = compilationResult_; + } else { + result.compilationResult_ = compilationResultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCompilationResult()) { + mergeCompilationResult(other.getCompilationResult()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CompilationResult compilationResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder> + compilationResultBuilder_; + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the compilationResult field is set. + */ + public boolean hasCompilationResult() { + return compilationResultBuilder_ != null || compilationResult_ != null; + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The compilationResult. + */ + public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult() { + if (compilationResultBuilder_ == null) { + return compilationResult_ == null + ? com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance() + : compilationResult_; + } else { + return compilationResultBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCompilationResult(com.google.cloud.dataform.v1beta1.CompilationResult value) { + if (compilationResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compilationResult_ = value; + onChanged(); + } else { + compilationResultBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCompilationResult( + com.google.cloud.dataform.v1beta1.CompilationResult.Builder builderForValue) { + if (compilationResultBuilder_ == null) { + compilationResult_ = builderForValue.build(); + onChanged(); + } else { + compilationResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCompilationResult( + com.google.cloud.dataform.v1beta1.CompilationResult value) { + if (compilationResultBuilder_ == null) { + if (compilationResult_ != null) { + compilationResult_ = + com.google.cloud.dataform.v1beta1.CompilationResult.newBuilder(compilationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + compilationResult_ = value; + } + onChanged(); + } else { + compilationResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCompilationResult() { + if (compilationResultBuilder_ == null) { + compilationResult_ = null; + onChanged(); + } else { + compilationResult_ = null; + compilationResultBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.Builder + getCompilationResultBuilder() { + + onChanged(); + return getCompilationResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder + getCompilationResultOrBuilder() { + if (compilationResultBuilder_ != null) { + return compilationResultBuilder_.getMessageOrBuilder(); + } else { + return compilationResult_ == null + ? com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance() + : compilationResult_; + } + } + /** + * + * + *
+     * Required. The compilation result to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder> + getCompilationResultFieldBuilder() { + if (compilationResultBuilder_ == null) { + compilationResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.CreateCompilationResultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateCompilationResultRequest) + private static final com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CreateCompilationResultRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java new file mode 100644 index 0000000..2f3ea53 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateCompilationResultRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CreateCompilationResultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The compilationResult. + */ + com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResult(); + /** + * + * + *
+   * Required. The compilation result to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder getCompilationResultOrBuilder(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java new file mode 100644 index 0000000..37942d1 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequest.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CreateRepository` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateRepositoryRequest} + */ +public final class CreateRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateRepositoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.Repository.Builder subBuilder = null; + if (repository_ != null) { + subBuilder = repository_.toBuilder(); + } + repository_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Repository.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(repository_); + repository_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + repositoryId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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.v1beta1.Repository repository_; + /** + * + * + *
+   * Required. The repository to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return repository_ != null; + } + /** + * + * + *
+   * Required. The repository to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + return repository_ == null + ? com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance() + : repository_; + } + /** + * + * + *
+   * Required. The repository to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + return getRepository(); + } + + public static final int REPOSITORY_ID_FIELD_NUMBER = 3; + 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 (repository_ != null) { + output.writeMessage(2, getRepository()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, repositoryId_); + } + unknownFields.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 (repository_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRepository()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, repositoryId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CreateRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateRepositoryRequest) + com.google.cloud.dataform.v1beta1.CreateRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (repositoryBuilder_ == null) { + repository_ = null; + } else { + repository_ = null; + repositoryBuilder_ = null; + } + repositoryId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateRepositoryRequest build() { + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest result = + new com.google.cloud.dataform.v1beta1.CreateRepositoryRequest(this); + result.parent_ = parent_; + if (repositoryBuilder_ == null) { + result.repository_ = repository_; + } else { + result.repository_ = repositoryBuilder_.build(); + } + result.repositoryId_ = repositoryId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.CreateRepositoryRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasRepository()) { + mergeRepository(other.getRepository()); + } + if (!other.getRepositoryId().isEmpty()) { + repositoryId_ = other.repositoryId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CreateRepositoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CreateRepositoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.Repository repository_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + repositoryBuilder_; + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the repository field is set. + */ + public boolean hasRepository() { + return repositoryBuilder_ != null || repository_ != null; + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The repository. + */ + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (repositoryBuilder_ == null) { + return repository_ == null + ? com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance() + : repository_; + } else { + return repositoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRepository( + com.google.cloud.dataform.v1beta1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + repository_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (repository_ != null) { + repository_ = + com.google.cloud.dataform.v1beta1.Repository.newBuilder(repository_) + .mergeFrom(value) + .buildPartial(); + } else { + repository_ = value; + } + onChanged(); + } else { + repositoryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + repository_ = null; + onChanged(); + } else { + repository_ = null; + repositoryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder getRepositoryBuilder() { + + onChanged(); + return getRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (repositoryBuilder_ != null) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + return repository_ == null + ? com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance() + : repository_; + } + } + /** + * + * + *
+     * Required. The repository to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + getRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateRepositoryRequest) + private static final com.google.cloud.dataform.v1beta1.CreateRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CreateRepositoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java new file mode 100644 index 0000000..9e8089c --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateRepositoryRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CreateRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The repository. + */ + com.google.cloud.dataform.v1beta1.Repository getRepository(); + /** + * + * + *
+   * Required. The repository to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java new file mode 100644 index 0000000..23345c4 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CreateWorkflowInvocation` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest} + */ +public final class CreateWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateWorkflowInvocationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder subBuilder = null; + if (workflowInvocation_ != null) { + subBuilder = workflowInvocation_.toBuilder(); + } + workflowInvocation_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowInvocation_); + workflowInvocation_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The repository in which to create the workflow invocation. Must be in the
+   * format `projects/*/locations/*/repositories/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The repository in which to create the workflow invocation. Must be in the
+   * format `projects/*/locations/*/repositories/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_INVOCATION_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.WorkflowInvocation workflowInvocation_; + /** + * + * + *
+   * Required. The workflow invocation resource to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowInvocation field is set. + */ + @java.lang.Override + public boolean hasWorkflowInvocation() { + return workflowInvocation_ != null; + } + /** + * + * + *
+   * Required. The workflow invocation resource to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowInvocation. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation() { + return workflowInvocation_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance() + : workflowInvocation_; + } + /** + * + * + *
+   * Required. The workflow invocation resource to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder + getWorkflowInvocationOrBuilder() { + return getWorkflowInvocation(); + } + + 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 (workflowInvocation_ != null) { + output.writeMessage(2, getWorkflowInvocation()); + } + unknownFields.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 (workflowInvocation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflowInvocation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (workflowInvocationBuilder_ == null) { + workflowInvocation_ = null; + } else { + workflowInvocation_ = null; + workflowInvocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest build() { + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest result = + new com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest(this); + result.parent_ = parent_; + if (workflowInvocationBuilder_ == null) { + result.workflowInvocation_ = workflowInvocation_; + } else { + result.workflowInvocation_ = workflowInvocationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasWorkflowInvocation()) { + mergeWorkflowInvocation(other.getWorkflowInvocation()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The repository in which to create the workflow invocation. Must be in the
+     * format `projects/*/locations/*/repositories/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The repository in which to create the workflow invocation. Must be in the
+     * format `projects/*/locations/*/repositories/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The repository in which to create the workflow invocation. 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository in which to create the workflow invocation. Must be in the
+     * format `projects/*/locations/*/repositories/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The repository in which to create the workflow invocation. Must be in the
+     * format `projects/*/locations/*/repositories/*`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.WorkflowInvocation workflowInvocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder> + workflowInvocationBuilder_; + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workflowInvocation field is set. + */ + public boolean hasWorkflowInvocation() { + return workflowInvocationBuilder_ != null || workflowInvocation_ != null; + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowInvocation. + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation() { + if (workflowInvocationBuilder_ == null) { + return workflowInvocation_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance() + : workflowInvocation_; + } else { + return workflowInvocationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkflowInvocation( + com.google.cloud.dataform.v1beta1.WorkflowInvocation value) { + if (workflowInvocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowInvocation_ = value; + onChanged(); + } else { + workflowInvocationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkflowInvocation( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder builderForValue) { + if (workflowInvocationBuilder_ == null) { + workflowInvocation_ = builderForValue.build(); + onChanged(); + } else { + workflowInvocationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWorkflowInvocation( + com.google.cloud.dataform.v1beta1.WorkflowInvocation value) { + if (workflowInvocationBuilder_ == null) { + if (workflowInvocation_ != null) { + workflowInvocation_ = + com.google.cloud.dataform.v1beta1.WorkflowInvocation.newBuilder(workflowInvocation_) + .mergeFrom(value) + .buildPartial(); + } else { + workflowInvocation_ = value; + } + onChanged(); + } else { + workflowInvocationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWorkflowInvocation() { + if (workflowInvocationBuilder_ == null) { + workflowInvocation_ = null; + onChanged(); + } else { + workflowInvocation_ = null; + workflowInvocationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder + getWorkflowInvocationBuilder() { + + onChanged(); + return getWorkflowInvocationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder + getWorkflowInvocationOrBuilder() { + if (workflowInvocationBuilder_ != null) { + return workflowInvocationBuilder_.getMessageOrBuilder(); + } else { + return workflowInvocation_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance() + : workflowInvocation_; + } + } + /** + * + * + *
+     * Required. The workflow invocation resource to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder> + getWorkflowInvocationFieldBuilder() { + if (workflowInvocationBuilder_ == null) { + workflowInvocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkflowInvocationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) + private static final com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CreateWorkflowInvocationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java new file mode 100644 index 0000000..8eae163 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkflowInvocationRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CreateWorkflowInvocationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The repository in which to create the workflow invocation. Must be in the
+   * format `projects/*/locations/*/repositories/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The repository in which to create the workflow invocation. Must be in the
+   * format `projects/*/locations/*/repositories/*`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The workflow invocation resource to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workflowInvocation. + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation(); + /** + * + * + *
+   * Required. The workflow invocation resource to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder getWorkflowInvocationOrBuilder(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java new file mode 100644 index 0000000..abf3fbe --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequest.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `CreateWorkspace` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkspaceRequest} + */ +public final class CreateWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateWorkspaceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.Workspace.Builder subBuilder = null; + if (workspace_ != null) { + subBuilder = workspace_.toBuilder(); + } + workspace_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Workspace.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workspace_); + workspace_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + workspaceId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.class, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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.v1beta1.Workspace workspace_; + /** + * + * + *
+   * Required. The workspace to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workspace field is set. + */ + @java.lang.Override + public boolean hasWorkspace() { + return workspace_ != null; + } + /** + * + * + *
+   * Required. The workspace to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workspace. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Workspace getWorkspace() { + return workspace_ == null + ? com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance() + : workspace_; + } + /** + * + * + *
+   * Required. The workspace to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder getWorkspaceOrBuilder() { + return getWorkspace(); + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 3; + 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 (workspace_ != null) { + output.writeMessage(2, getWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workspaceId_); + } + unknownFields.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 (workspace_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workspaceId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.CreateWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CreateWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateWorkspaceRequest) + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.class, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (workspaceBuilder_ == null) { + workspace_ = null; + } else { + workspace_ = null; + workspaceBuilder_ = null; + } + workspaceId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest build() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest result = + new com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest(this); + result.parent_ = parent_; + if (workspaceBuilder_ == null) { + result.workspace_ = workspace_; + } else { + result.workspace_ = workspaceBuilder_.build(); + } + result.workspaceId_ = workspaceId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest other) { + if (other == com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasWorkspace()) { + mergeWorkspace(other.getWorkspace()); + } + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.Workspace workspace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Workspace, + com.google.cloud.dataform.v1beta1.Workspace.Builder, + com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder> + workspaceBuilder_; + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the workspace field is set. + */ + public boolean hasWorkspace() { + return workspaceBuilder_ != null || workspace_ != null; + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workspace. + */ + public com.google.cloud.dataform.v1beta1.Workspace getWorkspace() { + if (workspaceBuilder_ == null) { + return workspace_ == null + ? com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance() + : workspace_; + } else { + return workspaceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkspace(com.google.cloud.dataform.v1beta1.Workspace value) { + if (workspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workspace_ = value; + onChanged(); + } else { + workspaceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWorkspace( + com.google.cloud.dataform.v1beta1.Workspace.Builder builderForValue) { + if (workspaceBuilder_ == null) { + workspace_ = builderForValue.build(); + onChanged(); + } else { + workspaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWorkspace(com.google.cloud.dataform.v1beta1.Workspace value) { + if (workspaceBuilder_ == null) { + if (workspace_ != null) { + workspace_ = + com.google.cloud.dataform.v1beta1.Workspace.newBuilder(workspace_) + .mergeFrom(value) + .buildPartial(); + } else { + workspace_ = value; + } + onChanged(); + } else { + workspaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWorkspace() { + if (workspaceBuilder_ == null) { + workspace_ = null; + onChanged(); + } else { + workspace_ = null; + workspaceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.Workspace.Builder getWorkspaceBuilder() { + + onChanged(); + return getWorkspaceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder getWorkspaceOrBuilder() { + if (workspaceBuilder_ != null) { + return workspaceBuilder_.getMessageOrBuilder(); + } else { + return workspace_ == null + ? com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance() + : workspace_; + } + } + /** + * + * + *
+     * Required. The workspace to create.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Workspace, + com.google.cloud.dataform.v1beta1.Workspace.Builder, + com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder> + getWorkspaceFieldBuilder() { + if (workspaceBuilder_ == null) { + workspaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Workspace, + com.google.cloud.dataform.v1beta1.Workspace.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateWorkspaceRequest) + private static final com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new CreateWorkspaceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java new file mode 100644 index 0000000..0d2e149 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface CreateWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The workspace. + */ + com.google.cloud.dataform.v1beta1.Workspace getWorkspace(); + /** + * + * + *
+   * Required. The workspace to create.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java new file mode 100644 index 0000000..7e277dd --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java @@ -0,0 +1,1612 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public 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_v1beta1_Repository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Repository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Target_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_BigqueryLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_BigqueryLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_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/v1beta1/dataform" + + ".proto\022\035google.cloud.dataform.v1beta1\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\032\032google/type/interval.pr" + + "oto\"\310\004\n\nRepository\022\021\n\004name\030\001 \001(\tB\003\340A\003\022]\n" + + "\023git_remote_settings\030\002 \001(\0132;.google.clou" + + "d.dataform.v1beta1.Repository.GitRemoteS" + + "ettingsB\003\340A\001\032\333\002\n\021GitRemoteSettings\022\020\n\003ur" + + "l\030\001 \001(\tB\003\340A\002\022\033\n\016default_branch\030\002 \001(\tB\003\340A" + + "\002\022_\n#authentication_token_secret_version" + + "\030\003 \001(\tB2\340A\002\372A,\n*secretmanager.googleapis" + + ".com/SecretVersion\022b\n\014token_status\030\004 \001(\016" + + "2G.google.cloud.dataform.v1beta1.Reposit" + + "ory.GitRemoteSettings.TokenStatusB\003\340A\003\"R" + + "\n\013TokenStatus\022\034\n\030TOKEN_STATUS_UNSPECIFIE" + + "D\020\000\022\r\n\tNOT_FOUND\020\001\022\013\n\007INVALID\020\002\022\t\n\005VALID" + + "\020\003:j\352Ag\n\"dataform.googleapis.com/Reposit" + + "ory\022Aprojects/{project}/locations/{locat" + + "ion}/repositories/{repository}\"\261\001\n\027ListR" + + "epositoriesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\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\"\211\001\n\030ListRepositoriesResponse\022" + + "?\n\014repositories\030\001 \003(\0132).google.cloud.dat" + + "aform.v1beta1.Repository\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"P\n\024GetRep" + + "ositoryRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"da" + + "taform.googleapis.com/Repository\"\264\001\n\027Cre" + + "ateRepositoryRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "B\n\nrepository\030\002 \001(\0132).google.cloud.dataf" + + "orm.v1beta1.RepositoryB\003\340A\002\022\032\n\rrepositor" + + "y_id\030\003 \001(\tB\003\340A\002\"\223\001\n\027UpdateRepositoryRequ" + + "est\0224\n\013update_mask\030\001 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\001\022B\n\nrepository\030\002 \001(\0132)." + + "google.cloud.dataform.v1beta1.Repository" + + "B\003\340A\002\"b\n\027DeleteRepositoryRequest\0228\n\004name" + + "\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis.com/" + + "Repository\022\r\n\005force\030\002 \001(\010\"V\n\032FetchRemote" + + "BranchesRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"d" + + "ataform.googleapis.com/Repository\"/\n\033Fet" + + "chRemoteBranchesResponse\022\020\n\010branches\030\001 \003" + + "(\t\"\241\001\n\tWorkspace\022\021\n\004name\030\001 \001(\tB\003\340A\003:\200\001\352A" + + "}\n!dataform.googleapis.com/Workspace\022Xpr" + + "ojects/{project}/locations/{location}/re" + + "positories/{repository}/workspaces/{work" + + "space}\"\260\001\n\025ListWorkspacesRequest\022:\n\006pare" + + "nt\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis.co" + + "m/Repository\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_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\"\204\001\n\026ListWorksp" + + "acesResponse\022<\n\nworkspaces\030\001 \003(\0132(.googl" + + "e.cloud.dataform.v1beta1.Workspace\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"N\n\023GetWorkspaceRequest\0227\n\004name\030\001 \001(\tB)\340" + + "A\002\372A#\n!dataform.googleapis.com/Workspace" + + "\"\261\001\n\026CreateWorkspaceRequest\022:\n\006parent\030\001 " + + "\001(\tB*\340A\002\372A$\n\"dataform.googleapis.com/Rep" + + "ository\022@\n\tworkspace\030\002 \001(\0132(.google.clou" + + "d.dataform.v1beta1.WorkspaceB\003\340A\002\022\031\n\014wor" + + "kspace_id\030\003 \001(\tB\003\340A\002\"Q\n\026DeleteWorkspaceR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.g" + + "oogleapis.com/Workspace\"=\n\014CommitAuthor\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002\022\032\n\remail_address\030\002 \001(" + + "\tB\003\340A\002\"\256\001\n\025PullGitCommitsRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.com/" + + "Workspace\022\032\n\rremote_branch\030\002 \001(\tB\003\340A\001\022@\n" + + "\006author\030\003 \001(\0132+.google.cloud.dataform.v1" + + "beta1.CommitAuthorB\003\340A\002\"l\n\025PushGitCommit" + + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform" + + ".googleapis.com/Workspace\022\032\n\rremote_bran" + + "ch\030\002 \001(\tB\003\340A\001\"V\n\033FetchFileGitStatusesReq" + + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataform.goo" + + "gleapis.com/Workspace\"\374\002\n\034FetchFileGitSt" + + "atusesResponse\022s\n\030uncommitted_file_chang" + + "es\030\001 \003(\0132Q.google.cloud.dataform.v1beta1" + + ".FetchFileGitStatusesResponse.Uncommitte" + + "dFileChange\032\346\001\n\025UncommittedFileChange\022\014\n" + + "\004path\030\001 \001(\t\022f\n\005state\030\002 \001(\0162W.google.clou" + + "d.dataform.v1beta1.FetchFileGitStatusesR" + + "esponse.UncommittedFileChange.State\"W\n\005S" + + "tate\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_CONFLIC" + + "TS\020\004\"q\n\032FetchGitAheadBehindRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.co" + + "m/Workspace\022\032\n\rremote_branch\030\002 \001(\tB\003\340A\001\"" + + "L\n\033FetchGitAheadBehindResponse\022\025\n\rcommit" + + "s_ahead\030\001 \001(\005\022\026\n\016commits_behind\030\002 \001(\005\"\313\001" + + "\n\035CommitWorkspaceChangesRequest\0227\n\004name\030" + + "\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.com/W" + + "orkspace\022@\n\006author\030\004 \001(\0132+.google.cloud." + + "dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n\016co" + + "mmit_message\030\002 \001(\tB\003\340A\001\022\022\n\005paths\030\003 \003(\tB\003" + + "\340A\001\"\177\n\034ResetWorkspaceChangesRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis.c" + + "om/Workspace\022\022\n\005paths\030\002 \003(\tB\003\340A\001\022\022\n\005clea" + + "n\030\003 \001(\010B\003\340A\001\"g\n\024FetchFileDiffRequest\022<\n\t" + + "workspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.google" + + "apis.com/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\"/\n" + + "\025FetchFileDiffResponse\022\026\n\016formatted_diff" + + "\030\001 \001(\t\"\241\001\n\035QueryDirectoryContentsRequest" + + "\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.go" + + "ogleapis.com/Workspace\022\021\n\004path\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\"\342\001\n\036QueryDirectoryContentsRes" + + "ponse\022g\n\021directory_entries\030\001 \003(\0132L.googl" + + "e.cloud.dataform.v1beta1.QueryDirectoryC" + + "ontentsResponse.DirectoryEntry\022\027\n\017next_p" + + "age_token\030\002 \001(\t\032>\n\016DirectoryEntry\022\016\n\004fil" + + "e\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.googleapis.com/Work" + + "space\022\021\n\004path\030\002 \001(\tB\003\340A\002\"\027\n\025MakeDirector" + + "yResponse\"i\n\026RemoveDirectoryRequest\022<\n\tw" + + "orkspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googlea" + + "pis.com/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\"~\n\024" + + "MoveDirectoryRequest\022<\n\tworkspace\030\001 \001(\tB" + + ")\340A\002\372A#\n!dataform.googleapis.com/Workspa" + + "ce\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\025\n\010new_path\030\003 \001(\tB" + + "\003\340A\002\"\027\n\025MoveDirectoryResponse\"b\n\017ReadFil" + + "eRequest\022<\n\tworkspace\030\001 \001(\tB)\340A\002\372A#\n!dat" + + "aform.googleapis.com/Workspace\022\021\n\004path\030\002" + + " \001(\tB\003\340A\002\")\n\020ReadFileResponse\022\025\n\rfile_co" + + "ntents\030\001 \001(\014\"d\n\021RemoveFileRequest\022<\n\twor" + + "kspace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapi" + + "s.com/Workspace\022\021\n\004path\030\002 \001(\tB\003\340A\002\"y\n\017Mo" + + "veFileRequest\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\002\022\025\n\010new_path\030\003 \001(\tB\003\340A\002\"\022\n" + + "\020MoveFileResponse\"z\n\020WriteFileRequest\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\022\025" + + "\n\010contents\030\003 \001(\014B\003\340A\002\"\023\n\021WriteFileRespon" + + "se\"Y\n\031InstallNpmPackagesRequest\022<\n\tworks" + + "pace\030\001 \001(\tB)\340A\002\372A#\n!dataform.googleapis." + + "com/Workspace\"\034\n\032InstallNpmPackagesRespo" + + "nse\"\261\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\two" + + "rkspace\030\003 \001(\tB)\340A\005\372A#\n!dataform.googleap" + + "is.com/WorkspaceH\000\022l\n\027code_compilation_c" + + "onfig\030\004 \001(\0132F.google.cloud.dataform.v1be" + + "ta1.CompilationResult.CodeCompilationCon" + + "figB\003\340A\005\022\"\n\025dataform_core_version\030\005 \001(\tB" + + "\003\340A\003\022b\n\022compilation_errors\030\006 \003(\0132A.googl" + + "e.cloud.dataform.v1beta1.CompilationResu" + + "lt.CompilationErrorB\003\340A\003\032\370\002\n\025CodeCompila" + + "tionConfig\022\035\n\020default_database\030\001 \001(\tB\003\340A" + + "\001\022\033\n\016default_schema\030\002 \001(\tB\003\340A\001\022\035\n\020defaul" + + "t_location\030\010 \001(\tB\003\340A\001\022\035\n\020assertion_schem" + + "a\030\003 \001(\tB\003\340A\001\022c\n\004vars\030\004 \003(\0132P.google.clou" + + "d.dataform.v1beta1.CompilationResult.Cod" + + "eCompilationConfig.VarsEntryB\003\340A\001\022\034\n\017dat" + + "abase_suffix\030\005 \001(\tB\003\340A\001\022\032\n\rschema_suffix" + + "\030\006 \001(\tB\003\340A\001\022\031\n\014table_prefix\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\222\001\n\020CompilationError\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(\t" + + "B\003\340A\003\022A\n\raction_target\030\004 \001(\0132%.google.cl" + + "oud.dataform.v1beta1.TargetB\003\340A\003:\232\001\352A\226\001\n" + + ")dataform.googleapis.com/CompilationResu" + + "lt\022iprojects/{project}/locations/{locati" + + "on}/repositories/{repository}/compilatio" + + "nResults/{compilation_result}B\010\n\006source\"" + + "\214\001\n\035ListCompilationResultsRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis.c" + + "om/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\"\235\001\n\036ListCompilati" + + "onResultsResponse\022M\n\023compilation_results" + + "\030\001 \003(\01320.google.cloud.dataform.v1beta1.C" + + "ompilationResult\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"^\n\033GetCompilation" + + "ResultRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dat" + + "aform.googleapis.com/CompilationResult\"\257" + + "\001\n\036CreateCompilationResultRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis.c" + + "om/Repository\022Q\n\022compilation_result\030\002 \001(" + + "\01320.google.cloud.dataform.v1beta1.Compil" + + "ationResultB\003\340A\002\"8\n\006Target\022\020\n\010database\030\001" + + " \001(\t\022\016\n\006schema\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"\352\002\n\022R" + + "elationDescriptor\022\023\n\013description\030\001 \001(\t\022S" + + "\n\007columns\030\002 \003(\0132B.google.cloud.dataform." + + "v1beta1.RelationDescriptor.ColumnDescrip" + + "tor\022^\n\017bigquery_labels\030\003 \003(\0132E.google.cl" + + "oud.dataform.v1beta1.RelationDescriptor." + + "BigqueryLabelsEntry\032S\n\020ColumnDescriptor\022" + + "\014\n\004path\030\001 \003(\t\022\023\n\013description\030\002 \001(\t\022\034\n\024bi" + + "gquery_policy_tags\030\003 \003(\t\0325\n\023BigqueryLabe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\323\021\n\027CompilationResultAction\0225\n\006target\030\001 " + + "\001(\0132%.google.cloud.dataform.v1beta1.Targ" + + "et\022?\n\020canonical_target\030\002 \001(\0132%.google.cl" + + "oud.dataform.v1beta1.Target\022\021\n\tfile_path" + + "\030\003 \001(\t\022S\n\010relation\030\004 \001(\0132?.google.cloud." + + "dataform.v1beta1.CompilationResultAction" + + ".RelationH\000\022W\n\noperations\030\005 \001(\0132A.google" + + ".cloud.dataform.v1beta1.CompilationResul" + + "tAction.OperationsH\000\022U\n\tassertion\030\006 \001(\0132" + + "@.google.cloud.dataform.v1beta1.Compilat" + + "ionResultAction.AssertionH\000\022Y\n\013declarati" + + "on\030\007 \001(\0132B.google.cloud.dataform.v1beta1" + + ".CompilationResultAction.DeclarationH\000\032\336" + + "\010\n\010Relation\022A\n\022dependency_targets\030\001 \003(\0132" + + "%.google.cloud.dataform.v1beta1.Target\022\020" + + "\n\010disabled\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022N\n\023relati" + + "on_descriptor\030\004 \001(\01321.google.cloud.dataf" + + "orm.v1beta1.RelationDescriptor\022c\n\rrelati" + + "on_type\030\005 \001(\0162L.google.cloud.dataform.v1" + + "beta1.CompilationResultAction.Relation.R" + + "elationType\022\024\n\014select_query\030\006 \001(\t\022\026\n\016pre" + + "_operations\030\007 \003(\t\022\027\n\017post_operations\030\010 \003" + + "(\t\022x\n\030incremental_table_config\030\t \001(\0132V.g" + + "oogle.cloud.dataform.v1beta1.Compilation" + + "ResultAction.Relation.IncrementalTableCo" + + "nfig\022\034\n\024partition_expression\030\n \001(\t\022\033\n\023cl" + + "uster_expressions\030\013 \003(\t\022!\n\031partition_exp" + + "iration_days\030\014 \001(\005\022 \n\030require_partition_" + + "filter\030\r \001(\010\022r\n\022additional_options\030\016 \003(\013" + + "2V.google.cloud.dataform.v1beta1.Compila" + + "tionResultAction.Relation.AdditionalOpti" + + "onsEntry\032\330\001\n\026IncrementalTableConfig\022 \n\030i" + + "ncremental_select_query\030\001 \001(\t\022\030\n\020refresh" + + "_disabled\030\002 \001(\010\022\030\n\020unique_key_parts\030\003 \003(" + + "\t\022\037\n\027update_partition_filter\030\004 \001(\t\022\"\n\032in" + + "cremental_pre_operations\030\005 \003(\t\022#\n\033increm" + + "ental_post_operations\030\006 \003(\t\0328\n\026Additiona" + + "lOptionsEntry\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_U" + + "NSPECIFIED\020\000\022\t\n\005TABLE\020\001\022\010\n\004VIEW\020\002\022\025\n\021INC" + + "REMENTAL_TABLE\020\003\022\025\n\021MATERIALIZED_VIEW\020\004\032" + + "\344\001\n\nOperations\022A\n\022dependency_targets\030\001 \003" + + "(\0132%.google.cloud.dataform.v1beta1.Targe" + + "t\022\020\n\010disabled\030\002 \001(\010\022\014\n\004tags\030\003 \003(\t\022N\n\023rel" + + "ation_descriptor\030\006 \001(\01321.google.cloud.da" + + "taform.v1beta1.RelationDescriptor\022\017\n\007que" + + "ries\030\004 \003(\t\022\022\n\nhas_output\030\005 \001(\010\032\222\002\n\tAsser" + + "tion\022A\n\022dependency_targets\030\001 \003(\0132%.googl" + + "e.cloud.dataform.v1beta1.Target\022<\n\rparen" + + "t_action\030\005 \001(\0132%.google.cloud.dataform.v" + + "1beta1.Target\022\020\n\010disabled\030\002 \001(\010\022\014\n\004tags\030" + + "\003 \003(\t\022\024\n\014select_query\030\004 \001(\t\022N\n\023relation_" + + "descriptor\030\006 \001(\01321.google.cloud.dataform" + + ".v1beta1.RelationDescriptor\032]\n\013Declarati" + + "on\022N\n\023relation_descriptor\030\001 \001(\01321.google" + + ".cloud.dataform.v1beta1.RelationDescript" + + "orB\021\n\017compiled_object\"\255\001\n$QueryCompilati" + + "onResultActionsRequest\022?\n\004name\030\001 \001(\tB1\340A" + + "\002\372A+\n)dataform.googleapis.com/Compilatio" + + "nResult\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\023\n\006filter\030\004 \001(\tB\003\340A\001\"\234\001" + + "\n%QueryCompilationResultActionsResponse\022" + + "Z\n\032compilation_result_actions\030\001 \003(\01326.go" + + "ogle.cloud.dataform.v1beta1.CompilationR" + + "esultAction\022\027\n\017next_page_token\030\002 \001(\t\"\356\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\022b\n" + + "\021invocation_config\030\003 \001(\0132B.google.cloud." + + "dataform.v1beta1.WorkflowInvocation.Invo" + + "cationConfigB\003\340A\005\022K\n\005state\030\004 \001(\01627.googl" + + "e.cloud.dataform.v1beta1.WorkflowInvocat" + + "ion.StateB\003\340A\003\0225\n\021invocation_timing\030\005 \001(" + + "\0132\025.google.type.IntervalB\003\340A\003\032\207\002\n\020Invoca" + + "tionConfig\022D\n\020included_targets\030\001 \003(\0132%.g" + + "oogle.cloud.dataform.v1beta1.TargetB\003\340A\005" + + "\022\032\n\rincluded_tags\030\002 \003(\tB\003\340A\005\022-\n transiti" + + "ve_dependencies_included\030\003 \001(\010B\003\340A\005\022+\n\036t" + + "ransitive_dependents_included\030\004 \001(\010B\003\340A\005" + + "\0225\n(fully_refresh_incremental_tables_ena" + + "bled\030\005 \001(\010B\003\340A\005\"d\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\r\n\tC" + + "ANCELLED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELING\020\005:\235\001" + + "\352A\231\001\n*dataform.googleapis.com/WorkflowIn" + + "vocation\022kprojects/{project}/locations/{" + + "location}/repositories/{repository}/work" + + "flowInvocations/{workflow_invocation}\"\215\001" + + "\n\036ListWorkflowInvocationsRequest\022:\n\006pare" + + "nt\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googleapis.co" + + "m/Repository\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\240\001\n\037ListWorkflowIn" + + "vocationsResponse\022O\n\024workflow_invocation" + + "s\030\001 \003(\01321.google.cloud.dataform.v1beta1." + + "WorkflowInvocation\022\027\n\017next_page_token\030\002 " + + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"`\n\034GetWorkflowI" + + "nvocationRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" + + "dataform.googleapis.com/WorkflowInvocati" + + "on\"\262\001\n\037CreateWorkflowInvocationRequest\022:" + + "\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"dataform.googlea" + + "pis.com/Repository\022S\n\023workflow_invocatio" + + "n\030\002 \001(\01321.google.cloud.dataform.v1beta1." + + "WorkflowInvocationB\003\340A\002\"c\n\037DeleteWorkflo" + + "wInvocationRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + + "\n*dataform.googleapis.com/WorkflowInvoca" + + "tion\"c\n\037CancelWorkflowInvocationRequest\022" + + "@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dataform.googleap" + + "is.com/WorkflowInvocation\"\274\004\n\030WorkflowIn" + + "vocationAction\022:\n\006target\030\001 \001(\0132%.google." + + "cloud.dataform.v1beta1.TargetB\003\340A\003\022D\n\020ca" + + "nonical_target\030\002 \001(\0132%.google.cloud.data" + + "form.v1beta1.TargetB\003\340A\003\022Q\n\005state\030\004 \001(\0162" + + "=.google.cloud.dataform.v1beta1.Workflow" + + "InvocationAction.StateB\003\340A\003\022\033\n\016failure_r" + + "eason\030\007 \001(\tB\003\340A\003\0225\n\021invocation_timing\030\005 " + + "\001(\0132\025.google.type.IntervalB\003\340A\003\022d\n\017bigqu" + + "ery_action\030\006 \001(\0132F.google.cloud.dataform" + + ".v1beta1.WorkflowInvocationAction.BigQue" + + "ryActionB\003\340A\003\032)\n\016BigQueryAction\022\027\n\nsql_s" + + "cript\030\001 \001(\tB\003\340A\003\"f\n\005State\022\013\n\007PENDING\020\000\022\013" + + "\n\007RUNNING\020\001\022\013\n\007SKIPPED\020\002\022\014\n\010DISABLED\020\003\022\r" + + "\n\tSUCCEEDED\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006FAILED\020\006" + + "\"\232\001\n%QueryWorkflowInvocationActionsReque" + + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dataform.googl" + + "eapis.com/WorkflowInvocation\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\237\001" + + "\n&QueryWorkflowInvocationActionsResponse" + + "\022\\\n\033workflow_invocation_actions\030\001 \003(\01327." + + "google.cloud.dataform.v1beta1.WorkflowIn" + + "vocationAction\022\027\n\017next_page_token\030\002 \001(\t2" + + "\313>\n\010Dataform\022\313\001\n\020ListRepositories\0226.goog" + + "le.cloud.dataform.v1beta1.ListRepositori" + + "esRequest\0327.google.cloud.dataform.v1beta" + + "1.ListRepositoriesResponse\"F\202\323\344\223\0027\0225/v1b" + + "eta1/{parent=projects/*/locations/*}/rep" + + "ositories\332A\006parent\022\265\001\n\rGetRepository\0223.g" + + "oogle.cloud.dataform.v1beta1.GetReposito" + + "ryRequest\032).google.cloud.dataform.v1beta" + + "1.Repository\"D\202\323\344\223\0027\0225/v1beta1/{name=pro" + + "jects/*/locations/*/repositories/*}\332A\004na" + + "me\022\342\001\n\020CreateRepository\0226.google.cloud.d" + + "ataform.v1beta1.CreateRepositoryRequest\032" + + ").google.cloud.dataform.v1beta1.Reposito" + + "ry\"k\202\323\344\223\002C\"5/v1beta1/{parent=projects/*/" + + "locations/*}/repositories:\nrepository\332A\037" + + "parent,repository,repository_id\022\344\001\n\020Upda" + + "teRepository\0226.google.cloud.dataform.v1b" + + "eta1.UpdateRepositoryRequest\032).google.cl" + + "oud.dataform.v1beta1.Repository\"m\202\323\344\223\002N2" + + "@/v1beta1/{repository.name=projects/*/lo" + + "cations/*/repositories/*}:\nrepository\332A\026" + + "repository,update_mask\022\250\001\n\020DeleteReposit" + + "ory\0226.google.cloud.dataform.v1beta1.Dele" + + "teRepositoryRequest\032\026.google.protobuf.Em" + + "pty\"D\202\323\344\223\0027*5/v1beta1/{name=projects/*/l" + + "ocations/*/repositories/*}\332A\004name\022\337\001\n\023Fe" + + "tchRemoteBranches\0229.google.cloud.datafor" + + "m.v1beta1.FetchRemoteBranchesRequest\032:.g" + + "oogle.cloud.dataform.v1beta1.FetchRemote" + + "BranchesResponse\"Q\202\323\344\223\002K\022I/v1beta1/{name" + + "=projects/*/locations/*/repositories/*}:" + + "fetchRemoteBranches\022\322\001\n\016ListWorkspaces\0224" + + ".google.cloud.dataform.v1beta1.ListWorks" + + "pacesRequest\0325.google.cloud.dataform.v1b" + + "eta1.ListWorkspacesResponse\"S\202\323\344\223\002D\022B/v1" + + "beta1/{parent=projects/*/locations/*/rep" + + "ositories/*}/workspaces\332A\006parent\022\277\001\n\014Get" + + "Workspace\0222.google.cloud.dataform.v1beta" + + "1.GetWorkspaceRequest\032(.google.cloud.dat" + + "aform.v1beta1.Workspace\"Q\202\323\344\223\002D\022B/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}\332A\004name\022\351\001\n\017CreateWor" + + "kspace\0225.google.cloud.dataform.v1beta1.C" + + "reateWorkspaceRequest\032(.google.cloud.dat" + + "aform.v1beta1.Workspace\"u\202\323\344\223\002O\"B/v1beta" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/workspaces:\tworkspace\332A\035parent," + + "workspace,workspace_id\022\263\001\n\017DeleteWorkspa" + + "ce\0225.google.cloud.dataform.v1beta1.Delet" + + "eWorkspaceRequest\032\026.google.protobuf.Empt" + + "y\"Q\202\323\344\223\002D*B/v1beta1/{name=projects/*/loc" + + "ations/*/repositories/*/workspaces/*}\332A\004" + + "name\022\360\001\n\022InstallNpmPackages\0228.google.clo" + + "ud.dataform.v1beta1.InstallNpmPackagesRe" + + "quest\0329.google.cloud.dataform.v1beta1.In" + + "stallNpmPackagesResponse\"e\202\323\344\223\002_\"Z/v1bet" + + "a1/{workspace=projects/*/locations/*/rep" + + "ositories/*/workspaces/*}:installNpmPack" + + "ages:\001*\022\262\001\n\016PullGitCommits\0224.google.clou" + + "d.dataform.v1beta1.PullGitCommitsRequest" + + "\032\026.google.protobuf.Empty\"R\202\323\344\223\002L\"G/v1bet" + + "a1/{name=projects/*/locations/*/reposito" + + "ries/*/workspaces/*}:pull:\001*\022\262\001\n\016PushGit" + + "Commits\0224.google.cloud.dataform.v1beta1." + + "PushGitCommitsRequest\032\026.google.protobuf." + + "Empty\"R\202\323\344\223\002L\"G/v1beta1/{name=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:push:\001*\022\360\001\n\024FetchFileGitStatuses\022:.goo" + + "gle.cloud.dataform.v1beta1.FetchFileGitS" + + "tatusesRequest\032;.google.cloud.dataform.v" + + "1beta1.FetchFileGitStatusesResponse\"_\202\323\344" + + "\223\002Y\022W/v1beta1/{name=projects/*/locations" + + "/*/repositories/*/workspaces/*}:fetchFil" + + "eGitStatuses\022\354\001\n\023FetchGitAheadBehind\0229.g" + + "oogle.cloud.dataform.v1beta1.FetchGitAhe" + + "adBehindRequest\032:.google.cloud.dataform." + + "v1beta1.FetchGitAheadBehindResponse\"^\202\323\344" + + "\223\002X\022V/v1beta1/{name=projects/*/locations" + + "/*/repositories/*/workspaces/*}:fetchGit", + "AheadBehind\022\304\001\n\026CommitWorkspaceChanges\022<" + + ".google.cloud.dataform.v1beta1.CommitWor" + + "kspaceChangesRequest\032\026.google.protobuf.E" + + "mpty\"T\202\323\344\223\002N\"I/v1beta1/{name=projects/*/" + + "locations/*/repositories/*/workspaces/*}" + + ":commit:\001*\022\301\001\n\025ResetWorkspaceChanges\022;.g" + + "oogle.cloud.dataform.v1beta1.ResetWorksp" + + "aceChangesRequest\032\026.google.protobuf.Empt" + + "y\"S\202\323\344\223\002M\"H/v1beta1/{name=projects/*/loc" + + "ations/*/repositories/*/workspaces/*}:re" + + "set:\001*\022\331\001\n\rFetchFileDiff\0223.google.cloud." + + "dataform.v1beta1.FetchFileDiffRequest\0324." + + "google.cloud.dataform.v1beta1.FetchFileD" + + "iffResponse\"]\202\323\344\223\002W\022U/v1beta1/{workspace" + + "=projects/*/locations/*/repositories/*/w" + + "orkspaces/*}:fetchFileDiff\022\375\001\n\026QueryDire" + + "ctoryContents\022<.google.cloud.dataform.v1" + + "beta1.QueryDirectoryContentsRequest\032=.go" + + "ogle.cloud.dataform.v1beta1.QueryDirecto" + + "ryContentsResponse\"f\202\323\344\223\002`\022^/v1beta1/{wo" + + "rkspace=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:queryDirectoryConten" + + "ts\022\334\001\n\rMakeDirectory\0223.google.cloud.data" + + "form.v1beta1.MakeDirectoryRequest\0324.goog" + + "le.cloud.dataform.v1beta1.MakeDirectoryR" + + "esponse\"`\202\323\344\223\002Z\"U/v1beta1/{workspace=pro" + + "jects/*/locations/*/repositories/*/works" + + "paces/*}:makeDirectory:\001*\022\304\001\n\017RemoveDire" + + "ctory\0225.google.cloud.dataform.v1beta1.Re" + + "moveDirectoryRequest\032\026.google.protobuf.E" + + "mpty\"b\202\323\344\223\002\\\"W/v1beta1/{workspace=projec" + + "ts/*/locations/*/repositories/*/workspac" + + "es/*}:removeDirectory:\001*\022\334\001\n\rMoveDirecto" + + "ry\0223.google.cloud.dataform.v1beta1.MoveD" + + "irectoryRequest\0324.google.cloud.dataform." + + "v1beta1.MoveDirectoryResponse\"`\202\323\344\223\002Z\"U/" + + "v1beta1/{workspace=projects/*/locations/" + + "*/repositories/*/workspaces/*}:moveDirec" + + "tory:\001*\022\305\001\n\010ReadFile\022..google.cloud.data" + + "form.v1beta1.ReadFileRequest\032/.google.cl" + + "oud.dataform.v1beta1.ReadFileResponse\"X\202" + + "\323\344\223\002R\022P/v1beta1/{workspace=projects/*/lo" + + "cations/*/repositories/*/workspaces/*}:r" + + "eadFile\022\265\001\n\nRemoveFile\0220.google.cloud.da" + + "taform.v1beta1.RemoveFileRequest\032\026.googl" + + "e.protobuf.Empty\"]\202\323\344\223\002W\"R/v1beta1/{work" + + "space=projects/*/locations/*/repositorie" + + "s/*/workspaces/*}:removeFile:\001*\022\310\001\n\010Move" + + "File\022..google.cloud.dataform.v1beta1.Mov" + + "eFileRequest\032/.google.cloud.dataform.v1b" + + "eta1.MoveFileResponse\"[\202\323\344\223\002U\"P/v1beta1/" + + "{workspace=projects/*/locations/*/reposi" + + "tories/*/workspaces/*}:moveFile:\001*\022\314\001\n\tW" + + "riteFile\022/.google.cloud.dataform.v1beta1" + + ".WriteFileRequest\0320.google.cloud.datafor" + + "m.v1beta1.WriteFileResponse\"\\\202\323\344\223\002V\"Q/v1" + + "beta1/{workspace=projects/*/locations/*/" + + "repositories/*/workspaces/*}:writeFile:\001" + + "*\022\362\001\n\026ListCompilationResults\022<.google.cl" + + "oud.dataform.v1beta1.ListCompilationResu" + + "ltsRequest\032=.google.cloud.dataform.v1bet" + + "a1.ListCompilationResultsResponse\"[\202\323\344\223\002" + + "L\022J/v1beta1/{parent=projects/*/locations" + + "/*/repositories/*}/compilationResults\332A\006" + + "parent\022\337\001\n\024GetCompilationResult\022:.google" + + ".cloud.dataform.v1beta1.GetCompilationRe" + + "sultRequest\0320.google.cloud.dataform.v1be" + + "ta1.CompilationResult\"Y\202\323\344\223\002L\022J/v1beta1/" + + "{name=projects/*/locations/*/repositorie" + + "s/*/compilationResults/*}\332A\004name\022\217\002\n\027Cre" + + "ateCompilationResult\022=.google.cloud.data" + + "form.v1beta1.CreateCompilationResultRequ" + + "est\0320.google.cloud.dataform.v1beta1.Comp" + + "ilationResult\"\202\001\202\323\344\223\002`\"J/v1beta1/{parent" + + "=projects/*/locations/*/repositories/*}/" + + "compilationResults:\022compilation_result\332A" + + "\031parent,compilation_result\022\204\002\n\035QueryComp" + + "ilationResultActions\022C.google.cloud.data" + + "form.v1beta1.QueryCompilationResultActio" + + "nsRequest\032D.google.cloud.dataform.v1beta" + + "1.QueryCompilationResultActionsResponse\"" + + "X\202\323\344\223\002R\022P/v1beta1/{name=projects/*/locat" + + "ions/*/repositories/*/compilationResults" + + "/*}:query\022\366\001\n\027ListWorkflowInvocations\022=." + + "google.cloud.dataform.v1beta1.ListWorkfl" + + "owInvocationsRequest\032>.google.cloud.data" + + "form.v1beta1.ListWorkflowInvocationsResp" + + "onse\"\\\202\323\344\223\002M\022K/v1beta1/{parent=projects/" + + "*/locations/*/repositories/*}/workflowIn" + + "vocations\332A\006parent\022\343\001\n\025GetWorkflowInvoca" + + "tion\022;.google.cloud.dataform.v1beta1.Get" + + "WorkflowInvocationRequest\0321.google.cloud" + + ".dataform.v1beta1.WorkflowInvocation\"Z\202\323" + + "\344\223\002M\022K/v1beta1/{name=projects/*/location" + + "s/*/repositories/*/workflowInvocations/*" + + "}\332A\004name\022\225\002\n\030CreateWorkflowInvocation\022>." + + "google.cloud.dataform.v1beta1.CreateWork" + + "flowInvocationRequest\0321.google.cloud.dat" + + "aform.v1beta1.WorkflowInvocation\"\205\001\202\323\344\223\002" + + "b\"K/v1beta1/{parent=projects/*/locations" + + "/*/repositories/*}/workflowInvocations:\023" + + "workflow_invocation\332A\032parent,workflow_in" + + "vocation\022\316\001\n\030DeleteWorkflowInvocation\022>." + + "google.cloud.dataform.v1beta1.DeleteWork" + + "flowInvocationRequest\032\026.google.protobuf." + + "Empty\"Z\202\323\344\223\002M*K/v1beta1/{name=projects/*" + + "/locations/*/repositories/*/workflowInvo" + + "cations/*}\332A\004name\022\321\001\n\030CancelWorkflowInvo" + + "cation\022>.google.cloud.dataform.v1beta1.C" + + "ancelWorkflowInvocationRequest\032\026.google." + + "protobuf.Empty\"]\202\323\344\223\002W\"R/v1beta1/{name=p" + + "rojects/*/locations/*/repositories/*/wor" + + "kflowInvocations/*}:cancel:\001*\022\210\002\n\036QueryW" + + "orkflowInvocationActions\022D.google.cloud." + + "dataform.v1beta1.QueryWorkflowInvocation" + + "ActionsRequest\032E.google.cloud.dataform.v" + + "1beta1.QueryWorkflowInvocationActionsRes" + + "ponse\"Y\202\323\344\223\002S\022Q/v1beta1/{name=projects/*" + + "/locations/*/repositories/*/workflowInvo" + + "cations/*}:query\032K\312A\027dataform.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\305\002\n!com.google.cloud.dataf" + + "orm.v1beta1B\rDataformProtoP\001ZEgoogle.gol" + + "ang.org/genproto/googleapis/cloud/datafo" + + "rm/v1beta1;dataform\252\002\035Google.Cloud.Dataf" + + "orm.V1Beta1\312\002\035Google\\Cloud\\Dataform\\V1be" + + "ta1\352\002 Google::Cloud::Dataform::V1beta1\352A" + + "d\n*secretmanager.googleapis.com/SecretVe" + + "rsion\0226projects/{project}/secrets/{secre" + + "t}/versions/{version}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_v1beta1_Repository_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataform_v1beta1_Repository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Repository_descriptor, + new java.lang.String[] { + "Name", "GitRemoteSettings", + }); + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor = + internal_static_google_cloud_dataform_v1beta1_Repository_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor, + new java.lang.String[] { + "Url", "DefaultBranch", "AuthenticationTokenSecretVersion", "TokenStatus", + }); + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor, + new java.lang.String[] { + "Repositories", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor, + new java.lang.String[] { + "Parent", "Repository", "RepositoryId", + }); + internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Repository", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor, + new java.lang.String[] { + "Branches", + }); + internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor, + new java.lang.String[] { + "Workspaces", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor, + new java.lang.String[] { + "Parent", "Workspace", "WorkspaceId", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor, + new java.lang.String[] { + "Name", "EmailAddress", + }); + internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor, + new java.lang.String[] { + "Name", "RemoteBranch", "Author", + }); + internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor, + new java.lang.String[] { + "Name", "RemoteBranch", + }); + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor, + new java.lang.String[] { + "UncommittedFileChanges", + }); + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor = + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor, + new java.lang.String[] { + "Path", "State", + }); + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor, + new java.lang.String[] { + "Name", "RemoteBranch", + }); + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor, + new java.lang.String[] { + "CommitsAhead", "CommitsBehind", + }); + internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor, + new java.lang.String[] { + "Name", "Author", "CommitMessage", "Paths", + }); + internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor, + new java.lang.String[] { + "Name", "Paths", "Clean", + }); + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", + }); + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor, + new java.lang.String[] { + "FormattedDiff", + }); + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor, + new java.lang.String[] { + "DirectoryEntries", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor, + new java.lang.String[] { + "File", "Directory", "Entry", + }); + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", + }); + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", + }); + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", "NewPath", + }); + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", + }); + internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor, + new java.lang.String[] { + "FileContents", + }); + internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", + }); + internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", "NewPath", + }); + internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor, + new java.lang.String[] { + "Workspace", "Path", "Contents", + }); + internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor, + new java.lang.String[] { + "Workspace", + }); + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor, + new java.lang.String[] { + "Name", + "GitCommitish", + "Workspace", + "CodeCompilationConfig", + "DataformCoreVersion", + "CompilationErrors", + "Source", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor, + new java.lang.String[] { + "DefaultDatabase", + "DefaultSchema", + "DefaultLocation", + "AssertionSchema", + "Vars", + "DatabaseSuffix", + "SchemaSuffix", + "TablePrefix", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CodeCompilationConfig_VarsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor, + new java.lang.String[] { + "Message", "Stack", "Path", "ActionTarget", + }); + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor, + new java.lang.String[] { + "CompilationResults", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor, + new java.lang.String[] { + "Parent", "CompilationResult", + }); + internal_static_google_cloud_dataform_v1beta1_Target_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Target_descriptor, + new java.lang.String[] { + "Database", "Schema", "Name", + }); + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor, + new java.lang.String[] { + "Description", "Columns", "BigqueryLabels", + }); + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_descriptor = + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_descriptor, + new java.lang.String[] { + "Path", "Description", "BigqueryPolicyTags", + }); + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_BigqueryLabelsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_BigqueryLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_BigqueryLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor, + new java.lang.String[] { + "Target", + "CanonicalTarget", + "FilePath", + "Relation", + "Operations", + "Assertion", + "Declaration", + "CompiledObject", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_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_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor, + new java.lang.String[] { + "IncrementalSelectQuery", + "RefreshDisabled", + "UniqueKeyParts", + "UpdatePartitionFilter", + "IncrementalPreOperations", + "IncrementalPostOperations", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor, + new java.lang.String[] { + "DependencyTargets", "Disabled", "Tags", "RelationDescriptor", "Queries", "HasOutput", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor, + new java.lang.String[] { + "DependencyTargets", + "ParentAction", + "Disabled", + "Tags", + "SelectQuery", + "RelationDescriptor", + }); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor = + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor, + new java.lang.String[] { + "RelationDescriptor", + }); + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor, + new java.lang.String[] { + "CompilationResultActions", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, + new java.lang.String[] { + "Name", "CompilationResult", "InvocationConfig", "State", "InvocationTiming", + }); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor = + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor, + new java.lang.String[] { + "IncludedTargets", + "IncludedTags", + "TransitiveDependenciesIncluded", + "TransitiveDependentsIncluded", + "FullyRefreshIncrementalTablesEnabled", + }); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor, + new java.lang.String[] { + "WorkflowInvocations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkflowInvocation", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor, + new java.lang.String[] { + "Target", + "CanonicalTarget", + "State", + "FailureReason", + "InvocationTiming", + "BigqueryAction", + }); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor = + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor, + new java.lang.String[] { + "SqlScript", + }); + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java new file mode 100644 index 0000000..a857cf1 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java @@ -0,0 +1,751 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `DeleteRepository` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryRequest} + */ +public final class DeleteRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteRepositoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 16: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest other = + (com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.DeleteRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteRepositoryRequest) + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest build() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest result = + new com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest(this); + result.name_ = name_; + result.force_ = force_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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.v1beta1.DeleteRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteRepositoryRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new DeleteRepositoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java new file mode 100644 index 0000000..586b433 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface DeleteRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowInvocationRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowInvocationRequest.java new file mode 100644 index 0000000..ba98b66 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowInvocationRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `DeleteWorkflowInvocation` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest} + */ +public final class DeleteWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteWorkflowInvocationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest other = + (com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkflowInvocationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkflowInvocationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkflowInvocationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkflowInvocationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.DeleteWorkflowInvocationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest build() { + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest result = + new com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new DeleteWorkflowInvocationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowInvocationRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowInvocationRequestOrBuilder.java new file mode 100644 index 0000000..3b7c48a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkflowInvocationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface DeleteWorkflowInvocationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkspaceRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkspaceRequest.java new file mode 100644 index 0000000..b4dfecd --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkspaceRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `DeleteWorkspace` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteWorkspaceRequest} + */ +public final class DeleteWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteWorkspaceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.class, + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest other = + (com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.DeleteWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.DeleteWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.class, + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest build() { + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest result = + new com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest other) { + if (other == com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new DeleteWorkspaceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkspaceRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkspaceRequestOrBuilder.java new file mode 100644 index 0000000..d073616 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteWorkspaceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface DeleteWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java new file mode 100644 index 0000000..bb3d9bc --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequest.java @@ -0,0 +1,832 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchFileDiff` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchFileDiffRequest} + */ +public final class FetchFileDiffRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchFileDiffRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.class, + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchFileDiffRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest other = + (com.google.cloud.dataform.v1beta1.FetchFileDiffRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchFileDiffRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileDiffRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchFileDiffRequest) + com.google.cloud.dataform.v1beta1.FetchFileDiffRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.class, + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffRequest build() { + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffRequest buildPartial() { + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest result = + new com.google.cloud.dataform.v1beta1.FetchFileDiffRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchFileDiffRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchFileDiffRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchFileDiffRequest other) { + if (other == com.google.cloud.dataform.v1beta1.FetchFileDiffRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchFileDiffRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchFileDiffRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchFileDiffRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchFileDiffRequest) + private static final com.google.cloud.dataform.v1beta1.FetchFileDiffRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchFileDiffRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchFileDiffRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java new file mode 100644 index 0000000..ce8cdcb --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchFileDiffRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffResponse.java new file mode 100644 index 0000000..3930b0b --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffResponse.java @@ -0,0 +1,639 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchFileDiff` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchFileDiffResponse} + */ +public final class FetchFileDiffResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchFileDiffResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + formattedDiff_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.class, + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.Builder.class); + } + + public static final int FORMATTED_DIFF_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchFileDiffResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse other = + (com.google.cloud.dataform.v1beta1.FetchFileDiffResponse) obj; + + if (!getFormattedDiff().equals(other.getFormattedDiff())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchFileDiffResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileDiffResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileDiffResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchFileDiffResponse) + com.google.cloud.dataform.v1beta1.FetchFileDiffResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.class, + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + formattedDiff_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffResponse build() { + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffResponse buildPartial() { + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse result = + new com.google.cloud.dataform.v1beta1.FetchFileDiffResponse(this); + result.formattedDiff_ = formattedDiff_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchFileDiffResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchFileDiffResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchFileDiffResponse other) { + if (other == com.google.cloud.dataform.v1beta1.FetchFileDiffResponse.getDefaultInstance()) + return this; + if (!other.getFormattedDiff().isEmpty()) { + formattedDiff_ = other.formattedDiff_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchFileDiffResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchFileDiffResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchFileDiffResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchFileDiffResponse) + private static final com.google.cloud.dataform.v1beta1.FetchFileDiffResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchFileDiffResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchFileDiffResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileDiffResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffResponseOrBuilder.java new file mode 100644 index 0000000..614a9d4 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileDiffResponseOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchFileDiffResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesRequest.java new file mode 100644 index 0000000..33ce109 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesRequest.java @@ -0,0 +1,657 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchFileGitStatuses` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest} + */ +public final class FetchFileGitStatusesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchFileGitStatusesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.class, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest other = + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.class, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest build() { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest result = + new com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest) + private static final com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchFileGitStatusesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesRequestOrBuilder.java new file mode 100644 index 0000000..123a882 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchFileGitStatusesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesResponse.java new file mode 100644 index 0000000..efa184e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesResponse.java @@ -0,0 +1,2227 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchFileGitStatuses` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse} + */ +public final class FetchFileGitStatusesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchFileGitStatusesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + uncommittedFileChanges_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange>(); + mutable_bitField0_ |= 0x00000001; + } + uncommittedFileChanges_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + uncommittedFileChanges_ = java.util.Collections.unmodifiableList(uncommittedFileChanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.class, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.Builder.class); + } + + public interface UncommittedFileChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State + getState(); + } + /** + * + * + *
+   * Represents the Git state of a file with uncommitted changes.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} + */ + public static final class UncommittedFileChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UncommittedFileChange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + path_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .class, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder.class); + } + + /** + * + * + *
+     * Indicates the status of an uncommitted file change.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State) + } + + public static final int PATH_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+     * Indicates the status of the file.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State + getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State + result = + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State.valueOf(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange other = + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + obj; + + if (!getPath().equals(other.getPath())) return false; + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .class, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + path_ = ""; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_UncommittedFileChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + build() { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + buildPartial() { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + result = + new com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange(this); + result.path_ = path_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+       * Indicates the status of the file.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.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; + onChanged(); + return this; + } + /** + * + * + *
+       * Indicates the status of the file.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State + getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State + result = + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State.valueOf(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Indicates the status of the file.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State + value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Indicates the status of the file.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + 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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange) + private static final com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new UncommittedFileChange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int UNCOMMITTED_FILE_CHANGES_FIELD_NUMBER = 1; + private java.util.List< + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse other = + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) obj; + + if (!getUncommittedFileChangesList().equals(other.getUncommittedFileChangesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.class, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUncommittedFileChangesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (uncommittedFileChangesBuilder_ == null) { + uncommittedFileChanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + uncommittedFileChangesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse build() { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse buildPartial() { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse result = + new com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse(this); + int from_bitField0_ = bitField0_; + if (uncommittedFileChangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + uncommittedFileChanges_ = java.util.Collections.unmodifiableList(uncommittedFileChanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.uncommittedFileChanges_ = uncommittedFileChanges_; + } else { + result.uncommittedFileChanges_ = uncommittedFileChangesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.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.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange> + uncommittedFileChanges_ = java.util.Collections.emptyList(); + + private void ensureUncommittedFileChangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + uncommittedFileChanges_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange>(uncommittedFileChanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder setUncommittedFileChanges( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder setUncommittedFileChanges( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder addUncommittedFileChanges( + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder addUncommittedFileChanges( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder addUncommittedFileChanges( + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder addUncommittedFileChanges( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public Builder addAllUncommittedFileChanges( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder + addUncommittedFileChangesBuilder() { + return getUncommittedFileChangesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder + addUncommittedFileChangesBuilder(int index) { + return getUncommittedFileChangesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder> + getUncommittedFileChangesBuilderList() { + return getUncommittedFileChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChangeOrBuilder> + getUncommittedFileChangesFieldBuilder() { + if (uncommittedFileChangesBuilder_ == null) { + uncommittedFileChangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + .UncommittedFileChange, + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + .Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse) + private static final com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchFileGitStatusesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesResponseOrBuilder.java new file mode 100644 index 0000000..81d1214 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchFileGitStatusesResponseOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchFileGitStatusesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + java.util.List< + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * + */ + com.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChangeOrBuilder + getUncommittedFileChangesOrBuilder(int index); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java new file mode 100644 index 0000000..d677f32 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequest.java @@ -0,0 +1,849 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchGitAheadBehind` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest} + */ +public final class FetchGitAheadBehindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchGitAheadBehindRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + remoteBranch_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.class, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest other = + (com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRemoteBranch().equals(other.getRemoteBranch())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchGitAheadBehindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.class, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + remoteBranch_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest build() { + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest buildPartial() { + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest result = + new com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest(this); + result.name_ = name_; + result.remoteBranch_ = remoteBranch_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRemoteBranch().isEmpty()) { + remoteBranch_ = other.remoteBranch_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest) + private static final com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchGitAheadBehindRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java new file mode 100644 index 0000000..eb0052e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindRequestOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchGitAheadBehindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindResponse.java new file mode 100644 index 0000000..0166d01 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindResponse.java @@ -0,0 +1,643 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchGitAheadBehind` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse} + */ +public final class FetchGitAheadBehindResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchGitAheadBehindResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + commitsAhead_ = input.readInt32(); + break; + } + case 16: + { + commitsBehind_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.class, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.Builder.class); + } + + public static final int COMMITS_AHEAD_FIELD_NUMBER = 1; + 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_; + } + + public static final int COMMITS_BEHIND_FIELD_NUMBER = 2; + 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_; + } + + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse other = + (com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) obj; + + if (getCommitsAhead() != other.getCommitsAhead()) return false; + if (getCommitsBehind() != other.getCommitsBehind()) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchGitAheadBehindResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchGitAheadBehindResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.class, + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + commitsAhead_ = 0; + + commitsBehind_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse build() { + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse buildPartial() { + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse result = + new com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse(this); + result.commitsAhead_ = commitsAhead_; + result.commitsBehind_ = commitsBehind_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse.getDefaultInstance()) + return this; + if (other.getCommitsAhead() != 0) { + setCommitsAhead(other.getCommitsAhead()); + } + if (other.getCommitsBehind() != 0) { + setCommitsBehind(other.getCommitsBehind()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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() { + + 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; + 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() { + + 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.v1beta1.FetchGitAheadBehindResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse) + private static final com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchGitAheadBehindResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindResponseOrBuilder.java new file mode 100644 index 0000000..b5c2170 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchGitAheadBehindResponseOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchGitAheadBehindResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesRequest.java new file mode 100644 index 0000000..4eaac86 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchRemoteBranches` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest} + */ +public final class FetchRemoteBranchesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchRemoteBranchesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.class, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest other = + (com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchRemoteBranchesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.class, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest build() { + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest result = + new com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest) + private static final com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchRemoteBranchesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesRequestOrBuilder.java new file mode 100644 index 0000000..bcb36bf --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchRemoteBranchesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesResponse.java new file mode 100644 index 0000000..55d6e6a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesResponse.java @@ -0,0 +1,744 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `FetchRemoteBranches` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse} + */ +public final class FetchRemoteBranchesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchRemoteBranchesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchRemoteBranchesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + branches_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + branches_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + branches_ = branches_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.class, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.Builder.class); + } + + public static final int BRANCHES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList branches_; + /** + * + * + *
+   * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse other = + (com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) obj; + + if (!getBranchesList().equals(other.getBranchesList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.FetchRemoteBranchesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FetchRemoteBranchesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.class, + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + branches_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse build() { + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse buildPartial() { + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse result = + new com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + branches_ = branches_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.branches_ = branches_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.getDefaultInstance()) + return this; + if (!other.branches_.isEmpty()) { + if (branches_.isEmpty()) { + branches_ = other.branches_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBranchesIsMutable(); + branches_.addAll(other.branches_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList branches_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureBranchesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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() { + return branches_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse) + private static final com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new FetchRemoteBranchesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesResponseOrBuilder.java new file mode 100644 index 0000000..1bef05e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FetchRemoteBranchesResponseOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface FetchRemoteBranchesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetCompilationResultRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetCompilationResultRequest.java new file mode 100644 index 0000000..5346fd3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetCompilationResultRequest.java @@ -0,0 +1,657 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `GetCompilationResult` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetCompilationResultRequest} + */ +public final class GetCompilationResultRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCompilationResultRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.class, + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetCompilationResultRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest other = + (com.google.cloud.dataform.v1beta1.GetCompilationResultRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetCompilationResultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetCompilationResultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetCompilationResultRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetCompilationResultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetCompilationResultRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.GetCompilationResultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetCompilationResultRequest) + com.google.cloud.dataform.v1beta1.GetCompilationResultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.class, + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetCompilationResultRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetCompilationResultRequest build() { + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetCompilationResultRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest result = + new com.google.cloud.dataform.v1beta1.GetCompilationResultRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetCompilationResultRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetCompilationResultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetCompilationResultRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.GetCompilationResultRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.GetCompilationResultRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.GetCompilationResultRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetCompilationResultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetCompilationResultRequest) + private static final com.google.cloud.dataform.v1beta1.GetCompilationResultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetCompilationResultRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new GetCompilationResultRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetCompilationResultRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetCompilationResultRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetCompilationResultRequestOrBuilder.java new file mode 100644 index 0000000..20e206f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetCompilationResultRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface GetCompilationResultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetRepositoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetRepositoryRequest.java new file mode 100644 index 0000000..ac23c25 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetRepositoryRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `GetRepository` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetRepositoryRequest} + */ +public final class GetRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetRepositoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.GetRepositoryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetRepositoryRequest other = + (com.google.cloud.dataform.v1beta1.GetRepositoryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.GetRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetRepositoryRequest) + com.google.cloud.dataform.v1beta1.GetRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.GetRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetRepositoryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetRepositoryRequest build() { + com.google.cloud.dataform.v1beta1.GetRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetRepositoryRequest result = + new com.google.cloud.dataform.v1beta1.GetRepositoryRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.GetRepositoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.GetRepositoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.GetRepositoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetRepositoryRequest) + private static final com.google.cloud.dataform.v1beta1.GetRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new GetRepositoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetRepositoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetRepositoryRequestOrBuilder.java new file mode 100644 index 0000000..b691eed --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetRepositoryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface GetRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowInvocationRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowInvocationRequest.java new file mode 100644 index 0000000..361bf67 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowInvocationRequest.java @@ -0,0 +1,659 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `GetWorkflowInvocation` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest} + */ +public final class GetWorkflowInvocationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetWorkflowInvocationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest other = + (com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkflowInvocationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkflowInvocationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkflowInvocationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkflowInvocationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.GetWorkflowInvocationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.class, + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest build() { + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest result = + new com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest) + private static final com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new GetWorkflowInvocationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowInvocationRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowInvocationRequestOrBuilder.java new file mode 100644 index 0000000..1de0c8d --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkflowInvocationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface GetWorkflowInvocationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkspaceRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkspaceRequest.java new file mode 100644 index 0000000..646e397 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkspaceRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `GetWorkspace` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetWorkspaceRequest} + */ +public final class GetWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetWorkspaceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.class, + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest other = + (com.google.cloud.dataform.v1beta1.GetWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.GetWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.GetWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetWorkspaceRequest) + com.google.cloud.dataform.v1beta1.GetWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.class, + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkspaceRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkspaceRequest build() { + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkspaceRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest result = + new com.google.cloud.dataform.v1beta1.GetWorkspaceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetWorkspaceRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetWorkspaceRequest other) { + if (other == com.google.cloud.dataform.v1beta1.GetWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.GetWorkspaceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.GetWorkspaceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetWorkspaceRequest) + private static final com.google.cloud.dataform.v1beta1.GetWorkspaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetWorkspaceRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new GetWorkspaceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkspaceRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkspaceRequestOrBuilder.java new file mode 100644 index 0000000..ad7864e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetWorkspaceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface GetWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesRequest.java new file mode 100644 index 0000000..ea3d1df --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `InstallNpmPackages` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.InstallNpmPackagesRequest} + */ +public final class InstallNpmPackagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InstallNpmPackagesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.class, + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest other = + (com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.InstallNpmPackagesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.class, + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest build() { + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest result = + new com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest(this); + result.workspace_ = workspace_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest other) { + if (other == com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.InstallNpmPackagesRequest) + private static final com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new InstallNpmPackagesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesRequestOrBuilder.java new file mode 100644 index 0000000..4705367 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface InstallNpmPackagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesResponse.java new file mode 100644 index 0000000..c7aae67 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesResponse.java @@ -0,0 +1,462 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `InstallNpmPackages` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.InstallNpmPackagesResponse} + */ +public final class InstallNpmPackagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InstallNpmPackagesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.class, + com.google.cloud.dataform.v1beta1.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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse other = + (com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.InstallNpmPackagesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.class, + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse build() { + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse buildPartial() { + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse result = + new com.google.cloud.dataform.v1beta1.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.v1beta1.InstallNpmPackagesResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) + private static final com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new InstallNpmPackagesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesResponseOrBuilder.java new file mode 100644 index 0000000..4091a48 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InstallNpmPackagesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface InstallNpmPackagesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.InstallNpmPackagesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java new file mode 100644 index 0000000..a4e2723 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequest.java @@ -0,0 +1,965 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListCompilationResults` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListCompilationResultsRequest} + */ +public final class ListCompilationResultsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompilationResultsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.class, + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest other = + (com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListCompilationResultsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListCompilationResultsRequest) + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.class, + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest build() { + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest result = + new com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListCompilationResultsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListCompilationResultsRequest) + private static final com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListCompilationResultsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java new file mode 100644 index 0000000..4e4c7bd --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListCompilationResultsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsResponse.java new file mode 100644 index 0000000..df4eed6 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsResponse.java @@ -0,0 +1,1460 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListCompilationResults` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListCompilationResultsResponse} + */ +public final class ListCompilationResultsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCompilationResultsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCompilationResultsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + compilationResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + compilationResults_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResult.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + compilationResults_ = java.util.Collections.unmodifiableList(compilationResults_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.class, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.Builder.class); + } + + public static final int COMPILATION_RESULTS_FIELD_NUMBER = 1; + private java.util.List compilationResults_; + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + @java.lang.Override + public java.util.List + getCompilationResultsList() { + return compilationResults_; + } + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + @java.lang.Override + public java.util.List + getCompilationResultsOrBuilderList() { + return compilationResults_; + } + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + @java.lang.Override + public int getCompilationResultsCount() { + return compilationResults_.size(); + } + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResults(int index) { + return compilationResults_.get(index); + } + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder + getCompilationResultsOrBuilder(int index) { + return compilationResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse other = + (com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse) obj; + + if (!getCompilationResultsList().equals(other.getCompilationResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListCompilationResultsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListCompilationResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.class, + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompilationResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (compilationResultsBuilder_ == null) { + compilationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + compilationResultsBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse build() { + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse result = + new com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse(this); + int from_bitField0_ = bitField0_; + if (compilationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + compilationResults_ = java.util.Collections.unmodifiableList(compilationResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.compilationResults_ = compilationResults_; + } else { + result.compilationResults_ = compilationResultsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.CompilationResult, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder> + compilationResultsBuilder_; + + /** + * + * + *
+     * List of compilation results.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResults(int index) { + if (compilationResultsBuilder_ == null) { + return compilationResults_.get(index); + } else { + return compilationResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of compilation results.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + * + */ + public Builder setCompilationResults( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public Builder setCompilationResults( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public Builder addCompilationResults( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public Builder addCompilationResults( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public Builder addCompilationResults( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public Builder addCompilationResults( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.Builder getCompilationResultsBuilder( + int index) { + return getCompilationResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of compilation results.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder + getCompilationResultsOrBuilder(int index) { + if (compilationResultsBuilder_ == null) { + return compilationResults_.get(index); + } else { + return compilationResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of compilation results.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.CompilationResult compilation_results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.Builder + addCompilationResultsBuilder() { + return getCompilationResultsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance()); + } + /** + * + * + *
+     * List of compilation results.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResult.Builder addCompilationResultsBuilder( + int index) { + return getCompilationResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.dataform.v1beta1.CompilationResult.getDefaultInstance()); + } + /** + * + * + *
+     * List of compilation results.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + * + */ + public java.util.List + getCompilationResultsBuilderList() { + return getCompilationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultOrBuilder> + getCompilationResultsFieldBuilder() { + if (compilationResultsBuilder_ == null) { + compilationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResult, + com.google.cloud.dataform.v1beta1.CompilationResult.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + private static final com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListCompilationResultsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListCompilationResultsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsResponseOrBuilder.java new file mode 100644 index 0000000..83d007d --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListCompilationResultsResponseOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListCompilationResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListCompilationResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + java.util.List getCompilationResultsList(); + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + com.google.cloud.dataform.v1beta1.CompilationResult getCompilationResults(int index); + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + int getCompilationResultsCount(); + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + java.util.List + getCompilationResultsOrBuilderList(); + /** + * + * + *
+   * List of compilation results.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java new file mode 100644 index 0000000..a9879fc --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequest.java @@ -0,0 +1,1330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListRepositories` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListRepositoriesRequest} + */ +public final class ListRepositoriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListRepositoriesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.class, + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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; + 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListRepositoriesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListRepositoriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListRepositoriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListRepositoriesRequest) + com.google.cloud.dataform.v1beta1.ListRepositoriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.class, + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesRequest build() { + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest result = + new com.google.cloud.dataform.v1beta1.ListRepositoriesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListRepositoriesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListRepositoriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListRepositoriesRequest other) { + if (other == com.google.cloud.dataform.v1beta1.ListRepositoriesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListRepositoriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListRepositoriesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListRepositoriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListRepositoriesRequest) + private static final com.google.cloud.dataform.v1beta1.ListRepositoriesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListRepositoriesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListRepositoriesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java new file mode 100644 index 0000000..4e84110 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesRequestOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListRepositoriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesResponse.java new file mode 100644 index 0000000..a976bb8 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesResponse.java @@ -0,0 +1,1418 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListRepositories` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListRepositoriesResponse} + */ +public final class ListRepositoriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRepositoriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListRepositoriesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + repositories_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + repositories_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.Repository.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + repositories_ = java.util.Collections.unmodifiableList(repositories_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.class, + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.Builder.class); + } + + public static final int REPOSITORIES_FIELD_NUMBER = 1; + private java.util.List repositories_; + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + @java.lang.Override + public java.util.List getRepositoriesList() { + return repositories_; + } + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + @java.lang.Override + public java.util.List + getRepositoriesOrBuilderList() { + return repositories_; + } + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + @java.lang.Override + public int getRepositoriesCount() { + return repositories_.size(); + } + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepositories(int index) { + return repositories_.get(index); + } + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoriesOrBuilder(int index) { + return repositories_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListRepositoriesResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse other = + (com.google.cloud.dataform.v1beta1.ListRepositoriesResponse) obj; + + if (!getRepositoriesList().equals(other.getRepositoriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListRepositoriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListRepositoriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListRepositoriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListRepositoriesResponse) + com.google.cloud.dataform.v1beta1.ListRepositoriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.class, + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRepositoriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (repositoriesBuilder_ == null) { + repositories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + repositoriesBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListRepositoriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesResponse build() { + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse result = + new com.google.cloud.dataform.v1beta1.ListRepositoriesResponse(this); + int from_bitField0_ = bitField0_; + if (repositoriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + repositories_ = java.util.Collections.unmodifiableList(repositories_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.repositories_ = repositories_; + } else { + result.repositories_ = repositoriesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListRepositoriesResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListRepositoriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListRepositoriesResponse other) { + if (other == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListRepositoriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListRepositoriesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + repositoriesBuilder_; + + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public int getRepositoriesCount() { + if (repositoriesBuilder_ == null) { + return repositories_.size(); + } else { + return repositoriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + public com.google.cloud.dataform.v1beta1.Repository getRepositories(int index) { + if (repositoriesBuilder_ == null) { + return repositories_.get(index); + } else { + return repositoriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + public Builder setRepositories(int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public Builder setRepositories( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public Builder addRepositories(com.google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public Builder addRepositories(int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public Builder addRepositories( + com.google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public Builder addRepositories( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder getRepositoriesBuilder(int index) { + return getRepositoriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoriesOrBuilder( + int index) { + if (repositoriesBuilder_ == null) { + return repositories_.get(index); + } else { + return repositoriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.Repository repositories = 1; + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder addRepositoriesBuilder() { + return getRepositoriesFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()); + } + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder addRepositoriesBuilder(int index) { + return getRepositoriesFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()); + } + /** + * + * + *
+     * List of repositories.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + public java.util.List + getRepositoriesBuilderList() { + return getRepositoriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + getRepositoriesFieldBuilder() { + if (repositoriesBuilder_ == null) { + repositoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListRepositoriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListRepositoriesResponse) + private static final com.google.cloud.dataform.v1beta1.ListRepositoriesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListRepositoriesResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListRepositoriesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListRepositoriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesResponseOrBuilder.java new file mode 100644 index 0000000..7476199 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListRepositoriesResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListRepositoriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListRepositoriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + java.util.List getRepositoriesList(); + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + com.google.cloud.dataform.v1beta1.Repository getRepositories(int index); + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + int getRepositoriesCount(); + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + java.util.List + getRepositoriesOrBuilderList(); + /** + * + * + *
+   * List of repositories.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java new file mode 100644 index 0000000..8a3bb35 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequest.java @@ -0,0 +1,966 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListWorkflowInvocations` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest} + */ +public final class ListWorkflowInvocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListWorkflowInvocationsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.class, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest other = + (com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListWorkflowInvocationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.class, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest build() { + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest result = + new com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest) + private static final com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListWorkflowInvocationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java new file mode 100644 index 0000000..b8d5eab --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListWorkflowInvocationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsResponse.java new file mode 100644 index 0000000..d2523e3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsResponse.java @@ -0,0 +1,1467 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListWorkflowInvocations` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse} + */ +public final class ListWorkflowInvocationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListWorkflowInvocationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListWorkflowInvocationsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workflowInvocations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workflowInvocations_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + workflowInvocations_ = java.util.Collections.unmodifiableList(workflowInvocations_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.class, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.Builder.class); + } + + public static final int WORKFLOW_INVOCATIONS_FIELD_NUMBER = 1; + private java.util.List workflowInvocations_; + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + @java.lang.Override + public java.util.List + getWorkflowInvocationsList() { + return workflowInvocations_; + } + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + @java.lang.Override + public java.util.List + getWorkflowInvocationsOrBuilderList() { + return workflowInvocations_; + } + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + @java.lang.Override + public int getWorkflowInvocationsCount() { + return workflowInvocations_.size(); + } + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocations(int index) { + return workflowInvocations_.get(index); + } + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder + getWorkflowInvocationsOrBuilder(int index) { + return workflowInvocations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse other = + (com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) obj; + + if (!getWorkflowInvocationsList().equals(other.getWorkflowInvocationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkflowInvocationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListWorkflowInvocationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.class, + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWorkflowInvocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowInvocationsBuilder_ == null) { + workflowInvocations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workflowInvocationsBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse build() { + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse result = + new com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse(this); + int from_bitField0_ = bitField0_; + if (workflowInvocationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workflowInvocations_ = java.util.Collections.unmodifiableList(workflowInvocations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflowInvocations_ = workflowInvocations_; + } else { + result.workflowInvocations_ = workflowInvocationsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.WorkflowInvocation, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder> + workflowInvocationsBuilder_; + + /** + * + * + *
+     * List of workflow invocations.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocations(int index) { + if (workflowInvocationsBuilder_ == null) { + return workflowInvocations_.get(index); + } else { + return workflowInvocationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of workflow invocations.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public Builder setWorkflowInvocations( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public Builder setWorkflowInvocations( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public Builder addWorkflowInvocations( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public Builder addWorkflowInvocations( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public Builder addWorkflowInvocations( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public Builder addWorkflowInvocations( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder + getWorkflowInvocationsBuilder(int index) { + return getWorkflowInvocationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of workflow invocations.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder + getWorkflowInvocationsOrBuilder(int index) { + if (workflowInvocationsBuilder_ == null) { + return workflowInvocations_.get(index); + } else { + return workflowInvocationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of workflow invocations.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder + addWorkflowInvocationsBuilder() { + return getWorkflowInvocationsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance()); + } + /** + * + * + *
+     * List of workflow invocations.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder + addWorkflowInvocationsBuilder(int index) { + return getWorkflowInvocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance()); + } + /** + * + * + *
+     * List of workflow invocations.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + public java.util.List + getWorkflowInvocationsBuilderList() { + return getWorkflowInvocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder> + getWorkflowInvocationsFieldBuilder() { + if (workflowInvocationsBuilder_ == null) { + workflowInvocationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) + private static final com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListWorkflowInvocationsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsResponseOrBuilder.java new file mode 100644 index 0000000..8481a5f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkflowInvocationsResponseOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListWorkflowInvocationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + java.util.List getWorkflowInvocationsList(); + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocations(int index); + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + int getWorkflowInvocationsCount(); + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + java.util.List + getWorkflowInvocationsOrBuilderList(); + /** + * + * + *
+   * List of workflow invocations.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java new file mode 100644 index 0000000..e9362bf --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequest.java @@ -0,0 +1,1330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListWorkspaces` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkspacesRequest} + */ +public final class ListWorkspacesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListWorkspacesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.class, + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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; + 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListWorkspacesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListWorkspacesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListWorkspacesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListWorkspacesRequest) + com.google.cloud.dataform.v1beta1.ListWorkspacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.class, + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesRequest build() { + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest result = + new com.google.cloud.dataform.v1beta1.ListWorkspacesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListWorkspacesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListWorkspacesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListWorkspacesRequest other) { + if (other == com.google.cloud.dataform.v1beta1.ListWorkspacesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListWorkspacesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListWorkspacesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListWorkspacesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListWorkspacesRequest) + private static final com.google.cloud.dataform.v1beta1.ListWorkspacesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListWorkspacesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListWorkspacesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java new file mode 100644 index 0000000..ee42771 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesRequestOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListWorkspacesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesResponse.java new file mode 100644 index 0000000..1676436 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesResponse.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ListWorkspaces` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ListWorkspacesResponse} + */ +public final class ListWorkspacesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListWorkspacesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListWorkspacesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workspaces_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workspaces_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.Workspace.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + workspaces_ = java.util.Collections.unmodifiableList(workspaces_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.class, + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.Builder.class); + } + + public static final int WORKSPACES_FIELD_NUMBER = 1; + private java.util.List workspaces_; + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + @java.lang.Override + public java.util.List getWorkspacesList() { + return workspaces_; + } + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + @java.lang.Override + public java.util.List + getWorkspacesOrBuilderList() { + return workspaces_; + } + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + @java.lang.Override + public int getWorkspacesCount() { + return workspaces_.size(); + } + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Workspace getWorkspaces(int index) { + return workspaces_.get(index); + } + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder getWorkspacesOrBuilder(int index) { + return workspaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ListWorkspacesResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse other = + (com.google.cloud.dataform.v1beta1.ListWorkspacesResponse) obj; + + if (!getWorkspacesList().equals(other.getWorkspacesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ListWorkspacesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ListWorkspacesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListWorkspacesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ListWorkspacesResponse) + com.google.cloud.dataform.v1beta1.ListWorkspacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.class, + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWorkspacesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (workspacesBuilder_ == null) { + workspaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workspacesBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ListWorkspacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse build() { + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse result = + new com.google.cloud.dataform.v1beta1.ListWorkspacesResponse(this); + int from_bitField0_ = bitField0_; + if (workspacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workspaces_ = java.util.Collections.unmodifiableList(workspaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workspaces_ = workspaces_; + } else { + result.workspaces_ = workspacesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ListWorkspacesResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ListWorkspacesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ListWorkspacesResponse other) { + if (other == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ListWorkspacesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ListWorkspacesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.Workspace, + com.google.cloud.dataform.v1beta1.Workspace.Builder, + com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder> + workspacesBuilder_; + + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public int getWorkspacesCount() { + if (workspacesBuilder_ == null) { + return workspaces_.size(); + } else { + return workspacesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + public com.google.cloud.dataform.v1beta1.Workspace getWorkspaces(int index) { + if (workspacesBuilder_ == null) { + return workspaces_.get(index); + } else { + return workspacesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + public Builder setWorkspaces(int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public Builder setWorkspaces( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public Builder addWorkspaces(com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public Builder addWorkspaces(int index, com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public Builder addWorkspaces( + com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public Builder addWorkspaces( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public com.google.cloud.dataform.v1beta1.Workspace.Builder getWorkspacesBuilder(int index) { + return getWorkspacesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + public com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder getWorkspacesOrBuilder(int index) { + if (workspacesBuilder_ == null) { + return workspaces_.get(index); + } else { + return workspacesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.Workspace workspaces = 1; + */ + public com.google.cloud.dataform.v1beta1.Workspace.Builder addWorkspacesBuilder() { + return getWorkspacesFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance()); + } + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + public com.google.cloud.dataform.v1beta1.Workspace.Builder addWorkspacesBuilder(int index) { + return getWorkspacesFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance()); + } + /** + * + * + *
+     * List of workspaces.
+     * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + public java.util.List + getWorkspacesBuilderList() { + return getWorkspacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Workspace, + com.google.cloud.dataform.v1beta1.Workspace.Builder, + com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder> + getWorkspacesFieldBuilder() { + if (workspacesBuilder_ == null) { + workspacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Workspace, + com.google.cloud.dataform.v1beta1.Workspace.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations which could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ListWorkspacesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ListWorkspacesResponse) + private static final com.google.cloud.dataform.v1beta1.ListWorkspacesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ListWorkspacesResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ListWorkspacesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ListWorkspacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesResponseOrBuilder.java new file mode 100644 index 0000000..fc58ae4 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ListWorkspacesResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ListWorkspacesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ListWorkspacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + java.util.List getWorkspacesList(); + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + com.google.cloud.dataform.v1beta1.Workspace getWorkspaces(int index); + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + int getWorkspacesCount(); + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + java.util.List + getWorkspacesOrBuilderList(); + /** + * + * + *
+   * List of workspaces.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java new file mode 100644 index 0000000..f8da7ee --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class 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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java new file mode 100644 index 0000000..4d2aa7f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequest.java @@ -0,0 +1,839 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `MakeDirectory` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.MakeDirectoryRequest} + */ +public final class MakeDirectoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MakeDirectoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.class, + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MakeDirectoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest other = + (com.google.cloud.dataform.v1beta1.MakeDirectoryRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MakeDirectoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.MakeDirectoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MakeDirectoryRequest) + com.google.cloud.dataform.v1beta1.MakeDirectoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.class, + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryRequest build() { + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest result = + new com.google.cloud.dataform.v1beta1.MakeDirectoryRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MakeDirectoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MakeDirectoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MakeDirectoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.MakeDirectoryRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.MakeDirectoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.MakeDirectoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MakeDirectoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MakeDirectoryRequest) + private static final com.google.cloud.dataform.v1beta1.MakeDirectoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MakeDirectoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new MakeDirectoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java new file mode 100644 index 0000000..11bc721 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface MakeDirectoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryResponse.java new file mode 100644 index 0000000..48db3de --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryResponse.java @@ -0,0 +1,459 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `MakeDirectory` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.MakeDirectoryResponse} + */ +public final class MakeDirectoryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MakeDirectoryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.class, + com.google.cloud.dataform.v1beta1.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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MakeDirectoryResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse other = + (com.google.cloud.dataform.v1beta1.MakeDirectoryResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MakeDirectoryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.MakeDirectoryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MakeDirectoryResponse) + com.google.cloud.dataform.v1beta1.MakeDirectoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.class, + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse build() { + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse buildPartial() { + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse result = + new com.google.cloud.dataform.v1beta1.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.v1beta1.MakeDirectoryResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MakeDirectoryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MakeDirectoryResponse other) { + if (other == com.google.cloud.dataform.v1beta1.MakeDirectoryResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.MakeDirectoryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.MakeDirectoryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MakeDirectoryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MakeDirectoryResponse) + private static final com.google.cloud.dataform.v1beta1.MakeDirectoryResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MakeDirectoryResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new MakeDirectoryResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MakeDirectoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryResponseOrBuilder.java new file mode 100644 index 0000000..0fcc051 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MakeDirectoryResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface MakeDirectoryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MakeDirectoryResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java new file mode 100644 index 0000000..889fd97 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequest.java @@ -0,0 +1,1025 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `MoveDirectory` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveDirectoryRequest} + */ +public final class MoveDirectoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MoveDirectoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + newPath_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.class, + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveDirectoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest other = + (com.google.cloud.dataform.v1beta1.MoveDirectoryRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getNewPath().equals(other.getNewPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveDirectoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.MoveDirectoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveDirectoryRequest) + com.google.cloud.dataform.v1beta1.MoveDirectoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.class, + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + newPath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryRequest build() { + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest result = + new com.google.cloud.dataform.v1beta1.MoveDirectoryRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + result.newPath_ = newPath_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MoveDirectoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveDirectoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveDirectoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.MoveDirectoryRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getNewPath().isEmpty()) { + newPath_ = other.newPath_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.MoveDirectoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.MoveDirectoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveDirectoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveDirectoryRequest) + private static final com.google.cloud.dataform.v1beta1.MoveDirectoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveDirectoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new MoveDirectoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java new file mode 100644 index 0000000..6ddb1e5 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface MoveDirectoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryResponse.java new file mode 100644 index 0000000..af446d5 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryResponse.java @@ -0,0 +1,459 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `MoveDirectory` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveDirectoryResponse} + */ +public final class MoveDirectoryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MoveDirectoryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.class, + com.google.cloud.dataform.v1beta1.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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveDirectoryResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse other = + (com.google.cloud.dataform.v1beta1.MoveDirectoryResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveDirectoryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.MoveDirectoryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveDirectoryResponse) + com.google.cloud.dataform.v1beta1.MoveDirectoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.class, + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryResponse build() { + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryResponse buildPartial() { + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse result = + new com.google.cloud.dataform.v1beta1.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.v1beta1.MoveDirectoryResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveDirectoryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveDirectoryResponse other) { + if (other == com.google.cloud.dataform.v1beta1.MoveDirectoryResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.MoveDirectoryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.MoveDirectoryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveDirectoryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveDirectoryResponse) + private static final com.google.cloud.dataform.v1beta1.MoveDirectoryResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveDirectoryResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new MoveDirectoryResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveDirectoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryResponseOrBuilder.java new file mode 100644 index 0000000..54d0d24 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveDirectoryResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface MoveDirectoryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MoveDirectoryResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java new file mode 100644 index 0000000..6142332 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequest.java @@ -0,0 +1,1010 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `MoveFile` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveFileRequest} + */ +public final class MoveFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MoveFileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + newPath_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFileRequest.class, + com.google.cloud.dataform.v1beta1.MoveFileRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveFileRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveFileRequest other = + (com.google.cloud.dataform.v1beta1.MoveFileRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getNewPath().equals(other.getNewPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.MoveFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveFileRequest) + com.google.cloud.dataform.v1beta1.MoveFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFileRequest.class, + com.google.cloud.dataform.v1beta1.MoveFileRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveFileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + newPath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileRequest build() { + com.google.cloud.dataform.v1beta1.MoveFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileRequest buildPartial() { + com.google.cloud.dataform.v1beta1.MoveFileRequest result = + new com.google.cloud.dataform.v1beta1.MoveFileRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + result.newPath_ = newPath_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MoveFileRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveFileRequest other) { + if (other == com.google.cloud.dataform.v1beta1.MoveFileRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getNewPath().isEmpty()) { + newPath_ = other.newPath_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.MoveFileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.MoveFileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveFileRequest) + private static final com.google.cloud.dataform.v1beta1.MoveFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveFileRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new MoveFileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java new file mode 100644 index 0000000..2607f3a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface MoveFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileResponse.java new file mode 100644 index 0000000..5d1a0a8 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileResponse.java @@ -0,0 +1,458 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `MoveFile` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveFileResponse} + */ +public final class MoveFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MoveFileResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFileResponse.class, + com.google.cloud.dataform.v1beta1.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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveFileResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveFileResponse other = + (com.google.cloud.dataform.v1beta1.MoveFileResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveFileResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.MoveFileResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveFileResponse) + com.google.cloud.dataform.v1beta1.MoveFileResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFileResponse.class, + com.google.cloud.dataform.v1beta1.MoveFileResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveFileResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveFileResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileResponse build() { + com.google.cloud.dataform.v1beta1.MoveFileResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileResponse buildPartial() { + com.google.cloud.dataform.v1beta1.MoveFileResponse result = + new com.google.cloud.dataform.v1beta1.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.v1beta1.MoveFileResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveFileResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveFileResponse other) { + if (other == com.google.cloud.dataform.v1beta1.MoveFileResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.MoveFileResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.MoveFileResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveFileResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveFileResponse) + private static final com.google.cloud.dataform.v1beta1.MoveFileResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveFileResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new MoveFileResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFileResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileResponseOrBuilder.java new file mode 100644 index 0000000..1827d12 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFileResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface MoveFileResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MoveFileResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java new file mode 100644 index 0000000..6c44955 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequest.java @@ -0,0 +1,1153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `PullGitCommits` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.PullGitCommitsRequest} + */ +public final class PullGitCommitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PullGitCommitsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + remoteBranch_ = s; + break; + } + case 26: + { + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder subBuilder = null; + if (author_ != null) { + subBuilder = author_.toBuilder(); + } + author_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.CommitAuthor.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(author_); + author_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.class, + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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; + 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.v1beta1.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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return author_ != null; + } + /** + * + * + *
+   * 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + /** + * + * + *
+   * Required. The author of any merge commit which may be created as a result of merging
+   * fetched Git commits into this workspace.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + return getAuthor(); + } + + 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 (author_ != null) { + output.writeMessage(3, getAuthor()); + } + unknownFields.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 (author_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthor()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.PullGitCommitsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.PullGitCommitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PullGitCommitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PullGitCommitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PullGitCommitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PullGitCommitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PullGitCommitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.PullGitCommitsRequest) + com.google.cloud.dataform.v1beta1.PullGitCommitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.class, + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + remoteBranch_ = ""; + + if (authorBuilder_ == null) { + author_ = null; + } else { + author_ = null; + authorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PullGitCommitsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PullGitCommitsRequest build() { + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PullGitCommitsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest result = + new com.google.cloud.dataform.v1beta1.PullGitCommitsRequest(this); + result.name_ = name_; + result.remoteBranch_ = remoteBranch_; + if (authorBuilder_ == null) { + result.author_ = author_; + } else { + result.author_ = authorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.PullGitCommitsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.PullGitCommitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.PullGitCommitsRequest other) { + if (other == com.google.cloud.dataform.v1beta1.PullGitCommitsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRemoteBranch().isEmpty()) { + remoteBranch_ = other.remoteBranch_; + onChanged(); + } + if (other.hasAuthor()) { + mergeAuthor(other.getAuthor()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.PullGitCommitsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.PullGitCommitsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.CommitAuthor author_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + authorBuilder_; + /** + * + * + *
+     * 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return authorBuilder_ != null || author_ != null; + } + /** + * + * + *
+     * 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor() { + if (authorBuilder_ == null) { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } else { + return authorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The author of any merge commit which may be created as a result of merging
+     * fetched Git commits into this workspace.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + onChanged(); + } else { + authorBuilder_.setMessage(value); + } + + 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthor( + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder builderForValue) { + if (authorBuilder_ == null) { + author_ = builderForValue.build(); + onChanged(); + } else { + authorBuilder_.setMessage(builderForValue.build()); + } + + 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthor(com.google.cloud.dataform.v1beta1.CommitAuthor value) { + if (authorBuilder_ == null) { + if (author_ != null) { + author_ = + com.google.cloud.dataform.v1beta1.CommitAuthor.newBuilder(author_) + .mergeFrom(value) + .buildPartial(); + } else { + author_ = value; + } + onChanged(); + } else { + authorBuilder_.mergeFrom(value); + } + + 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthor() { + if (authorBuilder_ == null) { + author_ = null; + onChanged(); + } else { + author_ = null; + authorBuilder_ = null; + } + + 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitAuthor.Builder getAuthorBuilder() { + + 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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder() { + if (authorBuilder_ != null) { + return authorBuilder_.getMessageOrBuilder(); + } else { + return author_ == null + ? com.google.cloud.dataform.v1beta1.CommitAuthor.getDefaultInstance() + : author_; + } + } + /** + * + * + *
+     * Required. The author of any merge commit which may be created as a result of merging
+     * fetched Git commits into this workspace.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder> + getAuthorFieldBuilder() { + if (authorBuilder_ == null) { + authorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CommitAuthor, + com.google.cloud.dataform.v1beta1.CommitAuthor.Builder, + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder>( + getAuthor(), getParentForChildren(), isClean()); + author_ = null; + } + return authorBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.PullGitCommitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.PullGitCommitsRequest) + private static final com.google.cloud.dataform.v1beta1.PullGitCommitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.PullGitCommitsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new PullGitCommitsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PullGitCommitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java new file mode 100644 index 0000000..edf0be7 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PullGitCommitsRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface PullGitCommitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The author. + */ + com.google.cloud.dataform.v1beta1.CommitAuthor getAuthor(); + /** + * + * + *
+   * Required. The author of any merge commit which may be created as a result of merging
+   * fetched Git commits into this workspace.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.CommitAuthorOrBuilder getAuthorOrBuilder(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java new file mode 100644 index 0000000..99c9d01 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequest.java @@ -0,0 +1,839 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `PushGitCommits` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.PushGitCommitsRequest} + */ +public final class PushGitCommitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PushGitCommitsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + remoteBranch_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.class, + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.PushGitCommitsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest other = + (com.google.cloud.dataform.v1beta1.PushGitCommitsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRemoteBranch().equals(other.getRemoteBranch())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.PushGitCommitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PushGitCommitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PushGitCommitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PushGitCommitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.PushGitCommitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.PushGitCommitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.PushGitCommitsRequest) + com.google.cloud.dataform.v1beta1.PushGitCommitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.class, + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + remoteBranch_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PushGitCommitsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PushGitCommitsRequest build() { + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PushGitCommitsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest result = + new com.google.cloud.dataform.v1beta1.PushGitCommitsRequest(this); + result.name_ = name_; + result.remoteBranch_ = remoteBranch_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.PushGitCommitsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.PushGitCommitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.PushGitCommitsRequest other) { + if (other == com.google.cloud.dataform.v1beta1.PushGitCommitsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRemoteBranch().isEmpty()) { + remoteBranch_ = other.remoteBranch_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.PushGitCommitsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.PushGitCommitsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.PushGitCommitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.PushGitCommitsRequest) + private static final com.google.cloud.dataform.v1beta1.PushGitCommitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.PushGitCommitsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new PushGitCommitsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PushGitCommitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java new file mode 100644 index 0000000..28940d3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PushGitCommitsRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface PushGitCommitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java new file mode 100644 index 0000000..f5d44d9 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequest.java @@ -0,0 +1,1158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryCompilationResultActions` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest} + */ +public final class QueryCompilationResultActionsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryCompilationResultActionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.class, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryCompilationResultActionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.class, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest build() { + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest result = + new com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest(this); + result.name_ = name_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new QueryCompilationResultActionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java new file mode 100644 index 0000000..94cd291 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryCompilationResultActionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsResponse.java new file mode 100644 index 0000000..3284203 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsResponse.java @@ -0,0 +1,1236 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryCompilationResultActions` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse} + */ +public final class QueryCompilationResultActionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryCompilationResultActionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + compilationResultActions_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.CompilationResultAction>(); + mutable_bitField0_ |= 0x00000001; + } + compilationResultActions_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.CompilationResultAction.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + compilationResultActions_ = + java.util.Collections.unmodifiableList(compilationResultActions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.class, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.Builder.class); + } + + public static final int COMPILATION_RESULT_ACTIONS_FIELD_NUMBER = 1; + private java.util.List + compilationResultActions_; + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + @java.lang.Override + public java.util.List + getCompilationResultActionsList() { + return compilationResultActions_; + } + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder> + getCompilationResultActionsOrBuilderList() { + return compilationResultActions_; + } + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + @java.lang.Override + public int getCompilationResultActionsCount() { + return compilationResultActions_.size(); + } + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction getCompilationResultActions( + int index) { + return compilationResultActions_.get(index); + } + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder + getCompilationResultActionsOrBuilder(int index) { + return compilationResultActions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse other = + (com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) obj; + + if (!getCompilationResultActionsList().equals(other.getCompilationResultActionsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryCompilationResultActionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryCompilationResultActionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.class, + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCompilationResultActionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (compilationResultActionsBuilder_ == null) { + compilationResultActions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + compilationResultActionsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse build() { + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse result = + new com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse(this); + int from_bitField0_ = bitField0_; + if (compilationResultActionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + compilationResultActions_ = + java.util.Collections.unmodifiableList(compilationResultActions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.compilationResultActions_ = compilationResultActions_; + } else { + result.compilationResultActions_ = compilationResultActionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.CompilationResultAction, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder> + compilationResultActionsBuilder_; + + /** + * + * + *
+     * List of compilation result actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public Builder setCompilationResultActions( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public Builder setCompilationResultActions( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public Builder addCompilationResultActions( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public Builder addCompilationResultActions( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public Builder addCompilationResultActions( + com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public Builder addCompilationResultActions( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder + getCompilationResultActionsBuilder(int index) { + return getCompilationResultActionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of compilation result actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder> + getCompilationResultActionsOrBuilderList() { + if (compilationResultActionsBuilder_ != null) { + return compilationResultActionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(compilationResultActions_); + } + } + /** + * + * + *
+     * List of compilation result actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder + addCompilationResultActionsBuilder() { + return getCompilationResultActionsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.CompilationResultAction.getDefaultInstance()); + } + /** + * + * + *
+     * List of compilation result actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder + addCompilationResultActionsBuilder(int index) { + return getCompilationResultActionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.CompilationResultAction.getDefaultInstance()); + } + /** + * + * + *
+     * List of compilation result actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + public java.util.List + getCompilationResultActionsBuilderList() { + return getCompilationResultActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder, + com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder> + getCompilationResultActionsFieldBuilder() { + if (compilationResultActionsBuilder_ == null) { + compilationResultActionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.CompilationResultAction, + com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new QueryCompilationResultActionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsResponseOrBuilder.java new file mode 100644 index 0000000..f62a881 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryCompilationResultActionsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryCompilationResultActionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + java.util.List + getCompilationResultActionsList(); + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction getCompilationResultActions(int index); + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + int getCompilationResultActionsCount(); + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + java.util.List + getCompilationResultActionsOrBuilderList(); + /** + * + * + *
+   * List of compilation result actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java new file mode 100644 index 0000000..82614b1 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java @@ -0,0 +1,1151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryDirectoryContents` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest} + */ +public final class QueryDirectoryContentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryDirectoryContentsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_; + /** + * + * + *
+   * 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryDirectoryContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest build() { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest result = + new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new QueryDirectoryContentsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java new file mode 100644 index 0000000..70d750c --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryDirectoryContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java new file mode 100644 index 0000000..fe4a561 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponse.java @@ -0,0 +1,2354 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryDirectoryContents` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse} + */ +public final class QueryDirectoryContentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryDirectoryContentsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + directoryEntries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntry>(); + mutable_bitField0_ |= 0x00000001; + } + directoryEntries_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntry.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + directoryEntries_ = java.util.Collections.unmodifiableList(directoryEntries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.Builder.class); + } + + public interface DirectoryEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return Whether the file field is set. + */ + boolean hasFile(); + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return The file. + */ + java.lang.String getFile(); + /** + * + * + *
+     * A file in the directory.
+     * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + com.google.protobuf.ByteString getFileBytes(); + + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return Whether the directory field is set. + */ + boolean hasDirectory(); + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return The directory. + */ + java.lang.String getDirectory(); + /** + * + * + *
+     * A child directory in the directory.
+     * 
+ * + * string directory = 2; + * + * @return The bytes for directory. + */ + com.google.protobuf.ByteString getDirectoryBytes(); + + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.EntryCase + getEntryCase(); + } + /** + * + * + *
+   * Represents a single entry in a workspace directory.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} + */ + public static final class DirectoryEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + DirectoryEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use DirectoryEntry.newBuilder() to construct. + private DirectoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DirectoryEntry() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DirectoryEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DirectoryEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + entryCase_ = 2; + entry_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.class, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .Builder.class); + } + + private int entryCase_ = 0; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry other = + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFile().equals(other.getFile())) return false; + break; + case 2: + if (!getDirectory().equals(other.getDirectory())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Represents a single entry in a workspace directory.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .class, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_DirectoryEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + build() { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + buildPartial() { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry result = + new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry( + this); + if (entryCase_ == 1) { + result.entry_ = entry_; + } + if (entryCase_ == 2) { + result.entry_ = entry_; + } + result.entryCase_ = entryCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FILE: + { + entryCase_ = 1; + entry_ = other.entry_; + onChanged(); + break; + } + case DIRECTORY: + { + entryCase_ = 2; + entry_ = other.entry_; + onChanged(); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + } + + /** + * + * + *
+       * A file in the directory.
+       * 
+ * + * string file = 1; + * + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return entryCase_ == 1; + } + /** + * + * + *
+       * A file in the directory.
+       * 
+ * + * string file = 1; + * + * @return The file. + */ + @java.lang.Override + public java.lang.String getFile() { + java.lang.Object ref = ""; + if (entryCase_ == 1) { + ref = entry_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entryCase_ == 1) { + entry_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A file in the directory.
+       * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = ""; + if (entryCase_ == 1) { + ref = entry_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entryCase_ == 1) { + entry_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A file in the directory.
+       * 
+ * + * string file = 1; + * + * @param value The file to set. + * @return This builder for chaining. + */ + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryCase_ = 1; + entry_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A file in the directory.
+       * 
+ * + * string file = 1; + * + * @return This builder for chaining. + */ + public Builder clearFile() { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * A file in the directory.
+       * 
+ * + * string file = 1; + * + * @param value The bytes for file to set. + * @return This builder for chaining. + */ + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryCase_ = 1; + entry_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * A child directory in the directory.
+       * 
+ * + * string directory = 2; + * + * @return Whether the directory field is set. + */ + @java.lang.Override + public boolean hasDirectory() { + return entryCase_ == 2; + } + /** + * + * + *
+       * A child directory in the directory.
+       * 
+ * + * string directory = 2; + * + * @return The directory. + */ + @java.lang.Override + public java.lang.String getDirectory() { + java.lang.Object ref = ""; + if (entryCase_ == 2) { + ref = entry_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entryCase_ == 2) { + entry_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A child directory in the directory.
+       * 
+ * + * string directory = 2; + * + * @return The bytes for directory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirectoryBytes() { + java.lang.Object ref = ""; + if (entryCase_ == 2) { + ref = entry_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entryCase_ == 2) { + entry_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A child directory in the directory.
+       * 
+ * + * string directory = 2; + * + * @param value The directory to set. + * @return This builder for chaining. + */ + public Builder setDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryCase_ = 2; + entry_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A child directory in the directory.
+       * 
+ * + * string directory = 2; + * + * @return This builder for chaining. + */ + public Builder clearDirectory() { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * A child directory in the directory.
+       * 
+ * + * string directory = 2; + * + * @param value The bytes for directory to set. + * @return This builder for chaining. + */ + public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryCase_ = 2; + entry_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry) + private static final com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry(); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirectoryEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DirectoryEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DIRECTORY_ENTRIES_FIELD_NUMBER = 1; + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> + directoryEntries_; + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> + getDirectoryEntriesList() { + return directoryEntries_; + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntryOrBuilder> + getDirectoryEntriesOrBuilderList() { + return directoryEntries_; + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + @java.lang.Override + public int getDirectoryEntriesCount() { + return directoryEntries_.size(); + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + getDirectoryEntries(int index) { + return directoryEntries_.get(index); + } + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntryOrBuilder + getDirectoryEntriesOrBuilder(int index) { + return directoryEntries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse other = + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) obj; + + if (!getDirectoryEntriesList().equals(other.getDirectoryEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse 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.v1beta1.QueryDirectoryContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDirectoryEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (directoryEntriesBuilder_ == null) { + directoryEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + directoryEntriesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse build() { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse result = + new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse(this); + int from_bitField0_ = bitField0_; + if (directoryEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + directoryEntries_ = java.util.Collections.unmodifiableList(directoryEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.directoryEntries_ = directoryEntries_; + } else { + result.directoryEntries_ = directoryEntriesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry> + directoryEntries_ = java.util.Collections.emptyList(); + + private void ensureDirectoryEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + directoryEntries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry>( + directoryEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntryOrBuilder> + directoryEntriesBuilder_; + + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder setDirectoryEntries( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder setDirectoryEntries( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder addDirectoryEntries( + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder addDirectoryEntries( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder addDirectoryEntries( + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder addDirectoryEntries( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public Builder addAllDirectoryEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder + getDirectoryEntriesBuilder(int index) { + return getDirectoryEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder + addDirectoryEntriesBuilder() { + return getDirectoryEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder + addDirectoryEntriesBuilder(int index) { + return getDirectoryEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * List of entries in the directory.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder> + getDirectoryEntriesBuilderList() { + return getDirectoryEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry.Builder, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntryOrBuilder> + getDirectoryEntriesFieldBuilder() { + if (directoryEntriesBuilder_ == null) { + directoryEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntryOrBuilder>( + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new QueryDirectoryContentsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java new file mode 100644 index 0000000..bd2c059 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsResponseOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryDirectoryContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + java.util.List + getDirectoryEntriesList(); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry + getDirectoryEntries(int index); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + int getDirectoryEntriesCount(); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + .DirectoryEntryOrBuilder> + getDirectoryEntriesOrBuilderList(); + /** + * + * + *
+   * List of entries in the directory.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse.DirectoryEntry directory_entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java new file mode 100644 index 0000000..3d20e09 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryWorkflowInvocationActions` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest} + */ +public final class QueryWorkflowInvocationActionsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryWorkflowInvocationActionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest.class, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_; + /** + * + * + *
+   * 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest other = + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest.class, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest build() { + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest result = + new com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest(this); + result.name_ = name_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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() { + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new QueryWorkflowInvocationActionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java new file mode 100644 index 0000000..cefd7c3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryWorkflowInvocationActionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsResponse.java new file mode 100644 index 0000000..8278aa4 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsResponse.java @@ -0,0 +1,1237 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `QueryWorkflowInvocationActions` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse} + */ +public final class QueryWorkflowInvocationActionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryWorkflowInvocationActionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workflowInvocationActions_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction>(); + mutable_bitField0_ |= 0x00000001; + } + workflowInvocationActions_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + workflowInvocationActions_ = + java.util.Collections.unmodifiableList(workflowInvocationActions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse.class, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse.Builder.class); + } + + public static final int WORKFLOW_INVOCATION_ACTIONS_FIELD_NUMBER = 1; + private java.util.List + workflowInvocationActions_; + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + @java.lang.Override + public java.util.List + getWorkflowInvocationActionsList() { + return workflowInvocationActions_; + } + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder> + getWorkflowInvocationActionsOrBuilderList() { + return workflowInvocationActions_; + } + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + @java.lang.Override + public int getWorkflowInvocationActionsCount() { + return workflowInvocationActions_.size(); + } + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getWorkflowInvocationActions( + int index) { + return workflowInvocationActions_.get(index); + } + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder + getWorkflowInvocationActionsOrBuilder(int index) { + return workflowInvocationActions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse other = + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) obj; + + if (!getWorkflowInvocationActionsList().equals(other.getWorkflowInvocationActionsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.QueryWorkflowInvocationActionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse.class, + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWorkflowInvocationActionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowInvocationActionsBuilder_ == null) { + workflowInvocationActions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workflowInvocationActionsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse build() { + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse result = + new com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse(this); + int from_bitField0_ = bitField0_; + if (workflowInvocationActionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workflowInvocationActions_ = + java.util.Collections.unmodifiableList(workflowInvocationActions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflowInvocationActions_ = workflowInvocationActions_; + } else { + result.workflowInvocationActions_ = workflowInvocationActionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.v1beta1.WorkflowInvocationAction, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder> + workflowInvocationActionsBuilder_; + + /** + * + * + *
+     * List of workflow invocation actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public Builder setWorkflowInvocationActions( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public Builder setWorkflowInvocationActions( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public Builder addWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public Builder addWorkflowInvocationActions( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public Builder addWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public Builder addWorkflowInvocationActions( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder + getWorkflowInvocationActionsBuilder(int index) { + return getWorkflowInvocationActionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of workflow invocation actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder> + getWorkflowInvocationActionsOrBuilderList() { + if (workflowInvocationActionsBuilder_ != null) { + return workflowInvocationActionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workflowInvocationActions_); + } + } + /** + * + * + *
+     * List of workflow invocation actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder + addWorkflowInvocationActionsBuilder() { + return getWorkflowInvocationActionsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.getDefaultInstance()); + } + /** + * + * + *
+     * List of workflow invocation actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder + addWorkflowInvocationActionsBuilder(int index) { + return getWorkflowInvocationActionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.getDefaultInstance()); + } + /** + * + * + *
+     * List of workflow invocation actions.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + public java.util.List + getWorkflowInvocationActionsBuilderList() { + return getWorkflowInvocationActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder> + getWorkflowInvocationActionsFieldBuilder() { + if (workflowInvocationActionsBuilder_ == null) { + workflowInvocationActionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder, + com.google.cloud.dataform.v1beta1.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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new QueryWorkflowInvocationActionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsResponseOrBuilder.java new file mode 100644 index 0000000..c030607 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryWorkflowInvocationActionsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface QueryWorkflowInvocationActionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + java.util.List + getWorkflowInvocationActionsList(); + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getWorkflowInvocationActions( + int index); + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + int getWorkflowInvocationActionsCount(); + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + java.util.List + getWorkflowInvocationActionsOrBuilderList(); + /** + * + * + *
+   * List of workflow invocation actions.
+   * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java new file mode 100644 index 0000000..af01f70 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequest.java @@ -0,0 +1,831 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ReadFile` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReadFileRequest} + */ +public final class ReadFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadFileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadFileRequest.class, + com.google.cloud.dataform.v1beta1.ReadFileRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ReadFileRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ReadFileRequest other = + (com.google.cloud.dataform.v1beta1.ReadFileRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ReadFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ReadFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ReadFileRequest) + com.google.cloud.dataform.v1beta1.ReadFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadFileRequest.class, + com.google.cloud.dataform.v1beta1.ReadFileRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ReadFileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ReadFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileRequest build() { + com.google.cloud.dataform.v1beta1.ReadFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ReadFileRequest result = + new com.google.cloud.dataform.v1beta1.ReadFileRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ReadFileRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ReadFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ReadFileRequest other) { + if (other == com.google.cloud.dataform.v1beta1.ReadFileRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ReadFileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ReadFileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.ReadFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ReadFileRequest) + private static final com.google.cloud.dataform.v1beta1.ReadFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ReadFileRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ReadFileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java new file mode 100644 index 0000000..8b7d4b2 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ReadFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileResponse.java new file mode 100644 index 0000000..ceda99d --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileResponse.java @@ -0,0 +1,553 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ReadFile` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ReadFileResponse} + */ +public final class ReadFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadFileResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fileContents_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadFileResponse.class, + com.google.cloud.dataform.v1beta1.ReadFileResponse.Builder.class); + } + + public static final int FILE_CONTENTS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString fileContents_; + /** + * + * + *
+   * 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ReadFileResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ReadFileResponse other = + (com.google.cloud.dataform.v1beta1.ReadFileResponse) obj; + + if (!getFileContents().equals(other.getFileContents())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ReadFileResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ReadFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ReadFileResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ReadFileResponse) + com.google.cloud.dataform.v1beta1.ReadFileResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ReadFileResponse.class, + com.google.cloud.dataform.v1beta1.ReadFileResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ReadFileResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + fileContents_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ReadFileResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileResponse build() { + com.google.cloud.dataform.v1beta1.ReadFileResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileResponse buildPartial() { + com.google.cloud.dataform.v1beta1.ReadFileResponse result = + new com.google.cloud.dataform.v1beta1.ReadFileResponse(this); + result.fileContents_ = fileContents_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ReadFileResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ReadFileResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ReadFileResponse other) { + if (other == com.google.cloud.dataform.v1beta1.ReadFileResponse.getDefaultInstance()) + return this; + if (other.getFileContents() != com.google.protobuf.ByteString.EMPTY) { + setFileContents(other.getFileContents()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ReadFileResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ReadFileResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The file's contents.
+     * 
+ * + * bytes file_contents = 1; + * + * @return This builder for chaining. + */ + public Builder clearFileContents() { + + 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.v1beta1.ReadFileResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ReadFileResponse) + private static final com.google.cloud.dataform.v1beta1.ReadFileResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ReadFileResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ReadFileResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ReadFileResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileResponseOrBuilder.java new file mode 100644 index 0000000..fd8536a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReadFileResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ReadFileResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.ReadFileResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The file's contents.
+   * 
+ * + * bytes file_contents = 1; + * + * @return The fileContents. + */ + com.google.protobuf.ByteString getFileContents(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RelationDescriptor.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RelationDescriptor.java new file mode 100644 index 0000000..4761b27 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RelationDescriptor.java @@ -0,0 +1,2884 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Describes a relation and its columns.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.RelationDescriptor} + */ +public final class RelationDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RelationDescriptor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + description_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor>(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + .parser(), + extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + bigqueryLabels_ = + com.google.protobuf.MapField.newMapField( + BigqueryLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry bigqueryLabels__ = + input.readMessage( + BigqueryLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + bigqueryLabels_ + .getMutableMap() + .put(bigqueryLabels__.getKey(), bigqueryLabels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RelationDescriptor.class, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder.class); + } + + public interface ColumnDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor} + */ + public static final class ColumnDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + description_ = ""; + bigqueryPolicyTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnDescriptor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ColumnDescriptor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + path_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + path_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + bigqueryPolicyTags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + bigqueryPolicyTags_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + path_ = path_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + bigqueryPolicyTags_ = bigqueryPolicyTags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.class, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList path_; + /** + * + * + *
+     * 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; + 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; + private com.google.protobuf.LazyStringList bigqueryPolicyTags_; + /** + * + * + *
+     * 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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.class, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + path_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + description_ = ""; + + bigqueryPolicyTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_ColumnDescriptor_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor build() { + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor buildPartial() { + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor result = + new com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + path_ = path_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.path_ = path_; + result.description_ = description_; + if (((bitField0_ & 0x00000002) != 0)) { + bigqueryPolicyTags_ = bigqueryPolicyTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bigqueryPolicyTags_ = bigqueryPolicyTags_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor other) { + if (other + == com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + .getDefaultInstance()) return this; + if (!other.path_.isEmpty()) { + if (path_.isEmpty()) { + path_ = other.path_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePathIsMutable(); + path_.addAll(other.path_); + } + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.bigqueryPolicyTags_.isEmpty()) { + if (bigqueryPolicyTags_.isEmpty()) { + bigqueryPolicyTags_ = other.bigqueryPolicyTags_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBigqueryPolicyTagsIsMutable(); + bigqueryPolicyTags_.addAll(other.bigqueryPolicyTags_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList path_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePathIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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() { + return path_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + 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); + 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; + onChanged(); + return this; + } + /** + * + * + *
+       * A textual description of the column.
+       * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList bigqueryPolicyTags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureBigqueryPolicyTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bigqueryPolicyTags_ = new com.google.protobuf.LazyStringArrayList(bigqueryPolicyTags_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * 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_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor) + private static final com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ColumnDescriptor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + 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; + private java.util.List + columns_; + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptorOrBuilder> + getColumnsOrBuilderList() { + return columns_; + } + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor getColumns( + int index) { + return columns_.get(index); + } + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_BigqueryLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + 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 java.lang.String getBigqueryLabelsOrDefault( + java.lang.String key, 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); + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.RelationDescriptor)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.RelationDescriptor other = + (com.google.cloud.dataform.v1beta1.RelationDescriptor) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!internalGetBigqueryLabels().equals(other.internalGetBigqueryLabels())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.RelationDescriptor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RelationDescriptor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.RelationDescriptor) + com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetBigqueryLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RelationDescriptor.class, + com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.RelationDescriptor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + description_ = ""; + + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + internalGetMutableBigqueryLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor build() { + com.google.cloud.dataform.v1beta1.RelationDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor buildPartial() { + com.google.cloud.dataform.v1beta1.RelationDescriptor result = + new com.google.cloud.dataform.v1beta1.RelationDescriptor(this); + int from_bitField0_ = bitField0_; + result.description_ = description_; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + result.bigqueryLabels_ = internalGetBigqueryLabels(); + result.bigqueryLabels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.RelationDescriptor) { + return mergeFrom((com.google.cloud.dataform.v1beta1.RelationDescriptor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.RelationDescriptor other) { + if (other == com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()) + return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + internalGetMutableBigqueryLabels().mergeFrom(other.internalGetBigqueryLabels()); + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.RelationDescriptor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.RelationDescriptor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * A text description of the relation.
+     * 
+ * + * string description = 1; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + 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; + onChanged(); + return this; + } + + private java.util.List + columns_ = java.util.Collections.emptyList(); + + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor>(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptorOrBuilder> + columnsBuilder_; + + /** + * + * + *
+     * A list of descriptions of columns within the relation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder setColumns( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder setColumns( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder addColumns( + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder addColumns( + int index, com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder addColumns( + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder addColumns( + int index, + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder addAllColumns( + java.lang.Iterable< + ? extends com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of descriptions of columns within the relation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder + getColumnsBuilder(int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of descriptions of columns within the relation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder + addColumnsBuilder() { + return getColumnsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of descriptions of columns within the relation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder + addColumnsBuilder(int index) { + return getColumnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of descriptions of columns within the relation.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder> + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptorOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor.Builder, + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptorOrBuilder>( + columns_, ((bitField0_ & 0x00000001) != 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() { + onChanged(); + ; + if (bigqueryLabels_ == null) { + bigqueryLabels_ = + com.google.protobuf.MapField.newMapField(BigqueryLabelsDefaultEntryHolder.defaultEntry); + } + if (!bigqueryLabels_.isMutable()) { + bigqueryLabels_ = bigqueryLabels_.copy(); + } + 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 java.lang.String getBigqueryLabelsOrDefault( + java.lang.String key, 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() { + 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() { + 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); + 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); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.RelationDescriptor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.RelationDescriptor) + private static final com.google.cloud.dataform.v1beta1.RelationDescriptor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.RelationDescriptor(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new RelationDescriptor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RelationDescriptor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RelationDescriptorOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RelationDescriptorOrBuilder.java new file mode 100644 index 0000000..084df8a --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RelationDescriptorOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface RelationDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + java.util.List + getColumnsList(); + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor getColumns(int index); + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + int getColumnsCount(); + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + java.util.List< + ? extends com.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptorOrBuilder> + getColumnsOrBuilderList(); + /** + * + * + *
+   * A list of descriptions of columns within the relation.
+   * 
+ * + * repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java new file mode 100644 index 0000000..199063c --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequest.java @@ -0,0 +1,839 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `RemoveDirectory` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.RemoveDirectoryRequest} + */ +public final class RemoveDirectoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RemoveDirectoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.class, + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest other = + (com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveDirectoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveDirectoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveDirectoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveDirectoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RemoveDirectoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.RemoveDirectoryRequest) + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.class, + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest build() { + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest result = + new com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.RemoveDirectoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.RemoveDirectoryRequest) + private static final com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new RemoveDirectoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java new file mode 100644 index 0000000..d2280d5 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveDirectoryRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface RemoveDirectoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java new file mode 100644 index 0000000..22c9ec3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequest.java @@ -0,0 +1,831 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `RemoveFile` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.RemoveFileRequest} + */ +public final class RemoveFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RemoveFileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RemoveFileRequest.class, + com.google.cloud.dataform.v1beta1.RemoveFileRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.RemoveFileRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.RemoveFileRequest other = + (com.google.cloud.dataform.v1beta1.RemoveFileRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.RemoveFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.RemoveFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RemoveFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.RemoveFileRequest) + com.google.cloud.dataform.v1beta1.RemoveFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.RemoveFileRequest.class, + com.google.cloud.dataform.v1beta1.RemoveFileRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.RemoveFileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + workspace_ = ""; + + path_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveFileRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.RemoveFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveFileRequest build() { + com.google.cloud.dataform.v1beta1.RemoveFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveFileRequest buildPartial() { + com.google.cloud.dataform.v1beta1.RemoveFileRequest result = + new com.google.cloud.dataform.v1beta1.RemoveFileRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.RemoveFileRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.RemoveFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.RemoveFileRequest other) { + if (other == com.google.cloud.dataform.v1beta1.RemoveFileRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.RemoveFileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.RemoveFileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.RemoveFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.RemoveFileRequest) + private static final com.google.cloud.dataform.v1beta1.RemoveFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.RemoveFileRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new RemoveFileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RemoveFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java new file mode 100644 index 0000000..76cbe80 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RemoveFileRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface RemoveFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java new file mode 100644 index 0000000..96f7074 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java @@ -0,0 +1,2452 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a Dataform Git repository.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository} + */ +public final class Repository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Repository( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder subBuilder = + null; + if (gitRemoteSettings_ != null) { + subBuilder = gitRemoteSettings_.toBuilder(); + } + gitRemoteSettings_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gitRemoteSettings_); + gitRemoteSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.class, + com.google.cloud.dataform.v1beta1.Repository.Builder.class); + } + + public interface GitRemoteSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tokenStatus. + */ + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus getTokenStatus(); + } + /** + * + * + *
+   * Controls Git remote configuration for a repository.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository.GitRemoteSettings} + */ + public static final class GitRemoteSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GitRemoteSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + url_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultBranch_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + authenticationTokenSecretVersion_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + tokenStatus_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.class, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder.class); + } + + /** + * + * + *
+     * Indicates the status of a Git authentication token.
+     * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus} + */ + public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * TOKEN_STATUS_UNSPECIFIED = 0; + */ + TOKEN_STATUS_UNSPECIFIED(0), + /** + * + * + *
+       * The token could not be found in Secret Manager (or the Dataform
+       * Service Account did not have permission to access it).
+       * 
+ * + * NOT_FOUND = 1; + */ + NOT_FOUND(1), + /** + * + * + *
+       * The token could not be used to authenticate against the Git remote.
+       * 
+ * + * INVALID = 2; + */ + INVALID(2), + /** + * + * + *
+       * The token was used successfully to authenticate against the Git remote.
+       * 
+ * + * VALID = 3; + */ + VALID(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * TOKEN_STATUS_UNSPECIFIED = 0; + */ + public static final int TOKEN_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The token could not be found in Secret Manager (or the Dataform
+       * Service Account did not have permission to access it).
+       * 
+ * + * NOT_FOUND = 1; + */ + public static final int NOT_FOUND_VALUE = 1; + /** + * + * + *
+       * The token could not be used to authenticate against the Git remote.
+       * 
+ * + * INVALID = 2; + */ + public static final int INVALID_VALUE = 2; + /** + * + * + *
+       * The token was used successfully to authenticate against the Git remote.
+       * 
+ * + * VALID = 3; + */ + public static final int VALID_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TokenStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TokenStatus forNumber(int value) { + switch (value) { + case 0: + return TOKEN_STATUS_UNSPECIFIED; + case 1: + return NOT_FOUND; + case 2: + return INVALID; + case 3: + return VALID; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TokenStatus findValueByNumber(int number) { + return TokenStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.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.v1beta1.Repository.GitRemoteSettings.TokenStatus) + } + + public static final int URL_FIELD_NUMBER = 1; + 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; + 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; + 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_; + /** + * + * + *
+     * Output only. Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for tokenStatus. + */ + @java.lang.Override + public int getTokenStatusValue() { + return tokenStatus_; + } + /** + * + * + *
+     * Output only. Indicates the status of the Git access token.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tokenStatus. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + getTokenStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus result = + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.valueOf( + tokenStatus_); + return result == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + authenticationTokenSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, authenticationTokenSecretVersion_); + } + if (tokenStatus_ + != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + .TOKEN_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, tokenStatus_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultBranch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty( + authenticationTokenSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, authenticationTokenSecretVersion_); + } + if (tokenStatus_ + != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + .TOKEN_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, tokenStatus_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings other = + (com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getDefaultBranch().equals(other.getDefaultBranch())) return false; + if (!getAuthenticationTokenSecretVersion() + .equals(other.getAuthenticationTokenSecretVersion())) return false; + if (tokenStatus_ != other.tokenStatus_) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Controls Git remote configuration for a repository.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository.GitRemoteSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.class, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + url_ = ""; + + defaultBranch_ = ""; + + authenticationTokenSecretVersion_ = ""; + + tokenStatus_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings build() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings buildPartial() { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings result = + new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings(this); + result.url_ = url_; + result.defaultBranch_ = defaultBranch_; + result.authenticationTokenSecretVersion_ = authenticationTokenSecretVersion_; + result.tokenStatus_ = tokenStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings other) { + if (other + == com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance()) + return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (!other.getDefaultBranch().isEmpty()) { + defaultBranch_ = other.defaultBranch_; + onChanged(); + } + if (!other.getAuthenticationTokenSecretVersion().isEmpty()) { + authenticationTokenSecretVersion_ = other.authenticationTokenSecretVersion_; + onChanged(); + } + if (other.tokenStatus_ != 0) { + setTokenStatusValue(other.getTokenStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + private int tokenStatus_ = 0; + /** + * + * + *
+       * Output only. Indicates the status of the Git access token.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for tokenStatus. + */ + @java.lang.Override + public int getTokenStatusValue() { + return tokenStatus_; + } + /** + * + * + *
+       * Output only. Indicates the status of the Git access token.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for tokenStatus to set. + * @return This builder for chaining. + */ + public Builder setTokenStatusValue(int value) { + + tokenStatus_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Indicates the status of the Git access token.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tokenStatus. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + getTokenStatus() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus result = + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus.valueOf( + tokenStatus_); + return result == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. Indicates the status of the Git access token.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The tokenStatus to set. + * @return This builder for chaining. + */ + public Builder setTokenStatus( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + tokenStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Indicates the status of the Git access token.
+       * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTokenStatus() { + + tokenStatus_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Repository.GitRemoteSettings) + private static final com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings(); + } + + public static com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitRemoteSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitRemoteSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + 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.v1beta1.Repository.GitRemoteSettings gitRemoteSettings_; + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitRemoteSettings field is set. + */ + @java.lang.Override + public boolean hasGitRemoteSettings() { + return gitRemoteSettings_ != null; + } + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitRemoteSettings. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings() { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder + getGitRemoteSettingsOrBuilder() { + return getGitRemoteSettings(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (gitRemoteSettings_ != null) { + output.writeMessage(2, getGitRemoteSettings()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (gitRemoteSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Repository)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Repository other = + (com.google.cloud.dataform.v1beta1.Repository) obj; + + if (!getName().equals(other.getName())) return false; + if (hasGitRemoteSettings() != other.hasGitRemoteSettings()) return false; + if (hasGitRemoteSettings()) { + if (!getGitRemoteSettings().equals(other.getGitRemoteSettings())) return false; + } + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Repository parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.Repository prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a Dataform Git repository.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Repository} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Repository) + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Repository.class, + com.google.cloud.dataform.v1beta1.Repository.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Repository.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (gitRemoteSettingsBuilder_ == null) { + gitRemoteSettings_ = null; + } else { + gitRemoteSettings_ = null; + gitRemoteSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Repository_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository build() { + com.google.cloud.dataform.v1beta1.Repository result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository buildPartial() { + com.google.cloud.dataform.v1beta1.Repository result = + new com.google.cloud.dataform.v1beta1.Repository(this); + result.name_ = name_; + if (gitRemoteSettingsBuilder_ == null) { + result.gitRemoteSettings_ = gitRemoteSettings_; + } else { + result.gitRemoteSettings_ = gitRemoteSettingsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Repository) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Repository) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Repository other) { + if (other == com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasGitRemoteSettings()) { + mergeGitRemoteSettings(other.getGitRemoteSettings()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.Repository parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataform.v1beta1.Repository) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings gitRemoteSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder> + gitRemoteSettingsBuilder_; + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitRemoteSettings field is set. + */ + public boolean hasGitRemoteSettings() { + return gitRemoteSettingsBuilder_ != null || gitRemoteSettings_ != null; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitRemoteSettings. + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings() { + if (gitRemoteSettingsBuilder_ == null) { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } else { + return gitRemoteSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitRemoteSettings( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { + if (gitRemoteSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitRemoteSettings_ = value; + onChanged(); + } else { + gitRemoteSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitRemoteSettings( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder builderForValue) { + if (gitRemoteSettingsBuilder_ == null) { + gitRemoteSettings_ = builderForValue.build(); + onChanged(); + } else { + gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGitRemoteSettings( + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { + if (gitRemoteSettingsBuilder_ == null) { + if (gitRemoteSettings_ != null) { + gitRemoteSettings_ = + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.newBuilder( + gitRemoteSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + gitRemoteSettings_ = value; + } + onChanged(); + } else { + gitRemoteSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGitRemoteSettings() { + if (gitRemoteSettingsBuilder_ == null) { + gitRemoteSettings_ = null; + onChanged(); + } else { + gitRemoteSettings_ = null; + gitRemoteSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder + getGitRemoteSettingsBuilder() { + + onChanged(); + return getGitRemoteSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder + getGitRemoteSettingsOrBuilder() { + if (gitRemoteSettingsBuilder_ != null) { + return gitRemoteSettingsBuilder_.getMessageOrBuilder(); + } else { + return gitRemoteSettings_ == null + ? com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.getDefaultInstance() + : gitRemoteSettings_; + } + } + /** + * + * + *
+     * Optional. If set, configures this repository to be linked to a Git remote.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder> + getGitRemoteSettingsFieldBuilder() { + if (gitRemoteSettingsBuilder_ == null) { + gitRemoteSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder, + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder>( + getGitRemoteSettings(), getParentForChildren(), isClean()); + gitRemoteSettings_ = null; + } + return gitRemoteSettingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Repository) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Repository) + private static final com.google.cloud.dataform.v1beta1.Repository DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Repository(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Repository(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java new file mode 100644 index 0000000..bd724ce --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class 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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java new file mode 100644 index 0000000..ce540f3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface RepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitRemoteSettings. + */ + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings getGitRemoteSettings(); + /** + * + * + *
+   * Optional. If set, configures this repository to be linked to a Git remote.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsOrBuilder + getGitRemoteSettingsOrBuilder(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java new file mode 100644 index 0000000..0dacd98 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequest.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `ResetWorkspaceChanges` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest} + */ +public final class ResetWorkspaceChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResetWorkspaceChangesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResetWorkspaceChangesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paths_.add(s); + break; + } + case 24: + { + clean_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + paths_ = paths_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.class, + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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; + private com.google.protobuf.LazyStringList 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 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_; + /** + * + * + *
+   * 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest other = + (com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPathsList().equals(other.getPathsList())) return false; + if (getClean() != other.getClean()) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ResetWorkspaceChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ResetWorkspaceChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ResetWorkspaceChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.ResetWorkspaceChangesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ResetWorkspaceChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.class, + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + clean_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest build() { + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest buildPartial() { + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest result = + new com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + paths_ = paths_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.paths_ = paths_; + result.clean_ = clean_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + onChanged(); + } + if (other.getClean() != false) { + setClean(other.getClean()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList paths_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePathsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * 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_.getUnmodifiableView(); + } + /** + * + * + *
+     * 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); + 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); + 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_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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); + 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; + 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() { + + 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.v1beta1.ResetWorkspaceChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest) + private static final com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new ResetWorkspaceChangesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java new file mode 100644 index 0000000..21b5a3f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ResetWorkspaceChangesRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface ResetWorkspaceChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Target.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Target.java new file mode 100644 index 0000000..979c7cf --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Target.java @@ -0,0 +1,995 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents an action identifier. If the action writes output, the output
+ * will be written to the referenced database object.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Target} + */ +public final class Target extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Target( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + database_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Target.class, + com.google.cloud.dataform.v1beta1.Target.Builder.class); + } + + public static final int DATABASE_FIELD_NUMBER = 1; + 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; + 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; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Target)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Target other = (com.google.cloud.dataform.v1beta1.Target) obj; + + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Target parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Target parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Target parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Target parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Target parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Target} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Target) + com.google.cloud.dataform.v1beta1.TargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Target.class, + com.google.cloud.dataform.v1beta1.Target.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Target.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + database_ = ""; + + schema_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Target_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Target.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target build() { + com.google.cloud.dataform.v1beta1.Target result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target buildPartial() { + com.google.cloud.dataform.v1beta1.Target result = + new com.google.cloud.dataform.v1beta1.Target(this); + result.database_ = database_; + result.schema_ = schema_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Target) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Target) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Target other) { + if (other == com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()) return this; + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.Target parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataform.v1beta1.Target) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Target) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Target) + private static final com.google.cloud.dataform.v1beta1.Target DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Target(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Target(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TargetOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TargetOrBuilder.java new file mode 100644 index 0000000..35aeb2e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TargetOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface TargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java new file mode 100644 index 0000000..6bf9e6b --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequest.java @@ -0,0 +1,1057 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `UpdateRepository` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateRepositoryRequest} + */ +public final class UpdateRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateRepositoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.Repository.Builder subBuilder = null; + if (repository_ != null) { + subBuilder = repository_.toBuilder(); + } + repository_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Repository.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(repository_); + repository_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Specifies the fields to be updated in the 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 updateMask_ != null; + } + /** + * + * + *
+   * 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 getUpdateMask(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.Repository repository_; + /** + * + * + *
+   * Required. The repository to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return repository_ != null; + } + /** + * + * + *
+   * Required. The repository to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + return repository_ == null + ? com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance() + : repository_; + } + /** + * + * + *
+   * Required. The repository to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + return getRepository(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (repository_ != null) { + output.writeMessage(2, getRepository()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (repository_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRepository()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.UpdateRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.UpdateRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.UpdateRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.UpdateRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.UpdateRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.UpdateRepositoryRequest) + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (repositoryBuilder_ == null) { + repository_ = null; + } else { + repository_ = null; + repositoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest build() { + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest result = + new com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (repositoryBuilder_ == null) { + result.repository_ = repository_; + } else { + result.repository_ = repositoryBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasRepository()) { + mergeRepository(other.getRepository()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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 updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + 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 (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + 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() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + 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() { + + 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.v1beta1.Repository repository_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + repositoryBuilder_; + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the repository field is set. + */ + public boolean hasRepository() { + return repositoryBuilder_ != null || repository_ != null; + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The repository. + */ + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (repositoryBuilder_ == null) { + return repository_ == null + ? com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance() + : repository_; + } else { + return repositoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRepository( + com.google.cloud.dataform.v1beta1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + repository_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (repository_ != null) { + repository_ = + com.google.cloud.dataform.v1beta1.Repository.newBuilder(repository_) + .mergeFrom(value) + .buildPartial(); + } else { + repository_ = value; + } + onChanged(); + } else { + repositoryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + repository_ = null; + onChanged(); + } else { + repository_ = null; + repositoryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder getRepositoryBuilder() { + + onChanged(); + return getRepositoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (repositoryBuilder_ != null) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + return repository_ == null + ? com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance() + : repository_; + } + } + /** + * + * + *
+     * Required. The repository to update.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + getRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.UpdateRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.UpdateRepositoryRequest) + private static final com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new UpdateRepositoryRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java new file mode 100644 index 0000000..958aa25 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateRepositoryRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface UpdateRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The repository. + */ + com.google.cloud.dataform.v1beta1.Repository getRepository(); + /** + * + * + *
+   * Required. The repository to update.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java new file mode 100644 index 0000000..4f93620 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java @@ -0,0 +1,3608 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a single invocation of a compilation result.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocation} + */ +public final class WorkflowInvocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkflowInvocation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + compilationResult_ = s; + break; + } + case 26: + { + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder + subBuilder = null; + if (invocationConfig_ != null) { + subBuilder = invocationConfig_.toBuilder(); + } + invocationConfig_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(invocationConfig_); + invocationConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: + { + com.google.type.Interval.Builder subBuilder = null; + if (invocationTiming_ != null) { + subBuilder = invocationTiming_.toBuilder(); + } + invocationTiming_ = + input.readMessage(com.google.type.Interval.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(invocationTiming_); + invocationTiming_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder.class); + } + + /** + * + * + *
+   * Represents the current state of a workflow invocation.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation.State) + } + + public interface InvocationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List getIncludedTargetsList(); + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index); + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + int getIncludedTargetsCount(); + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List + getIncludedTargetsOrBuilderList(); + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder(int index); + + /** + * + * + *
+     * Immutable. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return A list containing the includedTags. + */ + java.util.List getIncludedTagsList(); + /** + * + * + *
+     * Immutable. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The count of includedTags. + */ + int getIncludedTagsCount(); + /** + * + * + *
+     * Immutable. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the element to return. + * @return The includedTags at the given index. + */ + java.lang.String getIncludedTags(int index); + /** + * + * + *
+     * Immutable. The set of tags to include.
+     * 
+ * + * repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the value to return. + * @return The bytes of the includedTags at the given index. + */ + com.google.protobuf.ByteString getIncludedTagsBytes(int index); + + /** + * + * + *
+     * Immutable. When set to true, transitive dependencies of included actions will be
+     * executed.
+     * 
+ * + * bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The transitiveDependenciesIncluded. + */ + boolean getTransitiveDependenciesIncluded(); + + /** + * + * + *
+     * Immutable. When set to true, transitive dependents of included actions will be
+     * executed.
+     * 
+ * + * bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The transitiveDependentsIncluded. + */ + boolean getTransitiveDependentsIncluded(); + + /** + * + * + *
+     * Immutable. When set to true, any incremental tables will be fully refreshed.
+     * 
+ * + * + * bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fullyRefreshIncrementalTablesEnabled. + */ + boolean getFullyRefreshIncrementalTablesEnabled(); + } + /** + * + * + *
+   * Includes various configuration options for this workflow invocation.
+   * If both `included_targets` and `included_tags` are unset, all actions
+   * will be included.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} + */ + public static final class InvocationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) + InvocationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use InvocationConfig.newBuilder() to construct. + private InvocationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InvocationConfig() { + includedTargets_ = java.util.Collections.emptyList(); + includedTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InvocationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InvocationConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + includedTargets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + includedTargets_.add( + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + includedTags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + includedTags_.add(s); + break; + } + case 24: + { + transitiveDependenciesIncluded_ = input.readBool(); + break; + } + case 32: + { + transitiveDependentsIncluded_ = input.readBool(); + break; + } + case 40: + { + fullyRefreshIncrementalTablesEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + includedTargets_ = java.util.Collections.unmodifiableList(includedTargets_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + includedTags_ = includedTags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder.class); + } + + public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1; + private java.util.List includedTargets_; + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List getIncludedTargetsList() { + return includedTargets_; + } + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List + getIncludedTargetsOrBuilderList() { + return includedTargets_; + } + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public int getIncludedTargetsCount() { + return includedTargets_.size(); + } + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index) { + return includedTargets_.get(index); + } + /** + * + * + *
+     * Immutable. The set of action identifiers to include.
+     * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder( + int index) { + return includedTargets_.get(index); + } + + public static final int INCLUDED_TAGS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList includedTags_; + /** + * + * + *
+     * 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_; + /** + * + * + *
+     * 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_; + /** + * + * + *
+     * 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_; + /** + * + * + *
+     * 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig other = + (com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) obj; + + if (!getIncludedTargetsList().equals(other.getIncludedTargetsList())) return false; + if (!getIncludedTagsList().equals(other.getIncludedTagsList())) return false; + if (getTransitiveDependenciesIncluded() != other.getTransitiveDependenciesIncluded()) + return false; + if (getTransitiveDependentsIncluded() != other.getTransitiveDependentsIncluded()) + return false; + if (getFullyRefreshIncrementalTablesEnabled() + != other.getFullyRefreshIncrementalTablesEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Includes various configuration options for this workflow invocation.
+     * If both `included_targets` and `included_tags` are unset, all actions
+     * will be included.
+     * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIncludedTargetsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (includedTargetsBuilder_ == null) { + includedTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + includedTargetsBuilder_.clear(); + } + includedTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + transitiveDependenciesIncluded_ = false; + + transitiveDependentsIncluded_ = false; + + fullyRefreshIncrementalTablesEnabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_InvocationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig build() { + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig buildPartial() { + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig result = + new com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig(this); + int from_bitField0_ = bitField0_; + if (includedTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + includedTargets_ = java.util.Collections.unmodifiableList(includedTargets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.includedTargets_ = includedTargets_; + } else { + result.includedTargets_ = includedTargetsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + includedTags_ = includedTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.includedTags_ = includedTags_; + result.transitiveDependenciesIncluded_ = transitiveDependenciesIncluded_; + result.transitiveDependentsIncluded_ = transitiveDependentsIncluded_; + result.fullyRefreshIncrementalTablesEnabled_ = fullyRefreshIncrementalTablesEnabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig other) { + if (other + == com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + .getDefaultInstance()) return this; + if (includedTargetsBuilder_ == null) { + if (!other.includedTargets_.isEmpty()) { + if (includedTargets_.isEmpty()) { + includedTargets_ = other.includedTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIncludedTargetsIsMutable(); + includedTargets_.addAll(other.includedTargets_); + } + onChanged(); + } + } else { + if (!other.includedTargets_.isEmpty()) { + if (includedTargetsBuilder_.isEmpty()) { + includedTargetsBuilder_.dispose(); + includedTargetsBuilder_ = null; + includedTargets_ = other.includedTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + includedTargetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIncludedTargetsFieldBuilder() + : null; + } else { + includedTargetsBuilder_.addAllMessages(other.includedTargets_); + } + } + } + if (!other.includedTags_.isEmpty()) { + if (includedTags_.isEmpty()) { + includedTags_ = other.includedTags_; + bitField0_ = (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.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List includedTargets_ = + java.util.Collections.emptyList(); + + private void ensureIncludedTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + includedTargets_ = + new java.util.ArrayList(includedTargets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + includedTargetsBuilder_; + + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List getIncludedTargetsList() { + if (includedTargetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(includedTargets_); + } else { + return includedTargetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public int getIncludedTargetsCount() { + if (includedTargetsBuilder_ == null) { + return includedTargets_.size(); + } else { + return includedTargetsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.Target getIncludedTargets(int index) { + if (includedTargetsBuilder_ == null) { + return includedTargets_.get(index); + } else { + return includedTargetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setIncludedTargets(int index, com.google.cloud.dataform.v1beta1.Target value) { + if (includedTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTargetsIsMutable(); + includedTargets_.set(index, value); + onChanged(); + } else { + includedTargetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setIncludedTargets( + int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.set(index, builderForValue.build()); + onChanged(); + } else { + includedTargetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addIncludedTargets(com.google.cloud.dataform.v1beta1.Target value) { + if (includedTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTargetsIsMutable(); + includedTargets_.add(value); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addIncludedTargets(int index, com.google.cloud.dataform.v1beta1.Target value) { + if (includedTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludedTargetsIsMutable(); + includedTargets_.add(index, value); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addIncludedTargets( + com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.add(builderForValue.build()); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addIncludedTargets( + int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.add(index, builderForValue.build()); + onChanged(); + } else { + includedTargetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAllIncludedTargets( + java.lang.Iterable values) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTargets_); + onChanged(); + } else { + includedTargetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearIncludedTargets() { + if (includedTargetsBuilder_ == null) { + includedTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + includedTargetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder removeIncludedTargets(int index) { + if (includedTargetsBuilder_ == null) { + ensureIncludedTargetsIsMutable(); + includedTargets_.remove(index); + onChanged(); + } else { + includedTargetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getIncludedTargetsBuilder(int index) { + return getIncludedTargetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getIncludedTargetsOrBuilder( + int index) { + if (includedTargetsBuilder_ == null) { + return includedTargets_.get(index); + } else { + return includedTargetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getIncludedTargetsOrBuilderList() { + if (includedTargetsBuilder_ != null) { + return includedTargetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includedTargets_); + } + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addIncludedTargetsBuilder() { + return getIncludedTargetsFieldBuilder() + .addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder addIncludedTargetsBuilder(int index) { + return getIncludedTargetsFieldBuilder() + .addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()); + } + /** + * + * + *
+       * Immutable. The set of action identifiers to include.
+       * 
+ * + * + * repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getIncludedTargetsBuilderList() { + return getIncludedTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getIncludedTargetsFieldBuilder() { + if (includedTargetsBuilder_ == null) { + includedTargetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder>( + includedTargets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + includedTargets_ = null; + } + return includedTargetsBuilder_; + } + + private com.google.protobuf.LazyStringList includedTags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIncludedTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + 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() { + return includedTags_.getUnmodifiableView(); + } + /** + * + * + *
+       * 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); + 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); + 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_); + 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.EMPTY; + 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); + 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; + 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() { + + 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; + 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() { + + 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; + 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() { + + fullyRefreshIncrementalTablesEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig) + private static final com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig(); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvocationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvocationConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + 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; + 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.v1beta1.WorkflowInvocation.InvocationConfig invocationConfig_; + /** + * + * + *
+   * Immutable. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the invocationConfig field is set. + */ + @java.lang.Override + public boolean hasInvocationConfig() { + return invocationConfig_ != null; + } + /** + * + * + *
+   * Immutable. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The invocationConfig. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + getInvocationConfig() { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.getDefaultInstance() + : invocationConfig_; + } + /** + * + * + *
+   * Immutable. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder + getInvocationConfigOrBuilder() { + return getInvocationConfig(); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * Output only. This workflow invocation's current state.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.WorkflowInvocation.State result = + com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.valueOf(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.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 invocationTiming_ != null; + } + /** + * + * + *
+   * 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 getInvocationTiming(); + } + + 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 (invocationConfig_ != null) { + output.writeMessage(3, getInvocationConfig()); + } + if (state_ + != com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (invocationTiming_ != null) { + output.writeMessage(5, getInvocationTiming()); + } + unknownFields.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 (invocationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvocationConfig()); + } + if (state_ + != com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (invocationTiming_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WorkflowInvocation other = + (com.google.cloud.dataform.v1beta1.WorkflowInvocation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCompilationResult().equals(other.getCompilationResult())) return false; + if (hasInvocationConfig() != other.hasInvocationConfig()) return false; + if (hasInvocationConfig()) { + if (!getInvocationConfig().equals(other.getInvocationConfig())) return false; + } + if (state_ != other.state_) return false; + if (hasInvocationTiming() != other.hasInvocationTiming()) return false; + if (hasInvocationTiming()) { + if (!getInvocationTiming().equals(other.getInvocationTiming())) return false; + } + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.WorkflowInvocation 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.v1beta1.WorkflowInvocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocation) + com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + compilationResult_ = ""; + + if (invocationConfigBuilder_ == null) { + invocationConfig_ = null; + } else { + invocationConfig_ = null; + invocationConfigBuilder_ = null; + } + state_ = 0; + + if (invocationTimingBuilder_ == null) { + invocationTiming_ = null; + } else { + invocationTiming_ = null; + invocationTimingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation build() { + com.google.cloud.dataform.v1beta1.WorkflowInvocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation buildPartial() { + com.google.cloud.dataform.v1beta1.WorkflowInvocation result = + new com.google.cloud.dataform.v1beta1.WorkflowInvocation(this); + result.name_ = name_; + result.compilationResult_ = compilationResult_; + if (invocationConfigBuilder_ == null) { + result.invocationConfig_ = invocationConfig_; + } else { + result.invocationConfig_ = invocationConfigBuilder_.build(); + } + result.state_ = state_; + if (invocationTimingBuilder_ == null) { + result.invocationTiming_ = invocationTiming_; + } else { + result.invocationTiming_ = invocationTimingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation) { + return mergeFrom((com.google.cloud.dataform.v1beta1.WorkflowInvocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocation other) { + if (other == com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCompilationResult().isEmpty()) { + compilationResult_ = other.compilationResult_; + onChanged(); + } + if (other.hasInvocationConfig()) { + mergeInvocationConfig(other.getInvocationConfig()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasInvocationTiming()) { + mergeInvocationTiming(other.getInvocationTiming()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.WorkflowInvocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.WorkflowInvocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder> + invocationConfigBuilder_; + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the invocationConfig field is set. + */ + public boolean hasInvocationConfig() { + return invocationConfigBuilder_ != null || invocationConfig_ != null; + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The invocationConfig. + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + getInvocationConfig() { + if (invocationConfigBuilder_ == null) { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + .getDefaultInstance() + : invocationConfig_; + } else { + return invocationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setInvocationConfig( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig value) { + if (invocationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + invocationConfig_ = value; + onChanged(); + } else { + invocationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setInvocationConfig( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder + builderForValue) { + if (invocationConfigBuilder_ == null) { + invocationConfig_ = builderForValue.build(); + onChanged(); + } else { + invocationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeInvocationConfig( + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig value) { + if (invocationConfigBuilder_ == null) { + if (invocationConfig_ != null) { + invocationConfig_ = + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.newBuilder( + invocationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + invocationConfig_ = value; + } + onChanged(); + } else { + invocationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearInvocationConfig() { + if (invocationConfigBuilder_ == null) { + invocationConfig_ = null; + onChanged(); + } else { + invocationConfig_ = null; + invocationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder + getInvocationConfigBuilder() { + + onChanged(); + return getInvocationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder + getInvocationConfigOrBuilder() { + if (invocationConfigBuilder_ != null) { + return invocationConfigBuilder_.getMessageOrBuilder(); + } else { + return invocationConfig_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig + .getDefaultInstance() + : invocationConfig_; + } + } + /** + * + * + *
+     * Immutable. If left unset, a default InvocationConfig will be used.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder> + getInvocationConfigFieldBuilder() { + if (invocationConfigBuilder_ == null) { + invocationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder>( + getInvocationConfig(), getParentForChildren(), isClean()); + invocationConfig_ = null; + } + return invocationConfigBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. This workflow invocation's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.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; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This workflow invocation's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.WorkflowInvocation.State result = + com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.valueOf(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. This workflow invocation's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This workflow invocation's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + 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 invocationTimingBuilder_ != null || invocationTiming_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + invocationTimingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + invocationTimingBuilder_.setMessage(builderForValue.build()); + } + + 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 (invocationTiming_ != null) { + invocationTiming_ = + com.google.type.Interval.newBuilder(invocationTiming_) + .mergeFrom(value) + .buildPartial(); + } else { + invocationTiming_ = value; + } + onChanged(); + } else { + invocationTimingBuilder_.mergeFrom(value); + } + + 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() { + if (invocationTimingBuilder_ == null) { + invocationTiming_ = null; + onChanged(); + } else { + invocationTiming_ = null; + invocationTimingBuilder_ = null; + } + + 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() { + + 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.v1beta1.WorkflowInvocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocation) + private static final com.google.cloud.dataform.v1beta1.WorkflowInvocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WorkflowInvocation(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new WorkflowInvocation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java new file mode 100644 index 0000000..b967c01 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java @@ -0,0 +1,3018 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a single action in a workflow invocation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction} + */ +public final class WorkflowInvocationAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkflowInvocationAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.Target.Builder subBuilder = null; + if (target_ != null) { + subBuilder = target_.toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(target_); + target_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.dataform.v1beta1.Target.Builder subBuilder = null; + if (canonicalTarget_ != null) { + subBuilder = canonicalTarget_.toBuilder(); + } + canonicalTarget_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(canonicalTarget_); + canonicalTarget_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: + { + com.google.type.Interval.Builder subBuilder = null; + if (invocationTiming_ != null) { + subBuilder = invocationTiming_.toBuilder(); + } + invocationTiming_ = + input.readMessage(com.google.type.Interval.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(invocationTiming_); + invocationTiming_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder + subBuilder = null; + if (bigqueryAction_ != null) { + subBuilder = bigqueryAction_.toBuilder(); + } + bigqueryAction_ = + input.readMessage( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigqueryAction_); + bigqueryAction_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + failureReason_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder.class); + } + + /** + * + * + *
+   * Represents the current state of an workflow invocation action.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocationAction.State) + } + + public interface BigQueryActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction.BigQueryAction} + */ + public static final class BigQueryAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + sqlScript_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder + .class); + } + + public static final int SQL_SCRIPT_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction other = + (com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) obj; + + if (!getSqlScript().equals(other.getSqlScript())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction.BigQueryAction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction.BigQueryAction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocationAction.BigQueryAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sqlScript_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction build() { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + buildPartial() { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction result = + new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction(this); + result.sqlScript_ = sqlScript_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction other) { + if (other + == com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + .getDefaultInstance()) return this; + if (!other.getSqlScript().isEmpty()) { + sqlScript_ = other.sqlScript_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) + private static final com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new BigQueryAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TARGET_FIELD_NUMBER = 1; + private com.google.cloud.dataform.v1beta1.Target target_; + /** + * + * + *
+   * Output only. This action's identifier. Unique within the workflow invocation.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the target field is set. + */ + @java.lang.Override + public boolean hasTarget() { + return target_ != null; + } + /** + * + * + *
+   * Output only. This action's identifier. Unique within the workflow invocation.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The target. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getTarget() { + return target_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : target_; + } + /** + * + * + *
+   * Output only. This action's identifier. Unique within the workflow invocation.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { + return getTarget(); + } + + public static final int CANONICAL_TARGET_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the canonicalTarget field is set. + */ + @java.lang.Override + public boolean hasCanonicalTarget() { + return canonicalTarget_ != null; + } + /** + * + * + *
+   * Output only. The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The canonicalTarget. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() { + return canonicalTarget_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() { + return getCanonicalTarget(); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * + * + *
+   * Output only. This action's current state.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State result = + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.valueOf(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.UNRECOGNIZED + : result; + } + + public static final int FAILURE_REASON_FIELD_NUMBER = 7; + 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 invocationTiming_ != null; + } + /** + * + * + *
+   * 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 getInvocationTiming(); + } + + public static final int BIGQUERY_ACTION_FIELD_NUMBER = 6; + private com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigqueryAction_; + /** + * + * + *
+   * Output only. The workflow action's bigquery action details.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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 bigqueryAction_ != null; + } + /** + * + * + *
+   * Output only. The workflow action's bigquery action details.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bigqueryAction. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + getBigqueryAction() { + return bigqueryAction_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + .getDefaultInstance() + : bigqueryAction_; + } + /** + * + * + *
+   * Output only. The workflow action's bigquery action details.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder + getBigqueryActionOrBuilder() { + return getBigqueryAction(); + } + + 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 (target_ != null) { + output.writeMessage(1, getTarget()); + } + if (canonicalTarget_ != null) { + output.writeMessage(2, getCanonicalTarget()); + } + if (state_ + != com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.PENDING.getNumber()) { + output.writeEnum(4, state_); + } + if (invocationTiming_ != null) { + output.writeMessage(5, getInvocationTiming()); + } + if (bigqueryAction_ != null) { + output.writeMessage(6, getBigqueryAction()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, failureReason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (target_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTarget()); + } + if (canonicalTarget_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCanonicalTarget()); + } + if (state_ + != com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.PENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (invocationTiming_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming()); + } + if (bigqueryAction_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBigqueryAction()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, failureReason_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction other = + (com.google.cloud.dataform.v1beta1.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocationAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocationAction) + com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.class, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (targetBuilder_ == null) { + target_ = null; + } else { + target_ = null; + targetBuilder_ = null; + } + if (canonicalTargetBuilder_ == null) { + canonicalTarget_ = null; + } else { + canonicalTarget_ = null; + canonicalTargetBuilder_ = null; + } + state_ = 0; + + failureReason_ = ""; + + if (invocationTimingBuilder_ == null) { + invocationTiming_ = null; + } else { + invocationTiming_ = null; + invocationTimingBuilder_ = null; + } + if (bigqueryActionBuilder_ == null) { + bigqueryAction_ = null; + } else { + bigqueryAction_ = null; + bigqueryActionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction build() { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction buildPartial() { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction result = + new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction(this); + if (targetBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = targetBuilder_.build(); + } + if (canonicalTargetBuilder_ == null) { + result.canonicalTarget_ = canonicalTarget_; + } else { + result.canonicalTarget_ = canonicalTargetBuilder_.build(); + } + result.state_ = state_; + result.failureReason_ = failureReason_; + if (invocationTimingBuilder_ == null) { + result.invocationTiming_ = invocationTiming_; + } else { + result.invocationTiming_ = invocationTimingBuilder_.build(); + } + if (bigqueryActionBuilder_ == null) { + result.bigqueryAction_ = bigqueryAction_; + } else { + result.bigqueryAction_ = bigqueryActionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction) { + return mergeFrom((com.google.cloud.dataform.v1beta1.WorkflowInvocationAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocationAction other) { + if (other == com.google.cloud.dataform.v1beta1.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_; + onChanged(); + } + if (other.hasInvocationTiming()) { + mergeInvocationTiming(other.getInvocationTiming()); + } + if (other.hasBigqueryAction()) { + mergeBigqueryAction(other.getBigqueryAction()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.WorkflowInvocationAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dataform.v1beta1.Target target_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + targetBuilder_; + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the target field is set. + */ + public boolean hasTarget() { + return targetBuilder_ != null || target_ != null; + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The target. + */ + public com.google.cloud.dataform.v1beta1.Target getTarget() { + if (targetBuilder_ == null) { + return target_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : target_; + } else { + return targetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (targetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + targetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTarget(com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (targetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + targetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (targetBuilder_ == null) { + if (target_ != null) { + target_ = + com.google.cloud.dataform.v1beta1.Target.newBuilder(target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + targetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTarget() { + if (targetBuilder_ == null) { + target_ = null; + onChanged(); + } else { + target_ = null; + targetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getTargetBuilder() { + + onChanged(); + return getTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() { + if (targetBuilder_ != null) { + return targetBuilder_.getMessageOrBuilder(); + } else { + return target_ == null + ? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance() + : target_; + } + } + /** + * + * + *
+     * Output only. This action's identifier. Unique within the workflow invocation.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getTargetFieldBuilder() { + if (targetBuilder_ == null) { + targetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder>( + getTarget(), getParentForChildren(), isClean()); + target_ = null; + } + return targetBuilder_; + } + + private com.google.cloud.dataform.v1beta1.Target canonicalTarget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the canonicalTarget field is set. + */ + public boolean hasCanonicalTarget() { + return canonicalTargetBuilder_ != null || canonicalTarget_ != null; + } + /** + * + * + *
+     * Output only. The action's identifier if the project had been compiled without any
+     * overrides configured. Unique within the compilation result.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The canonicalTarget. + */ + public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() { + if (canonicalTargetBuilder_ == null) { + return canonicalTarget_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (canonicalTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + canonicalTarget_ = value; + onChanged(); + } else { + canonicalTargetBuilder_.setMessage(value); + } + + 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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCanonicalTarget( + com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) { + if (canonicalTargetBuilder_ == null) { + canonicalTarget_ = builderForValue.build(); + onChanged(); + } else { + canonicalTargetBuilder_.setMessage(builderForValue.build()); + } + + 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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) { + if (canonicalTargetBuilder_ == null) { + if (canonicalTarget_ != null) { + canonicalTarget_ = + com.google.cloud.dataform.v1beta1.Target.newBuilder(canonicalTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + canonicalTarget_ = value; + } + onChanged(); + } else { + canonicalTargetBuilder_.mergeFrom(value); + } + + 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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCanonicalTarget() { + if (canonicalTargetBuilder_ == null) { + canonicalTarget_ = null; + onChanged(); + } else { + canonicalTarget_ = null; + canonicalTargetBuilder_ = null; + } + + 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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.Target.Builder getCanonicalTargetBuilder() { + + 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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() { + if (canonicalTargetBuilder_ != null) { + return canonicalTargetBuilder_.getMessageOrBuilder(); + } else { + return canonicalTarget_ == null + ? com.google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder> + getCanonicalTargetFieldBuilder() { + if (canonicalTargetBuilder_ == null) { + canonicalTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.Target, + com.google.cloud.dataform.v1beta1.Target.Builder, + com.google.cloud.dataform.v1beta1.TargetOrBuilder>( + getCanonicalTarget(), getParentForChildren(), isClean()); + canonicalTarget_ = null; + } + return canonicalTargetBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. This action's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.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; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This action's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State result = + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.valueOf(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. This action's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. This action's current state.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + 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; + 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(); + 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; + 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 invocationTimingBuilder_ != null || invocationTiming_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + invocationTimingBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + invocationTimingBuilder_.setMessage(builderForValue.build()); + } + + 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 (invocationTiming_ != null) { + invocationTiming_ = + com.google.type.Interval.newBuilder(invocationTiming_) + .mergeFrom(value) + .buildPartial(); + } else { + invocationTiming_ = value; + } + onChanged(); + } else { + invocationTimingBuilder_.mergeFrom(value); + } + + 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() { + if (invocationTimingBuilder_ == null) { + invocationTiming_ = null; + onChanged(); + } else { + invocationTiming_ = null; + invocationTimingBuilder_ = null; + } + + 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() { + + 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.v1beta1.WorkflowInvocationAction.BigQueryAction + bigqueryAction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder> + bigqueryActionBuilder_; + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bigqueryAction field is set. + */ + public boolean hasBigqueryAction() { + return bigqueryActionBuilder_ != null || bigqueryAction_ != null; + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bigqueryAction. + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + getBigqueryAction() { + if (bigqueryActionBuilder_ == null) { + return bigqueryAction_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + .getDefaultInstance() + : bigqueryAction_; + } else { + return bigqueryActionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBigqueryAction( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction value) { + if (bigqueryActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryAction_ = value; + onChanged(); + } else { + bigqueryActionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBigqueryAction( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder + builderForValue) { + if (bigqueryActionBuilder_ == null) { + bigqueryAction_ = builderForValue.build(); + onChanged(); + } else { + bigqueryActionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeBigqueryAction( + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction value) { + if (bigqueryActionBuilder_ == null) { + if (bigqueryAction_ != null) { + bigqueryAction_ = + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.newBuilder( + bigqueryAction_) + .mergeFrom(value) + .buildPartial(); + } else { + bigqueryAction_ = value; + } + onChanged(); + } else { + bigqueryActionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBigqueryAction() { + if (bigqueryActionBuilder_ == null) { + bigqueryAction_ = null; + onChanged(); + } else { + bigqueryAction_ = null; + bigqueryActionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder + getBigqueryActionBuilder() { + + onChanged(); + return getBigqueryActionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder + getBigqueryActionOrBuilder() { + if (bigqueryActionBuilder_ != null) { + return bigqueryActionBuilder_.getMessageOrBuilder(); + } else { + return bigqueryAction_ == null + ? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + .getDefaultInstance() + : bigqueryAction_; + } + } + /** + * + * + *
+     * Output only. The workflow action's bigquery action details.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder> + getBigqueryActionFieldBuilder() { + if (bigqueryActionBuilder_ == null) { + bigqueryActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction, + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder, + com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction) + private static final com.google.cloud.dataform.v1beta1.WorkflowInvocationAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new WorkflowInvocationAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java new file mode 100644 index 0000000..7f18674 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationActionOrBuilder.java @@ -0,0 +1,256 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface WorkflowInvocationActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WorkflowInvocationAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. This action's identifier. Unique within the workflow invocation.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The target. + */ + com.google.cloud.dataform.v1beta1.Target getTarget(); + /** + * + * + *
+   * Output only. This action's identifier. Unique within the workflow invocation.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder(); + + /** + * + * + *
+   * Output only. The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The canonicalTarget. + */ + com.google.cloud.dataform.v1beta1.Target getCanonicalTarget(); + /** + * + * + *
+   * Output only. The action's identifier if the project had been compiled without any
+   * overrides configured. Unique within the compilation result.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder(); + + /** + * + * + *
+   * Output only. This action's current state.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bigqueryAction. + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction getBigqueryAction(); + /** + * + * + *
+   * Output only. The workflow action's bigquery action details.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder + getBigqueryActionOrBuilder(); +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java new file mode 100644 index 0000000..6a7b35e --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class 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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java new file mode 100644 index 0000000..4bcc01d --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface WorkflowInvocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The invocationConfig. + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig getInvocationConfig(); + /** + * + * + *
+   * Immutable. If left unset, a default InvocationConfig will be used.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.dataform.v1beta1.WorkflowInvocation.InvocationConfigOrBuilder + getInvocationConfigOrBuilder(); + + /** + * + * + *
+   * Output only. This workflow invocation's current state.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java new file mode 100644 index 0000000..7af20fe --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java @@ -0,0 +1,636 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents a Dataform Git workspace.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.Workspace} + */ +public final class Workspace extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Workspace( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Workspace.class, + com.google.cloud.dataform.v1beta1.Workspace.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Workspace)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Workspace other = + (com.google.cloud.dataform.v1beta1.Workspace) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Workspace parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.Workspace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Workspace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Workspace) + com.google.cloud.dataform.v1beta1.WorkspaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Workspace.class, + com.google.cloud.dataform.v1beta1.Workspace.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Workspace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Workspace getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Workspace build() { + com.google.cloud.dataform.v1beta1.Workspace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Workspace buildPartial() { + com.google.cloud.dataform.v1beta1.Workspace result = + new com.google.cloud.dataform.v1beta1.Workspace(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Workspace) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Workspace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Workspace other) { + if (other == com.google.cloud.dataform.v1beta1.Workspace.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.Workspace parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataform.v1beta1.Workspace) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Workspace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Workspace) + private static final com.google.cloud.dataform.v1beta1.Workspace DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Workspace(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new Workspace(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Workspace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java new file mode 100644 index 0000000..e9dbb7f --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java @@ -0,0 +1,262 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class 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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java new file mode 100644 index 0000000..b8ed5d7 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface WorkspaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileRequest.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileRequest.java new file mode 100644 index 0000000..df9d928 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileRequest.java @@ -0,0 +1,925 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `WriteFile` request message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WriteFileRequest} + */ +public final class WriteFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteFileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + workspace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 26: + { + contents_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WriteFileRequest.class, + com.google.cloud.dataform.v1beta1.WriteFileRequest.Builder.class); + } + + public static final int WORKSPACE_FIELD_NUMBER = 1; + 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; + 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_; + /** + * + * + *
+   * 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_); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.WriteFileRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WriteFileRequest other = + (com.google.cloud.dataform.v1beta1.WriteFileRequest) obj; + + if (!getWorkspace().equals(other.getWorkspace())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getContents().equals(other.getContents())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WriteFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WriteFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WriteFileRequest) + com.google.cloud.dataform.v1beta1.WriteFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WriteFileRequest.class, + com.google.cloud.dataform.v1beta1.WriteFileRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.WriteFileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WriteFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileRequest build() { + com.google.cloud.dataform.v1beta1.WriteFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileRequest buildPartial() { + com.google.cloud.dataform.v1beta1.WriteFileRequest result = + new com.google.cloud.dataform.v1beta1.WriteFileRequest(this); + result.workspace_ = workspace_; + result.path_ = path_; + result.contents_ = contents_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.WriteFileRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.WriteFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WriteFileRequest other) { + if (other == com.google.cloud.dataform.v1beta1.WriteFileRequest.getDefaultInstance()) + return this; + if (!other.getWorkspace().isEmpty()) { + workspace_ = other.workspace_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (other.getContents() != com.google.protobuf.ByteString.EMPTY) { + setContents(other.getContents()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.WriteFileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.WriteFileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + 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(); + 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; + 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; + 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(); + 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; + 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The file's contents.
+     * 
+ * + * bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearContents() { + + contents_ = getDefaultInstance().getContents(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WriteFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WriteFileRequest) + private static final com.google.cloud.dataform.v1beta1.WriteFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WriteFileRequest(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new WriteFileRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileRequestOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileRequestOrBuilder.java new file mode 100644 index 0000000..db9ef06 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface WriteFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.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/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileResponse.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileResponse.java new file mode 100644 index 0000000..8573ce3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileResponse.java @@ -0,0 +1,458 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * `WriteFile` response message.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.WriteFileResponse} + */ +public final class WriteFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteFileResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WriteFileResponse.class, + com.google.cloud.dataform.v1beta1.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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.WriteFileResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.WriteFileResponse other = + (com.google.cloud.dataform.v1beta1.WriteFileResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.WriteFileResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WriteFileResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WriteFileResponse) + com.google.cloud.dataform.v1beta1.WriteFileResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.WriteFileResponse.class, + com.google.cloud.dataform.v1beta1.WriteFileResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.WriteFileResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.WriteFileResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileResponse build() { + com.google.cloud.dataform.v1beta1.WriteFileResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileResponse buildPartial() { + com.google.cloud.dataform.v1beta1.WriteFileResponse result = + new com.google.cloud.dataform.v1beta1.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.v1beta1.WriteFileResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.WriteFileResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WriteFileResponse other) { + if (other == com.google.cloud.dataform.v1beta1.WriteFileResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dataform.v1beta1.WriteFileResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataform.v1beta1.WriteFileResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WriteFileResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WriteFileResponse) + private static final com.google.cloud.dataform.v1beta1.WriteFileResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WriteFileResponse(); + } + + public static com.google.cloud.dataform.v1beta1.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 { + return new WriteFileResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.WriteFileResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileResponseOrBuilder.java b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileResponseOrBuilder.java new file mode 100644 index 0000000..792902d --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WriteFileResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataform/v1beta1/dataform.proto + +package com.google.cloud.dataform.v1beta1; + +public interface WriteFileResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WriteFileResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto b/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto new file mode 100644 index 0000000..57d43c3 --- /dev/null +++ b/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto @@ -0,0 +1,1629 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.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.v1beta1; + +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.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dataform/v1beta1;dataform"; +option java_multiple_files = true; +option java_outer_classname = "DataformProto"; +option java_package = "com.google.cloud.dataform.v1beta1"; +option php_namespace = "Google\\Cloud\\Dataform\\V1beta1"; +option ruby_package = "Google::Cloud::Dataform::V1beta1"; +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: "/v1beta1/{parent=projects/*/locations/*}/repositories" + }; + option (google.api.method_signature) = "parent"; + } + + // Fetches a single Repository. + rpc GetRepository(GetRepositoryRequest) returns (Repository) { + option (google.api.http) = { + get: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches" + }; + } + + // Lists Workspaces in a given Repository. + rpc ListWorkspaces(ListWorkspacesRequest) returns (ListWorkspacesResponse) { + option (google.api.http) = { + get: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses" + }; + } + + // Fetches Git ahead/behind against a remote branch. + rpc FetchGitAheadBehind(FetchGitAheadBehindRequest) returns (FetchGitAheadBehindResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind" + }; + } + + // Applies a Git commit for uncommitted files in a Workspace. + rpc CommitWorkspaceChanges(CommitWorkspaceChangesRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff" + }; + } + + // Returns the contents of a given Workspace directory. + rpc QueryDirectoryContents(QueryDirectoryContentsRequest) returns (QueryDirectoryContentsResponse) { + option (google.api.http) = { + get: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents" + }; + } + + // Creates a directory inside a Workspace. + rpc MakeDirectory(MakeDirectoryRequest) returns (MakeDirectoryResponse) { + option (google.api.http) = { + post: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile" + }; + } + + // Deletes a file (inside a Workspace). + rpc RemoveFile(RemoveFileRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{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: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile" + body: "*" + }; + } + + // Writes to a file (inside a Workspace). + rpc WriteFile(WriteFileRequest) returns (WriteFileResponse) { + option (google.api.http) = { + post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile" + body: "*" + }; + } + + // Lists CompilationResults in a given Repository. + rpc ListCompilationResults(ListCompilationResultsRequest) returns (ListCompilationResultsResponse) { + option (google.api.http) = { + get: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query" + }; + } + + // Lists WorkflowInvocations in a given Repository. + rpc ListWorkflowInvocations(ListWorkflowInvocationsRequest) returns (ListWorkflowInvocationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{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: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel" + body: "*" + }; + } + + // Returns WorkflowInvocationActions in a given WorkflowInvocation. + rpc QueryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest) returns (QueryWorkflowInvocationActionsResponse) { + option (google.api.http) = { + get: "/v1beta1/{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 repository in which to create the workflow invocation. Must be in the + // format `projects/*/locations/*/repositories/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + 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/samples/pom.xml b/samples/pom.xml index 40ee0fa..8a7f8d9 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -38,7 +38,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9204da5..95e5cd9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataform - 0.1.0 + 0.2.0 diff --git a/versions.txt b/versions.txt index a66a240..a055953 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataform:0.1.0:0.1.0 -proto-google-cloud-dataform-v1alpha2:0.1.0:0.1.0 -grpc-google-cloud-dataform-v1alpha2:0.1.0:0.1.0 +google-cloud-dataform:0.2.0:0.2.0 +proto-google-cloud-dataform-v1alpha2:0.2.0:0.2.0 +grpc-google-cloud-dataform-v1alpha2:0.2.0:0.2.0 +proto-google-cloud-dataform-v1beta1:0.2.0:0.2.0 +grpc-google-cloud-dataform-v1beta1:0.2.0:0.2.0