diff --git a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml index 2172642f387b..efba65859bb4 100644 --- a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml +++ b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml @@ -20,52 +20,7 @@ deep-remove-regex: - "/java-bigquerydatatransfer/samples/snippets/generated" deep-preserve-regex: -- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/SampleApp.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/resourcestate.proto" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datasource.proto" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UntypedDataSourceName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UntypedRunName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UntypedTransferConfigName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateDataSourceDefinitionRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateDataSourceDefinitionRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferRunRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferRunRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/WriteDisposition.java" -- "/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceServiceGrpc.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateDataSourceDefinitionRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateDataSourceDefinitionRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceDefinition.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceDefinitionOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceNames.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceProto.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteDataSourceDefinitionRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteDataSourceDefinitionRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/FinishRunRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/FinishRunRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceDefinitionRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceDefinitionRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ImportedDataInfo.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ImportedDataInfoOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsResponse.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsResponseOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationDataSourceName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationRunName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationTransferConfigName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LogTransferRunMessagesRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LogTransferRunMessagesRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectDataSourceName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectRunName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectTransferConfigName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunNames.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartBigQueryJobsRequest.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartBigQueryJobsRequestOrBuilder.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigNames.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java" -- "/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java" deep-copy-regex: - source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceServiceGrpc.java b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceServiceGrpc.java deleted file mode 100644 index f0a78da9f0c1..000000000000 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceServiceGrpc.java +++ /dev/null @@ -1,1609 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.bigquery.datatransfer.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * The Google BigQuery Data Transfer API allows BigQuery users to - * configure transfer of their data from other Google Products into BigQuery. - * This service exposes methods that should be used by data source backend. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/bigquery/datatransfer/v1/datasource.proto") -public final class DataSourceServiceGrpc { - - private DataSourceServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.bigquery.datatransfer.v1.DataSourceService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateTransferRunMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - METHOD_UPDATE_TRANSFER_RUN = getUpdateTransferRunMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getUpdateTransferRunMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getUpdateTransferRunMethod() { - return getUpdateTransferRunMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getUpdateTransferRunMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - getUpdateTransferRunMethod; - if ((getUpdateTransferRunMethod = DataSourceServiceGrpc.getUpdateTransferRunMethod) == null) { - synchronized (DataSourceServiceGrpc.class) { - if ((getUpdateTransferRunMethod = DataSourceServiceGrpc.getUpdateTransferRunMethod) - == null) { - DataSourceServiceGrpc.getUpdateTransferRunMethod = - getUpdateTransferRunMethod = - io.grpc.MethodDescriptor - .
- * The Google BigQuery Data Transfer API allows BigQuery users to - * configure transfer of their data from other Google Products into BigQuery. - * This service exposes methods that should be used by data source backend. - *- */ - public abstract static class DataSourceServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Update a transfer run. If successful, resets - * data_source.update_deadline_seconds timer. - *- */ - public void updateTransferRun( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest request, - io.grpc.stub.StreamObserver
- * Log messages for a transfer run. If successful (at least 1 message), resets - * data_source.update_deadline_seconds timer. - *- */ - public void logTransferRunMessages( - com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest request, - io.grpc.stub.StreamObserver
- * Notify the Data Transfer Service that data is ready for loading. - * The Data Transfer Service will start and monitor multiple BigQuery Load - * jobs for a transfer run. Monitored jobs will be automatically retried - * and produce log messages when starting and finishing a job. - * Can be called multiple times for the same transfer run. - *- */ - public void startBigQueryJobs( - com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest request, - io.grpc.stub.StreamObserver
- * Notify the Data Transfer Service that the data source is done processing - * the run. No more status updates or requests to start/monitor jobs will be - * accepted. The run will be finalized by the Data Transfer Service when all - * monitored jobs are completed. - * Does not need to be called if the run is set to FAILED. - *- */ - public void finishRun( - com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest request, - io.grpc.stub.StreamObserver
- * Creates a data source definition. Calling this method will automatically - * use your credentials to create the following Google Cloud resources in - * YOUR Google Cloud project. - * 1. OAuth client - * 2. Pub/Sub Topics and Subscriptions in each supported_location_ids. e.g., - * projects/{project_id}/{topics|subscriptions}/bigquerydatatransfer.{data_source_id}.{location_id}.run - * The field data_source.client_id should be left empty in the input request, - * as the API will create a new OAuth client on behalf of the caller. On the - * other hand data_source.scopes usually need to be set when there are OAuth - * scopes that need to be granted by end users. - * 3. We need a longer deadline due to the 60 seconds SLO from Pub/Sub admin - * Operations. This also applies to update and delete data source definition. - *- */ - public void createDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Updates an existing data source definition. If changing - * supported_location_ids, triggers same effects as mentioned in "Create a - * data source definition." - *- */ - public void updateDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Deletes a data source definition, all of the transfer configs associated - * with this data source definition (if any) must be deleted first by the user - * in ALL regions, in order to delete the data source definition. - * This method is primarily meant for deleting data sources created during - * testing stage. - * If the data source is referenced by transfer configs in the region - * specified in the request URL, the method will fail immediately. If in the - * current region (e.g., US) it's not used by any transfer configs, but in - * another region (e.g., EU) it is, then although the method will succeed in - * region US, but it will fail when the deletion operation is replicated to - * region EU. And eventually, the system will replicate the data source - * definition back from EU to US, in order to bring all regions to - * consistency. The final effect is that the data source appears to be - * 'undeleted' in the US region. - *- */ - public void deleteDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Retrieves an existing data source definition. - *- */ - public void getDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Lists supported data source definitions. - *- */ - public void listDataSourceDefinitions( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse> - responseObserver) { - asyncUnimplementedUnaryCall(getListDataSourceDefinitionsMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getUpdateTransferRunMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest, - com.google.cloud.bigquery.datatransfer.v1.TransferRun>( - this, METHODID_UPDATE_TRANSFER_RUN))) - .addMethod( - getLogTransferRunMessagesMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest, - com.google.protobuf.Empty>(this, METHODID_LOG_TRANSFER_RUN_MESSAGES))) - .addMethod( - getStartBigQueryJobsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest, - com.google.protobuf.Empty>(this, METHODID_START_BIG_QUERY_JOBS))) - .addMethod( - getFinishRunMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest, - com.google.protobuf.Empty>(this, METHODID_FINISH_RUN))) - .addMethod( - getCreateDataSourceDefinitionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition>( - this, METHODID_CREATE_DATA_SOURCE_DEFINITION))) - .addMethod( - getUpdateDataSourceDefinitionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition>( - this, METHODID_UPDATE_DATA_SOURCE_DEFINITION))) - .addMethod( - getDeleteDataSourceDefinitionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DATA_SOURCE_DEFINITION))) - .addMethod( - getGetDataSourceDefinitionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest, - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition>( - this, METHODID_GET_DATA_SOURCE_DEFINITION))) - .addMethod( - getListDataSourceDefinitionsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse>( - this, METHODID_LIST_DATA_SOURCE_DEFINITIONS))) - .build(); - } - } - - /** - * - * - *
- * The Google BigQuery Data Transfer API allows BigQuery users to - * configure transfer of their data from other Google Products into BigQuery. - * This service exposes methods that should be used by data source backend. - *- */ - public static final class DataSourceServiceStub - extends io.grpc.stub.AbstractStub
- * Update a transfer run. If successful, resets - * data_source.update_deadline_seconds timer. - *- */ - public void updateTransferRun( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest request, - io.grpc.stub.StreamObserver
- * Log messages for a transfer run. If successful (at least 1 message), resets - * data_source.update_deadline_seconds timer. - *- */ - public void logTransferRunMessages( - com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest request, - io.grpc.stub.StreamObserver
- * Notify the Data Transfer Service that data is ready for loading. - * The Data Transfer Service will start and monitor multiple BigQuery Load - * jobs for a transfer run. Monitored jobs will be automatically retried - * and produce log messages when starting and finishing a job. - * Can be called multiple times for the same transfer run. - *- */ - public void startBigQueryJobs( - com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest request, - io.grpc.stub.StreamObserver
- * Notify the Data Transfer Service that the data source is done processing - * the run. No more status updates or requests to start/monitor jobs will be - * accepted. The run will be finalized by the Data Transfer Service when all - * monitored jobs are completed. - * Does not need to be called if the run is set to FAILED. - *- */ - public void finishRun( - com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest request, - io.grpc.stub.StreamObserver
- * Creates a data source definition. Calling this method will automatically - * use your credentials to create the following Google Cloud resources in - * YOUR Google Cloud project. - * 1. OAuth client - * 2. Pub/Sub Topics and Subscriptions in each supported_location_ids. e.g., - * projects/{project_id}/{topics|subscriptions}/bigquerydatatransfer.{data_source_id}.{location_id}.run - * The field data_source.client_id should be left empty in the input request, - * as the API will create a new OAuth client on behalf of the caller. On the - * other hand data_source.scopes usually need to be set when there are OAuth - * scopes that need to be granted by end users. - * 3. We need a longer deadline due to the 60 seconds SLO from Pub/Sub admin - * Operations. This also applies to update and delete data source definition. - *- */ - public void createDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Updates an existing data source definition. If changing - * supported_location_ids, triggers same effects as mentioned in "Create a - * data source definition." - *- */ - public void updateDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Deletes a data source definition, all of the transfer configs associated - * with this data source definition (if any) must be deleted first by the user - * in ALL regions, in order to delete the data source definition. - * This method is primarily meant for deleting data sources created during - * testing stage. - * If the data source is referenced by transfer configs in the region - * specified in the request URL, the method will fail immediately. If in the - * current region (e.g., US) it's not used by any transfer configs, but in - * another region (e.g., EU) it is, then although the method will succeed in - * region US, but it will fail when the deletion operation is replicated to - * region EU. And eventually, the system will replicate the data source - * definition back from EU to US, in order to bring all regions to - * consistency. The final effect is that the data source appears to be - * 'undeleted' in the US region. - *- */ - public void deleteDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Retrieves an existing data source definition. - *- */ - public void getDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest request, - io.grpc.stub.StreamObserver
- * Lists supported data source definitions. - *- */ - public void listDataSourceDefinitions( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse> - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListDataSourceDefinitionsMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
- * The Google BigQuery Data Transfer API allows BigQuery users to - * configure transfer of their data from other Google Products into BigQuery. - * This service exposes methods that should be used by data source backend. - *- */ - public static final class DataSourceServiceBlockingStub - extends io.grpc.stub.AbstractStub
- * Update a transfer run. If successful, resets - * data_source.update_deadline_seconds timer. - *- */ - public com.google.cloud.bigquery.datatransfer.v1.TransferRun updateTransferRun( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateTransferRunMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Log messages for a transfer run. If successful (at least 1 message), resets - * data_source.update_deadline_seconds timer. - *- */ - public com.google.protobuf.Empty logTransferRunMessages( - com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest request) { - return blockingUnaryCall( - getChannel(), getLogTransferRunMessagesMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Notify the Data Transfer Service that data is ready for loading. - * The Data Transfer Service will start and monitor multiple BigQuery Load - * jobs for a transfer run. Monitored jobs will be automatically retried - * and produce log messages when starting and finishing a job. - * Can be called multiple times for the same transfer run. - *- */ - public com.google.protobuf.Empty startBigQueryJobs( - com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest request) { - return blockingUnaryCall( - getChannel(), getStartBigQueryJobsMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Notify the Data Transfer Service that the data source is done processing - * the run. No more status updates or requests to start/monitor jobs will be - * accepted. The run will be finalized by the Data Transfer Service when all - * monitored jobs are completed. - * Does not need to be called if the run is set to FAILED. - *- */ - public com.google.protobuf.Empty finishRun( - com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest request) { - return blockingUnaryCall(getChannel(), getFinishRunMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a data source definition. Calling this method will automatically - * use your credentials to create the following Google Cloud resources in - * YOUR Google Cloud project. - * 1. OAuth client - * 2. Pub/Sub Topics and Subscriptions in each supported_location_ids. e.g., - * projects/{project_id}/{topics|subscriptions}/bigquerydatatransfer.{data_source_id}.{location_id}.run - * The field data_source.client_id should be left empty in the input request, - * as the API will create a new OAuth client on behalf of the caller. On the - * other hand data_source.scopes usually need to be set when there are OAuth - * scopes that need to be granted by end users. - * 3. We need a longer deadline due to the 60 seconds SLO from Pub/Sub admin - * Operations. This also applies to update and delete data source definition. - *- */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition - createDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest request) { - return blockingUnaryCall( - getChannel(), getCreateDataSourceDefinitionMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates an existing data source definition. If changing - * supported_location_ids, triggers same effects as mentioned in "Create a - * data source definition." - *- */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition - updateDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateDataSourceDefinitionMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a data source definition, all of the transfer configs associated - * with this data source definition (if any) must be deleted first by the user - * in ALL regions, in order to delete the data source definition. - * This method is primarily meant for deleting data sources created during - * testing stage. - * If the data source is referenced by transfer configs in the region - * specified in the request URL, the method will fail immediately. If in the - * current region (e.g., US) it's not used by any transfer configs, but in - * another region (e.g., EU) it is, then although the method will succeed in - * region US, but it will fail when the deletion operation is replicated to - * region EU. And eventually, the system will replicate the data source - * definition back from EU to US, in order to bring all regions to - * consistency. The final effect is that the data source appears to be - * 'undeleted' in the US region. - *- */ - public com.google.protobuf.Empty deleteDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteDataSourceDefinitionMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Retrieves an existing data source definition. - *- */ - public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest request) { - return blockingUnaryCall( - getChannel(), getGetDataSourceDefinitionMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists supported data source definitions. - *- */ - public com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse - listDataSourceDefinitions( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest request) { - return blockingUnaryCall( - getChannel(), getListDataSourceDefinitionsMethodHelper(), getCallOptions(), request); - } - } - - /** - * - * - *
- * The Google BigQuery Data Transfer API allows BigQuery users to - * configure transfer of their data from other Google Products into BigQuery. - * This service exposes methods that should be used by data source backend. - *- */ - public static final class DataSourceServiceFutureStub - extends io.grpc.stub.AbstractStub
- * Update a transfer run. If successful, resets - * data_source.update_deadline_seconds timer. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.TransferRun> - updateTransferRun( - com.google.cloud.bigquery.datatransfer.v1.UpdateTransferRunRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateTransferRunMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
- * Log messages for a transfer run. If successful (at least 1 message), resets - * data_source.update_deadline_seconds timer. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Notify the Data Transfer Service that data is ready for loading. - * The Data Transfer Service will start and monitor multiple BigQuery Load - * jobs for a transfer run. Monitored jobs will be automatically retried - * and produce log messages when starting and finishing a job. - * Can be called multiple times for the same transfer run. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Notify the Data Transfer Service that the data source is done processing - * the run. No more status updates or requests to start/monitor jobs will be - * accepted. The run will be finalized by the Data Transfer Service when all - * monitored jobs are completed. - * Does not need to be called if the run is set to FAILED. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a data source definition. Calling this method will automatically - * use your credentials to create the following Google Cloud resources in - * YOUR Google Cloud project. - * 1. OAuth client - * 2. Pub/Sub Topics and Subscriptions in each supported_location_ids. e.g., - * projects/{project_id}/{topics|subscriptions}/bigquerydatatransfer.{data_source_id}.{location_id}.run - * The field data_source.client_id should be left empty in the input request, - * as the API will create a new OAuth client on behalf of the caller. On the - * other hand data_source.scopes usually need to be set when there are OAuth - * scopes that need to be granted by end users. - * 3. We need a longer deadline due to the 60 seconds SLO from Pub/Sub admin - * Operations. This also applies to update and delete data source definition. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition> - createDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateDataSourceDefinitionMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
- * Updates an existing data source definition. If changing - * supported_location_ids, triggers same effects as mentioned in "Create a - * data source definition." - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition> - updateDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateDataSourceDefinitionMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
- * Deletes a data source definition, all of the transfer configs associated - * with this data source definition (if any) must be deleted first by the user - * in ALL regions, in order to delete the data source definition. - * This method is primarily meant for deleting data sources created during - * testing stage. - * If the data source is referenced by transfer configs in the region - * specified in the request URL, the method will fail immediately. If in the - * current region (e.g., US) it's not used by any transfer configs, but in - * another region (e.g., EU) it is, then although the method will succeed in - * region US, but it will fail when the deletion operation is replicated to - * region EU. And eventually, the system will replicate the data source - * definition back from EU to US, in order to bring all regions to - * consistency. The final effect is that the data source appears to be - * 'undeleted' in the US region. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Retrieves an existing data source definition. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition> - getDataSourceDefinition( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetDataSourceDefinitionMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
- * Lists supported data source definitions. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse> - listDataSourceDefinitions( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListDataSourceDefinitionsMethodHelper(), getCallOptions()), - request); - } - } - - private static final int METHODID_UPDATE_TRANSFER_RUN = 0; - private static final int METHODID_LOG_TRANSFER_RUN_MESSAGES = 1; - private static final int METHODID_START_BIG_QUERY_JOBS = 2; - private static final int METHODID_FINISH_RUN = 3; - private static final int METHODID_CREATE_DATA_SOURCE_DEFINITION = 4; - private static final int METHODID_UPDATE_DATA_SOURCE_DEFINITION = 5; - private static final int METHODID_DELETE_DATA_SOURCE_DEFINITION = 6; - private static final int METHODID_GET_DATA_SOURCE_DEFINITION = 7; - private static final int METHODID_LIST_DATA_SOURCE_DEFINITIONS = 8; - - private static final class MethodHandlers
- * Represents the request of the CreateDataSourceDefinition method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest} - */ -public final class CreateDataSourceDefinitionRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest) - CreateDataSourceDefinitionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDataSourceDefinitionRequest.newBuilder() to construct. - private CreateDataSourceDefinitionRequest( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private CreateDataSourceDefinitionRequest() { - parent_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateDataSourceDefinitionRequest( - 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(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder subBuilder = - null; - if (dataSourceDefinition_ != null) { - subBuilder = dataSourceDefinition_.toBuilder(); - } - dataSourceDefinition_ = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataSourceDefinition_); - dataSourceDefinition_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest.class, - com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest.Builder - .class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
- * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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 DATA_SOURCE_DEFINITION_FIELD_NUMBER = 2;
- private com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition dataSourceDefinition_;
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public boolean hasDataSourceDefinition() {
- return dataSourceDefinition_ != null;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinition() {
- return dataSourceDefinition_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance()
- : dataSourceDefinition_;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionOrBuilder() {
- return getDataSourceDefinition();
- }
-
- 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 (!getParentBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
- }
- if (dataSourceDefinition_ != null) {
- output.writeMessage(2, getDataSourceDefinition());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getParentBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
- }
- if (dataSourceDefinition_ != null) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataSourceDefinition());
- }
- 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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest) obj;
-
- if (!getParent().equals(other.getParent())) return false;
- if (hasDataSourceDefinition() != other.hasDataSourceDefinition()) return false;
- if (hasDataSourceDefinition()) {
- if (!getDataSourceDefinition().equals(other.getDataSourceDefinition())) 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 (hasDataSourceDefinition()) {
- hash = (37 * hash) + DATA_SOURCE_DEFINITION_FIELD_NUMBER;
- hash = (53 * hash) + getDataSourceDefinition().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest 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 request of the CreateDataSourceDefinition method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- public Builder setParent(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- parent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- public Builder clearParent() {
-
- parent_ = getDefaultInstance().getParent();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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.bigquery.datatransfer.v1.DataSourceDefinition dataSourceDefinition_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>
- dataSourceDefinitionBuilder_;
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public boolean hasDataSourceDefinition() {
- return dataSourceDefinitionBuilder_ != null || dataSourceDefinition_ != null;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition
- getDataSourceDefinition() {
- if (dataSourceDefinitionBuilder_ == null) {
- return dataSourceDefinition_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance()
- : dataSourceDefinition_;
- } else {
- return dataSourceDefinitionBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public Builder setDataSourceDefinition(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataSourceDefinition_ = value;
- onChanged();
- } else {
- dataSourceDefinitionBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public Builder setDataSourceDefinition(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder builderForValue) {
- if (dataSourceDefinitionBuilder_ == null) {
- dataSourceDefinition_ = builderForValue.build();
- onChanged();
- } else {
- dataSourceDefinitionBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public Builder mergeDataSourceDefinition(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionBuilder_ == null) {
- if (dataSourceDefinition_ != null) {
- dataSourceDefinition_ =
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.newBuilder(
- dataSourceDefinition_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- dataSourceDefinition_ = value;
- }
- onChanged();
- } else {
- dataSourceDefinitionBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public Builder clearDataSourceDefinition() {
- if (dataSourceDefinitionBuilder_ == null) {
- dataSourceDefinition_ = null;
- onChanged();
- } else {
- dataSourceDefinition_ = null;
- dataSourceDefinitionBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder
- getDataSourceDefinitionBuilder() {
-
- onChanged();
- return getDataSourceDefinitionFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionOrBuilder() {
- if (dataSourceDefinitionBuilder_ != null) {
- return dataSourceDefinitionBuilder_.getMessageOrBuilder();
- } else {
- return dataSourceDefinition_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance()
- : dataSourceDefinition_;
- }
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>
- getDataSourceDefinitionFieldBuilder() {
- if (dataSourceDefinitionBuilder_ == null) {
- dataSourceDefinitionBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>(
- getDataSourceDefinition(), getParentForChildren(), isClean());
- dataSourceDefinition_ = null;
- }
- return dataSourceDefinitionBuilder_;
- }
-
- @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.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.CreateDataSourceDefinitionRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- java.lang.String getParent();
- /**
- *
- *
- * - * The BigQuery project id for which data source definition is associated. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- com.google.protobuf.ByteString getParentBytes();
-
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- boolean hasDataSourceDefinition();
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinition();
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionOrBuilder();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceDefinition.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceDefinition.java
deleted file mode 100644
index 10d92df3585a..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceDefinition.java
+++ /dev/null
@@ -1,2534 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * Represents the data source definition. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSourceDefinition} - */ -public final class DataSourceDefinition extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DataSourceDefinition) - DataSourceDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataSourceDefinition.newBuilder() to construct. - private DataSourceDefinition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private DataSourceDefinition() { - name_ = ""; - transferRunPubsubTopic_ = ""; - supportEmail_ = ""; - serviceAccount_ = ""; - transferConfigPubsubTopic_ = ""; - supportedLocationIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DataSourceDefinition( - 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: - { - com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder subBuilder = null; - if (dataSource_ != null) { - subBuilder = dataSource_.toBuilder(); - } - dataSource_ = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataSource_); - dataSource_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 40: - { - disabled_ = input.readBool(); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - transferConfigPubsubTopic_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - transferRunPubsubTopic_ = s; - break; - } - case 130: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (runTimeOffset_ != null) { - subBuilder = runTimeOffset_.toBuilder(); - } - runTimeOffset_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runTimeOffset_); - runTimeOffset_ = subBuilder.buildPartial(); - } - - break; - } - case 170: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 178: - { - java.lang.String s = input.readStringRequireUtf8(); - - supportEmail_ = s; - break; - } - case 186: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - supportedLocationIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - supportedLocationIds_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000100) != 0)) { - supportedLocationIds_ = supportedLocationIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.class, - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 21; - private volatile java.lang.Object name_; - /** - * - * - *
- * The resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- 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 resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- 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 DATA_SOURCE_FIELD_NUMBER = 1;
- private com.google.cloud.bigquery.datatransfer.v1.DataSource dataSource_;
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public boolean hasDataSource() {
- return dataSource_ != null;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource() {
- return dataSource_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()
- : dataSource_;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourceOrBuilder() {
- return getDataSource();
- }
-
- public static final int TRANSFER_RUN_PUBSUB_TOPIC_FIELD_NUMBER = 13;
- private volatile java.lang.Object transferRunPubsubTopic_;
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public java.lang.String getTransferRunPubsubTopic() {
- java.lang.Object ref = transferRunPubsubTopic_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- transferRunPubsubTopic_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public com.google.protobuf.ByteString getTransferRunPubsubTopicBytes() {
- java.lang.Object ref = transferRunPubsubTopic_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transferRunPubsubTopic_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int RUN_TIME_OFFSET_FIELD_NUMBER = 16;
- private com.google.protobuf.Duration runTimeOffset_;
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public boolean hasRunTimeOffset() {
- return runTimeOffset_ != null;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public com.google.protobuf.Duration getRunTimeOffset() {
- return runTimeOffset_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : runTimeOffset_;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public com.google.protobuf.DurationOrBuilder getRunTimeOffsetOrBuilder() {
- return getRunTimeOffset();
- }
-
- public static final int SUPPORT_EMAIL_FIELD_NUMBER = 22;
- private volatile java.lang.Object supportEmail_;
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public java.lang.String getSupportEmail() {
- java.lang.Object ref = supportEmail_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- supportEmail_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public com.google.protobuf.ByteString getSupportEmailBytes() {
- java.lang.Object ref = supportEmail_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- supportEmail_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2;
- private volatile java.lang.Object serviceAccount_;
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public java.lang.String getServiceAccount() {
- java.lang.Object ref = serviceAccount_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- serviceAccount_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public com.google.protobuf.ByteString getServiceAccountBytes() {
- java.lang.Object ref = serviceAccount_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- serviceAccount_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DISABLED_FIELD_NUMBER = 5;
- private boolean disabled_;
- /**
- *
- *
- * - * Is data source disabled? If true, data_source is not visible. - * API will also stop returning any data transfer configs and/or runs - * associated with the data source. This setting has higher priority - * than whitelisted_project_ids. - *- * - *
bool disabled = 5;
- */
- public boolean getDisabled() {
- return disabled_;
- }
-
- public static final int TRANSFER_CONFIG_PUBSUB_TOPIC_FIELD_NUMBER = 12;
- private volatile java.lang.Object transferConfigPubsubTopic_;
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public java.lang.String getTransferConfigPubsubTopic() {
- java.lang.Object ref = transferConfigPubsubTopic_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- transferConfigPubsubTopic_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public com.google.protobuf.ByteString getTransferConfigPubsubTopicBytes() {
- java.lang.Object ref = transferConfigPubsubTopic_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transferConfigPubsubTopic_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SUPPORTED_LOCATION_IDS_FIELD_NUMBER = 23;
- private com.google.protobuf.LazyStringList supportedLocationIds_;
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public com.google.protobuf.ProtocolStringList getSupportedLocationIdsList() {
- return supportedLocationIds_;
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public int getSupportedLocationIdsCount() {
- return supportedLocationIds_.size();
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public java.lang.String getSupportedLocationIds(int index) {
- return supportedLocationIds_.get(index);
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public com.google.protobuf.ByteString getSupportedLocationIdsBytes(int index) {
- return supportedLocationIds_.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 (dataSource_ != null) {
- output.writeMessage(1, getDataSource());
- }
- if (!getServiceAccountBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_);
- }
- if (disabled_ != false) {
- output.writeBool(5, disabled_);
- }
- if (!getTransferConfigPubsubTopicBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 12, transferConfigPubsubTopic_);
- }
- if (!getTransferRunPubsubTopicBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 13, transferRunPubsubTopic_);
- }
- if (runTimeOffset_ != null) {
- output.writeMessage(16, getRunTimeOffset());
- }
- if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 21, name_);
- }
- if (!getSupportEmailBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 22, supportEmail_);
- }
- for (int i = 0; i < supportedLocationIds_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(
- output, 23, supportedLocationIds_.getRaw(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (dataSource_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataSource());
- }
- if (!getServiceAccountBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_);
- }
- if (disabled_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disabled_);
- }
- if (!getTransferConfigPubsubTopicBytes().isEmpty()) {
- size +=
- com.google.protobuf.GeneratedMessageV3.computeStringSize(12, transferConfigPubsubTopic_);
- }
- if (!getTransferRunPubsubTopicBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, transferRunPubsubTopic_);
- }
- if (runTimeOffset_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getRunTimeOffset());
- }
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, name_);
- }
- if (!getSupportEmailBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, supportEmail_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < supportedLocationIds_.size(); i++) {
- dataSize += computeStringSizeNoTag(supportedLocationIds_.getRaw(i));
- }
- size += dataSize;
- size += 2 * getSupportedLocationIdsList().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.bigquery.datatransfer.v1.DataSourceDefinition)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition other =
- (com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition) obj;
-
- if (!getName().equals(other.getName())) return false;
- if (hasDataSource() != other.hasDataSource()) return false;
- if (hasDataSource()) {
- if (!getDataSource().equals(other.getDataSource())) return false;
- }
- if (!getTransferRunPubsubTopic().equals(other.getTransferRunPubsubTopic())) return false;
- if (hasRunTimeOffset() != other.hasRunTimeOffset()) return false;
- if (hasRunTimeOffset()) {
- if (!getRunTimeOffset().equals(other.getRunTimeOffset())) return false;
- }
- if (!getSupportEmail().equals(other.getSupportEmail())) return false;
- if (!getServiceAccount().equals(other.getServiceAccount())) return false;
- if (getDisabled() != other.getDisabled()) return false;
- if (!getTransferConfigPubsubTopic().equals(other.getTransferConfigPubsubTopic())) return false;
- if (!getSupportedLocationIdsList().equals(other.getSupportedLocationIdsList())) 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 (hasDataSource()) {
- hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER;
- hash = (53 * hash) + getDataSource().hashCode();
- }
- hash = (37 * hash) + TRANSFER_RUN_PUBSUB_TOPIC_FIELD_NUMBER;
- hash = (53 * hash) + getTransferRunPubsubTopic().hashCode();
- if (hasRunTimeOffset()) {
- hash = (37 * hash) + RUN_TIME_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + getRunTimeOffset().hashCode();
- }
- hash = (37 * hash) + SUPPORT_EMAIL_FIELD_NUMBER;
- hash = (53 * hash) + getSupportEmail().hashCode();
- hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
- hash = (53 * hash) + getServiceAccount().hashCode();
- hash = (37 * hash) + DISABLED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled());
- hash = (37 * hash) + TRANSFER_CONFIG_PUBSUB_TOPIC_FIELD_NUMBER;
- hash = (53 * hash) + getTransferConfigPubsubTopic().hashCode();
- if (getSupportedLocationIdsCount() > 0) {
- hash = (37 * hash) + SUPPORTED_LOCATION_IDS_FIELD_NUMBER;
- hash = (53 * hash) + getSupportedLocationIdsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition 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.bigquery.datatransfer.v1.DataSourceDefinition parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition 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.bigquery.datatransfer.v1.DataSourceDefinition parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition 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.bigquery.datatransfer.v1.DataSourceDefinition parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition 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.bigquery.datatransfer.v1.DataSourceDefinition parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition 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.bigquery.datatransfer.v1.DataSourceDefinition 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 data source definition. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSourceDefinition} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- 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 resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- 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 resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- 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.bigquery.datatransfer.v1.DataSource dataSource_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSource,
- com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>
- dataSourceBuilder_;
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public boolean hasDataSource() {
- return dataSourceBuilder_ != null || dataSource_ != null;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource() {
- if (dataSourceBuilder_ == null) {
- return dataSource_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()
- : dataSource_;
- } else {
- return dataSourceBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public Builder setDataSource(com.google.cloud.bigquery.datatransfer.v1.DataSource value) {
- if (dataSourceBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataSource_ = value;
- onChanged();
- } else {
- dataSourceBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public Builder setDataSource(
- com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder builderForValue) {
- if (dataSourceBuilder_ == null) {
- dataSource_ = builderForValue.build();
- onChanged();
- } else {
- dataSourceBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public Builder mergeDataSource(com.google.cloud.bigquery.datatransfer.v1.DataSource value) {
- if (dataSourceBuilder_ == null) {
- if (dataSource_ != null) {
- dataSource_ =
- com.google.cloud.bigquery.datatransfer.v1.DataSource.newBuilder(dataSource_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- dataSource_ = value;
- }
- onChanged();
- } else {
- dataSourceBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public Builder clearDataSource() {
- if (dataSourceBuilder_ == null) {
- dataSource_ = null;
- onChanged();
- } else {
- dataSource_ = null;
- dataSourceBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder getDataSourceBuilder() {
-
- onChanged();
- return getDataSourceFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourceOrBuilder() {
- if (dataSourceBuilder_ != null) {
- return dataSourceBuilder_.getMessageOrBuilder();
- } else {
- return dataSource_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance()
- : dataSource_;
- }
- }
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSource,
- com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>
- getDataSourceFieldBuilder() {
- if (dataSourceBuilder_ == null) {
- dataSourceBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSource,
- com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder>(
- getDataSource(), getParentForChildren(), isClean());
- dataSource_ = null;
- }
- return dataSourceBuilder_;
- }
-
- private java.lang.Object transferRunPubsubTopic_ = "";
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public java.lang.String getTransferRunPubsubTopic() {
- java.lang.Object ref = transferRunPubsubTopic_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- transferRunPubsubTopic_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public com.google.protobuf.ByteString getTransferRunPubsubTopicBytes() {
- java.lang.Object ref = transferRunPubsubTopic_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transferRunPubsubTopic_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public Builder setTransferRunPubsubTopic(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- transferRunPubsubTopic_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public Builder clearTransferRunPubsubTopic() {
-
- transferRunPubsubTopic_ = getDefaultInstance().getTransferRunPubsubTopic();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- public Builder setTransferRunPubsubTopicBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- transferRunPubsubTopic_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Duration runTimeOffset_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>
- runTimeOffsetBuilder_;
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public boolean hasRunTimeOffset() {
- return runTimeOffsetBuilder_ != null || runTimeOffset_ != null;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public com.google.protobuf.Duration getRunTimeOffset() {
- if (runTimeOffsetBuilder_ == null) {
- return runTimeOffset_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : runTimeOffset_;
- } else {
- return runTimeOffsetBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public Builder setRunTimeOffset(com.google.protobuf.Duration value) {
- if (runTimeOffsetBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- runTimeOffset_ = value;
- onChanged();
- } else {
- runTimeOffsetBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public Builder setRunTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
- if (runTimeOffsetBuilder_ == null) {
- runTimeOffset_ = builderForValue.build();
- onChanged();
- } else {
- runTimeOffsetBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public Builder mergeRunTimeOffset(com.google.protobuf.Duration value) {
- if (runTimeOffsetBuilder_ == null) {
- if (runTimeOffset_ != null) {
- runTimeOffset_ =
- com.google.protobuf.Duration.newBuilder(runTimeOffset_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- runTimeOffset_ = value;
- }
- onChanged();
- } else {
- runTimeOffsetBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public Builder clearRunTimeOffset() {
- if (runTimeOffsetBuilder_ == null) {
- runTimeOffset_ = null;
- onChanged();
- } else {
- runTimeOffset_ = null;
- runTimeOffsetBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public com.google.protobuf.Duration.Builder getRunTimeOffsetBuilder() {
-
- onChanged();
- return getRunTimeOffsetFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- public com.google.protobuf.DurationOrBuilder getRunTimeOffsetOrBuilder() {
- if (runTimeOffsetBuilder_ != null) {
- return runTimeOffsetBuilder_.getMessageOrBuilder();
- } else {
- return runTimeOffset_ == null
- ? com.google.protobuf.Duration.getDefaultInstance()
- : runTimeOffset_;
- }
- }
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>
- getRunTimeOffsetFieldBuilder() {
- if (runTimeOffsetBuilder_ == null) {
- runTimeOffsetBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Duration,
- com.google.protobuf.Duration.Builder,
- com.google.protobuf.DurationOrBuilder>(
- getRunTimeOffset(), getParentForChildren(), isClean());
- runTimeOffset_ = null;
- }
- return runTimeOffsetBuilder_;
- }
-
- private java.lang.Object supportEmail_ = "";
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public java.lang.String getSupportEmail() {
- java.lang.Object ref = supportEmail_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- supportEmail_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public com.google.protobuf.ByteString getSupportEmailBytes() {
- java.lang.Object ref = supportEmail_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- supportEmail_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public Builder setSupportEmail(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- supportEmail_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public Builder clearSupportEmail() {
-
- supportEmail_ = getDefaultInstance().getSupportEmail();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- public Builder setSupportEmailBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- supportEmail_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object serviceAccount_ = "";
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public java.lang.String getServiceAccount() {
- java.lang.Object ref = serviceAccount_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- serviceAccount_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public com.google.protobuf.ByteString getServiceAccountBytes() {
- java.lang.Object ref = serviceAccount_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- serviceAccount_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public Builder setServiceAccount(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- serviceAccount_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public Builder clearServiceAccount() {
-
- serviceAccount_ = getDefaultInstance().getServiceAccount();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- serviceAccount_ = value;
- onChanged();
- return this;
- }
-
- private boolean disabled_;
- /**
- *
- *
- * - * Is data source disabled? If true, data_source is not visible. - * API will also stop returning any data transfer configs and/or runs - * associated with the data source. This setting has higher priority - * than whitelisted_project_ids. - *- * - *
bool disabled = 5;
- */
- public boolean getDisabled() {
- return disabled_;
- }
- /**
- *
- *
- * - * Is data source disabled? If true, data_source is not visible. - * API will also stop returning any data transfer configs and/or runs - * associated with the data source. This setting has higher priority - * than whitelisted_project_ids. - *- * - *
bool disabled = 5;
- */
- public Builder setDisabled(boolean value) {
-
- disabled_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Is data source disabled? If true, data_source is not visible. - * API will also stop returning any data transfer configs and/or runs - * associated with the data source. This setting has higher priority - * than whitelisted_project_ids. - *- * - *
bool disabled = 5;
- */
- public Builder clearDisabled() {
-
- disabled_ = false;
- onChanged();
- return this;
- }
-
- private java.lang.Object transferConfigPubsubTopic_ = "";
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public java.lang.String getTransferConfigPubsubTopic() {
- java.lang.Object ref = transferConfigPubsubTopic_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- transferConfigPubsubTopic_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public com.google.protobuf.ByteString getTransferConfigPubsubTopicBytes() {
- java.lang.Object ref = transferConfigPubsubTopic_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transferConfigPubsubTopic_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public Builder setTransferConfigPubsubTopic(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- transferConfigPubsubTopic_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public Builder clearTransferConfigPubsubTopic() {
-
- transferConfigPubsubTopic_ = getDefaultInstance().getTransferConfigPubsubTopic();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- public Builder setTransferConfigPubsubTopicBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- transferConfigPubsubTopic_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList supportedLocationIds_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
-
- private void ensureSupportedLocationIdsIsMutable() {
- if (!((bitField0_ & 0x00000100) != 0)) {
- supportedLocationIds_ = new com.google.protobuf.LazyStringArrayList(supportedLocationIds_);
- bitField0_ |= 0x00000100;
- }
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public com.google.protobuf.ProtocolStringList getSupportedLocationIdsList() {
- return supportedLocationIds_.getUnmodifiableView();
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public int getSupportedLocationIdsCount() {
- return supportedLocationIds_.size();
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public java.lang.String getSupportedLocationIds(int index) {
- return supportedLocationIds_.get(index);
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public com.google.protobuf.ByteString getSupportedLocationIdsBytes(int index) {
- return supportedLocationIds_.getByteString(index);
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public Builder setSupportedLocationIds(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSupportedLocationIdsIsMutable();
- supportedLocationIds_.set(index, value);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public Builder addSupportedLocationIds(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSupportedLocationIdsIsMutable();
- supportedLocationIds_.add(value);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public Builder addAllSupportedLocationIds(java.lang.Iterable- * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public Builder clearSupportedLocationIds() {
- supportedLocationIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000100);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- public Builder addSupportedLocationIdsBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- ensureSupportedLocationIdsIsMutable();
- supportedLocationIds_.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.bigquery.datatransfer.v1.DataSourceDefinition)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DataSourceDefinition)
- private static final com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- java.lang.String getName();
- /**
- *
- *
- * - * The resource name of the data source definition. - * Data source definition names have the form - * `projects/{project_id}/locations/{location}/dataSourceDefinitions/{data_source_id}`. - *- * - *
string name = 21;
- */
- com.google.protobuf.ByteString getNameBytes();
-
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- boolean hasDataSource();
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource();
- /**
- *
- *
- * - * Data source metadata. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSource data_source = 1;
- */
- com.google.cloud.bigquery.datatransfer.v1.DataSourceOrBuilder getDataSourceOrBuilder();
-
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- java.lang.String getTransferRunPubsubTopic();
- /**
- *
- *
- * - * The Pub/Sub topic to be used for broadcasting a message when a transfer run - * is created. Both this topic and transfer_config_pubsub_topic can be - * set to a custom topic. By default, both topics are auto-generated if none - * of them is provided when creating the definition. However, if one topic is - * manually set, the other topic has to be manually set as well. The only - * difference is that transfer_run_pubsub_topic must be a non-empty Pub/Sub - * topic, but transfer_config_pubsub_topic can be set to empty. The comments - * about "{location}" for transfer_config_pubsub_topic apply here too. - *- * - *
string transfer_run_pubsub_topic = 13;
- */
- com.google.protobuf.ByteString getTransferRunPubsubTopicBytes();
-
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- boolean hasRunTimeOffset();
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- com.google.protobuf.Duration getRunTimeOffset();
- /**
- *
- *
- * - * Duration which should be added to schedule_time to calculate - * run_time when job is scheduled. Only applicable for automatically - * scheduled transfer runs. Used to start a run early on a data source that - * supports continuous data refresh to compensate for unknown timezone - * offsets. Use a negative number to start a run late for data sources not - * supporting continuous data refresh. - *- * - *
.google.protobuf.Duration run_time_offset = 16;
- */
- com.google.protobuf.DurationOrBuilder getRunTimeOffsetOrBuilder();
-
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- java.lang.String getSupportEmail();
- /**
- *
- *
- * - * Support e-mail address of the OAuth client's Brand, which contains the - * consent screen data. - *- * - *
string support_email = 22;
- */
- com.google.protobuf.ByteString getSupportEmailBytes();
-
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- java.lang.String getServiceAccount();
- /**
- *
- *
- * - * When service account is specified, BigQuery will share created dataset - * with the given service account. Also, this service account will be - * eligible to perform status updates and message logging for data transfer - * runs for the corresponding data_source_id. - *- * - *
string service_account = 2;
- */
- com.google.protobuf.ByteString getServiceAccountBytes();
-
- /**
- *
- *
- * - * Is data source disabled? If true, data_source is not visible. - * API will also stop returning any data transfer configs and/or runs - * associated with the data source. This setting has higher priority - * than whitelisted_project_ids. - *- * - *
bool disabled = 5;
- */
- boolean getDisabled();
-
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- java.lang.String getTransferConfigPubsubTopic();
- /**
- *
- *
- * - * The Pub/Sub topic to use for broadcasting a message for transfer config. If - * empty, a message will not be broadcasted. Both this topic and - * transfer_run_pubsub_topic are auto-generated if none of them is provided - * when creating the definition. It is recommended to provide - * transfer_config_pubsub_topic if a user-owned transfer_run_pubsub_topic is - * provided. Otherwise, it will be set to empty. If "{location}" is found in - * the value, then that means, data source wants to handle message separately - * for datasets in different regions. We will replace {location} with the - * actual dataset location, as the actual topic name. For example, - * projects/connector/topics/scheduler-{location} could become - * projects/connector/topics/scheduler-us. If "{location}" is not found, then - * we will use the input value as topic name. - *- * - *
string transfer_config_pubsub_topic = 12;
- */
- com.google.protobuf.ByteString getTransferConfigPubsubTopicBytes();
-
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- java.util.List- * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- int getSupportedLocationIdsCount();
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- java.lang.String getSupportedLocationIds(int index);
- /**
- *
- *
- * - * Supported location_ids used for deciding in which locations Pub/Sub topics - * need to be created. If custom Pub/Sub topics are used and they contains - * '{location}', the location_ids will be used for validating the topics by - * replacing the '{location}' with the individual location in the list. The - * valid values are the "location_id" field of the response of `GET - * https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}/locations` - * In addition, if the data source needs to support all available regions, - * supported_location_ids can be set to "global" (a single string element). - * When "global" is specified: - * 1) the data source implementation is supposed to stage the data in proper - * region of the destination dataset; - * 2) Data source developer should be aware of the implications (e.g., network - * traffic latency, potential charge associated with cross-region traffic, - * etc.) of supporting the "global" region; - *- * - *
repeated string supported_location_ids = 23;
- */
- com.google.protobuf.ByteString getSupportedLocationIdsBytes(int index);
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceNames.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceNames.java
deleted file mode 100644
index 4fb66adef1d0..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceNames.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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.bigquery.datatransfer.v1;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class DataSourceNames {
- private DataSourceNames() {}
-
- public static DataSourceName parse(String resourceNameString) {
- if (ProjectDataSourceName.isParsableFrom(resourceNameString)) {
- return ProjectDataSourceName.parse(resourceNameString);
- }
- if (LocationDataSourceName.isParsableFrom(resourceNameString)) {
- return LocationDataSourceName.parse(resourceNameString);
- }
- return UntypedDataSourceName.parse(resourceNameString);
- }
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceProto.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceProto.java
deleted file mode 100644
index 4543b6071154..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceProto.java
+++ /dev/null
@@ -1,458 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-public final class DataSourceProto {
- private DataSourceProto() {}
-
- 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_bigquery_datatransfer_v1_ImportedDataInfo_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferRunRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferRunRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
- return descriptor;
- }
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
- static {
- java.lang.String[] descriptorData = {
- "\n6google/cloud/bigquery/datatransfer/v1/"
- + "datasource.proto\022%google.cloud.bigquery."
- + "datatransfer.v1\032\034google/api/annotations."
- + "proto\0328google/cloud/bigquery/datatransfe"
- + "r/v1/datatransfer.proto\0324google/cloud/bi"
- + "gquery/datatransfer/v1/transfer.proto\032\036g"
- + "oogle/protobuf/duration.proto\032\033google/pr"
- + "otobuf/empty.proto\032 google/protobuf/fiel"
- + "d_mask.proto\032\037google/protobuf/timestamp."
- + "proto\032\036google/protobuf/wrappers.proto\032\027g"
- + "oogle/api/client.proto\"\236\016\n\020ImportedDataI"
- + "nfo\022\013\n\003sql\030\001 \001(\t\022\034\n\024destination_table_id"
- + "\030\002 \001(\t\022%\n\035destination_table_description\030"
- + "\n \001(\t\022[\n\ntable_defs\030\003 \003(\0132G.google.cloud"
- + ".bigquery.datatransfer.v1.ImportedDataIn"
- + "fo.TableDefinition\022\036\n\026user_defined_funct"
- + "ions\030\004 \003(\t\022R\n\021write_disposition\030\006 \001(\01627."
- + "google.cloud.bigquery.datatransfer.v1.Wr"
- + "iteDisposition\032\255\003\n\013FieldSchema\022\022\n\nfield_"
- + "name\030\001 \001(\t\022V\n\004type\030\002 \001(\0162H.google.cloud."
- + "bigquery.datatransfer.v1.ImportedDataInf"
- + "o.FieldSchema.Type\022\023\n\013is_repeated\030\003 \001(\010\022"
- + "\023\n\013description\030\004 \001(\t\022T\n\006schema\030\005 \001(\0132D.g"
- + "oogle.cloud.bigquery.datatransfer.v1.Imp"
- + "ortedDataInfo.RecordSchema\"\261\001\n\004Type\022\024\n\020T"
- + "YPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\013\n\007INTEGER"
- + "\020\002\022\t\n\005FLOAT\020\003\022\n\n\006RECORD\020\004\022\t\n\005BYTES\020\005\022\013\n\007"
- + "BOOLEAN\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022\010\n\004TI"
- + "ME\020\t\022\014\n\010DATETIME\020\n\022\013\n\007NUMERIC\020\013\022\r\n\tGEOGR"
- + "APHY\020\014\032c\n\014RecordSchema\022S\n\006fields\030\001 \003(\0132C"
- + ".google.cloud.bigquery.datatransfer.v1.I"
- + "mportedDataInfo.FieldSchema\032\221\006\n\017TableDef"
- + "inition\022\020\n\010table_id\030\001 \001(\t\022\023\n\013source_uris"
- + "\030\002 \003(\t\022N\n\006format\030\003 \001(\0162>.google.cloud.bi"
- + "gquery.datatransfer.v1.ImportedDataInfo."
- + "Format\022\027\n\017max_bad_records\030\004 \001(\005\022R\n\010encod"
- + "ing\030\005 \001(\0162@.google.cloud.bigquery.datatr"
- + "ansfer.v1.ImportedDataInfo.Encoding\022g\n\013c"
- + "sv_options\030\006 \001(\0132R.google.cloud.bigquery"
- + ".datatransfer.v1.ImportedDataInfo.TableD"
- + "efinition.CsvOptions\022T\n\006schema\030\007 \001(\0132D.g"
- + "oogle.cloud.bigquery.datatransfer.v1.Imp"
- + "ortedDataInfo.RecordSchema\0229\n\025ignore_unk"
- + "nown_values\030\n \001(\0132\032.google.protobuf.Bool"
- + "Value\032\237\002\n\nCsvOptions\0225\n\017field_delimiter\030"
- + "\001 \001(\0132\034.google.protobuf.StringValue\0229\n\025a"
- + "llow_quoted_newlines\030\002 \001(\0132\032.google.prot"
- + "obuf.BoolValue\0220\n\nquote_char\030\003 \001(\0132\034.goo"
- + "gle.protobuf.StringValue\0226\n\021skip_leading"
- + "_rows\030\004 \001(\0132\033.google.protobuf.Int64Value"
- + "\0225\n\021allow_jagged_rows\030\005 \001(\0132\032.google.pro"
- + "tobuf.BoolValue\"~\n\006Format\022\026\n\022FORMAT_UNSP"
- + "ECIFIED\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002\022\010\n\004AVRO\020\003\022\014"
- + "\n\010RECORDIO\020\004\022\014\n\010COLUMNIO\020\005\022\r\n\tCAPACITOR\020"
- + "\006\022\013\n\007PARQUET\020\007\022\007\n\003ORC\020\010\">\n\010Encoding\022\030\n\024E"
- + "NCODING_UNSPECIFIED\020\000\022\016\n\nISO_8859_1\020\001\022\010\n"
- + "\004UTF8\020\002\"\225\001\n\030UpdateTransferRunRequest\022H\n\014"
- + "transfer_run\030\001 \001(\01322.google.cloud.bigque"
- + "ry.datatransfer.v1.TransferRun\022/\n\013update"
- + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\""
- + "\200\001\n\035LogTransferRunMessagesRequest\022\014\n\004nam"
- + "e\030\001 \001(\t\022Q\n\021transfer_messages\030\002 \003(\01326.goo"
- + "gle.cloud.bigquery.datatransfer.v1.Trans"
- + "ferMessage\"\253\001\n\030StartBigQueryJobsRequest\022"
- + "\014\n\004name\030\001 \001(\t\022N\n\rimported_data\030\002 \003(\01327.g"
- + "oogle.cloud.bigquery.datatransfer.v1.Imp"
- + "ortedDataInfo\022\030\n\020user_credentials\030\003 \001(\014\022"
- + "\027\n\017max_parallelism\030\010 \001(\005\" \n\020FinishRunReq"
- + "uest\022\014\n\004name\030\001 \001(\t\"\220\001\n!CreateDataSourceD"
- + "efinitionRequest\022\016\n\006parent\030\001 \001(\t\022[\n\026data"
- + "_source_definition\030\002 \001(\0132;.google.cloud."
- + "bigquery.datatransfer.v1.DataSourceDefin"
- + "ition\"\261\001\n!UpdateDataSourceDefinitionRequ"
- + "est\022[\n\026data_source_definition\030\001 \001(\0132;.go"
- + "ogle.cloud.bigquery.datatransfer.v1.Data"
- + "SourceDefinition\022/\n\013update_mask\030\002 \001(\0132\032."
- + "google.protobuf.FieldMask\"1\n!DeleteDataS"
- + "ourceDefinitionRequest\022\014\n\004name\030\001 \001(\t\".\n\036"
- + "GetDataSourceDefinitionRequest\022\014\n\004name\030\001"
- + " \001(\t\"Y\n ListDataSourceDefinitionsRequest"
- + "\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\t"
- + "page_size\030\003 \001(\005\"\232\001\n!ListDataSourceDefini"
- + "tionsResponse\022\\\n\027data_source_definitions"
- + "\030\001 \003(\0132;.google.cloud.bigquery.datatrans"
- + "fer.v1.DataSourceDefinition\022\027\n\017next_page"
- + "_token\030\002 \001(\t\"\313\002\n\024DataSourceDefinition\022\014\n"
- + "\004name\030\025 \001(\t\022F\n\013data_source\030\001 \001(\01321.googl"
- + "e.cloud.bigquery.datatransfer.v1.DataSou"
- + "rce\022!\n\031transfer_run_pubsub_topic\030\r \001(\t\0222"
- + "\n\017run_time_offset\030\020 \001(\0132\031.google.protobu"
- + "f.Duration\022\025\n\rsupport_email\030\026 \001(\t\022\027\n\017ser"
- + "vice_account\030\002 \001(\t\022\020\n\010disabled\030\005 \001(\010\022$\n\034"
- + "transfer_config_pubsub_topic\030\014 \001(\t\022\036\n\026su"
- + "pported_location_ids\030\027 \003(\t*[\n\020WriteDispo"
- + "sition\022!\n\035WRITE_DISPOSITION_UNSPECIFIED\020"
- + "\000\022\022\n\016WRITE_TRUNCATE\020\001\022\020\n\014WRITE_APPEND\020\0022"
- + "\235\020\n\021DataSourceService\022\347\001\n\021UpdateTransfer"
- + "Run\022?.google.cloud.bigquery.datatransfer"
- + ".v1.UpdateTransferRunRequest\0322.google.cl"
- + "oud.bigquery.datatransfer.v1.TransferRun"
- + "\"]\202\323\344\223\002W2G/v1/{transfer_run.name=project"
- + "s/*/locations/*/transferConfigs/*/runs/*"
- + "}:\014transfer_run\022\311\001\n\026LogTransferRunMessag"
- + "es\022D.google.cloud.bigquery.datatransfer."
- + "v1.LogTransferRunMessagesRequest\032\026.googl"
- + "e.protobuf.Empty\"Q\202\323\344\223\002K\"F/v1/{name=proj"
- + "ects/*/locations/*/transferConfigs/*/run"
- + "s/*}:logMessages:\001*\022\305\001\n\021StartBigQueryJob"
- + "s\022?.google.cloud.bigquery.datatransfer.v"
- + "1.StartBigQueryJobsRequest\032\026.google.prot"
- + "obuf.Empty\"W\202\323\344\223\002Q\"L/v1/{name=projects/*"
- + "/locations/*/transferConfigs/*/runs/*}:s"
- + "tartBigQueryJobs:\001*\022\255\001\n\tFinishRun\0227.goog"
- + "le.cloud.bigquery.datatransfer.v1.Finish"
- + "RunRequest\032\026.google.protobuf.Empty\"O\202\323\344\223"
- + "\002I\"D/v1/{name=projects/*/locations/*/tra"
- + "nsferConfigs/*/runs/*}:finishRun:\001*\022\376\001\n\032"
- + "CreateDataSourceDefinition\022H.google.clou"
- + "d.bigquery.datatransfer.v1.CreateDataSou"
- + "rceDefinitionRequest\032;.google.cloud.bigq"
- + "uery.datatransfer.v1.DataSourceDefinitio"
- + "n\"Y\202\323\344\223\002S\"9/v1/{parent=projects/*/locati"
- + "ons/*}/dataSourceDefinitions:\026data_sourc"
- + "e_definition\022\225\002\n\032UpdateDataSourceDefinit"
- + "ion\022H.google.cloud.bigquery.datatransfer"
- + ".v1.UpdateDataSourceDefinitionRequest\032;."
- + "google.cloud.bigquery.datatransfer.v1.Da"
- + "taSourceDefinition\"p\202\323\344\223\002j2P/v1/{data_so"
- + "urce_definition.name=projects/*/location"
- + "s/*/dataSourceDefinitions/*}:\026data_sourc"
- + "e_definition\022\301\001\n\032DeleteDataSourceDefinit"
- + "ion\022H.google.cloud.bigquery.datatransfer"
- + ".v1.DeleteDataSourceDefinitionRequest\032\026."
- + "google.protobuf.Empty\"A\202\323\344\223\002;*9/v1/{name"
- + "=projects/*/locations/*/dataSourceDefini"
- + "tions/*}\022\340\001\n\027GetDataSourceDefinition\022E.g"
- + "oogle.cloud.bigquery.datatransfer.v1.Get"
- + "DataSourceDefinitionRequest\032;.google.clo"
- + "ud.bigquery.datatransfer.v1.DataSourceDe"
- + "finition\"A\202\323\344\223\002;\0229/v1/{name=projects/*/l"
- + "ocations/*/dataSourceDefinitions/*}\022\361\001\n\031"
- + "ListDataSourceDefinitions\022G.google.cloud"
- + ".bigquery.datatransfer.v1.ListDataSource"
- + "DefinitionsRequest\032H.google.cloud.bigque"
- + "ry.datatransfer.v1.ListDataSourceDefinit"
- + "ionsResponse\"A\202\323\344\223\002;\0229/v1/{parent=projec"
- + "ts/*/locations/*}/dataSourceDefinitions\032"
- + "&\312A#bigquerydatatransfer.googleapis.comB"
- + "\341\001\n)com.google.cloud.bigquery.datatransf"
- + "er.v1B\017DataSourceProtoP\001ZQgoogle.golang."
- + "org/genproto/googleapis/cloud/bigquery/d"
- + "atatransfer/v1;datatransfer\252\002%Google.Clo"
- + "ud.BigQuery.DataTransfer.V1\312\002%Google\\Clo"
- + "ud\\BigQuery\\DataTransfer\\V1b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
- descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
- com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.getDescriptor(),
- com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor(),
- com.google.protobuf.DurationProto.getDescriptor(),
- com.google.protobuf.EmptyProto.getDescriptor(),
- com.google.protobuf.FieldMaskProto.getDescriptor(),
- com.google.protobuf.TimestampProto.getDescriptor(),
- com.google.protobuf.WrappersProto.getDescriptor(),
- com.google.api.ClientProto.getDescriptor(),
- },
- assigner);
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_descriptor,
- new java.lang.String[] {
- "Sql",
- "DestinationTableId",
- "DestinationTableDescription",
- "TableDefs",
- "UserDefinedFunctions",
- "WriteDisposition",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_descriptor =
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_descriptor
- .getNestedTypes()
- .get(0);
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_descriptor,
- new java.lang.String[] {
- "FieldName", "Type", "IsRepeated", "Description", "Schema",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_descriptor =
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_descriptor
- .getNestedTypes()
- .get(1);
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_descriptor,
- new java.lang.String[] {
- "Fields",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_descriptor =
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_descriptor
- .getNestedTypes()
- .get(2);
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_descriptor,
- new java.lang.String[] {
- "TableId",
- "SourceUris",
- "Format",
- "MaxBadRecords",
- "Encoding",
- "CsvOptions",
- "Schema",
- "IgnoreUnknownValues",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_descriptor =
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_descriptor
- .getNestedTypes()
- .get(0);
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_descriptor,
- new java.lang.String[] {
- "FieldDelimiter",
- "AllowQuotedNewlines",
- "QuoteChar",
- "SkipLeadingRows",
- "AllowJaggedRows",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferRunRequest_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferRunRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferRunRequest_descriptor,
- new java.lang.String[] {
- "TransferRun", "UpdateMask",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_descriptor,
- new java.lang.String[] {
- "Name", "TransferMessages",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_descriptor,
- new java.lang.String[] {
- "Name", "ImportedData", "UserCredentials", "MaxParallelism",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_descriptor,
- new java.lang.String[] {
- "Name",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_CreateDataSourceDefinitionRequest_descriptor,
- new java.lang.String[] {
- "Parent", "DataSourceDefinition",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_descriptor,
- new java.lang.String[] {
- "DataSourceDefinition", "UpdateMask",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_descriptor,
- new java.lang.String[] {
- "Name",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_descriptor,
- new java.lang.String[] {
- "Name",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_descriptor,
- new java.lang.String[] {
- "Parent", "PageToken", "PageSize",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_descriptor =
- getDescriptor().getMessageTypes().get(10);
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_descriptor,
- new java.lang.String[] {
- "DataSourceDefinitions", "NextPageToken",
- });
- internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_descriptor =
- getDescriptor().getMessageTypes().get(11);
- internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceDefinition_descriptor,
- new java.lang.String[] {
- "Name",
- "DataSource",
- "TransferRunPubsubTopic",
- "RunTimeOffset",
- "SupportEmail",
- "ServiceAccount",
- "Disabled",
- "TransferConfigPubsubTopic",
- "SupportedLocationIds",
- });
- com.google.protobuf.ExtensionRegistry registry =
- com.google.protobuf.ExtensionRegistry.newInstance();
- registry.add(com.google.api.ClientProto.defaultHost);
- registry.add(com.google.api.AnnotationsProto.http);
- com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
- descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
- com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.getDescriptor();
- com.google.cloud.bigquery.datatransfer.v1.TransferProto.getDescriptor();
- com.google.protobuf.DurationProto.getDescriptor();
- com.google.protobuf.EmptyProto.getDescriptor();
- com.google.protobuf.FieldMaskProto.getDescriptor();
- com.google.protobuf.TimestampProto.getDescriptor();
- com.google.protobuf.WrappersProto.getDescriptor();
- com.google.api.ClientProto.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteDataSourceDefinitionRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteDataSourceDefinitionRequest.java
deleted file mode 100644
index e0404c2bf86b..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteDataSourceDefinitionRequest.java
+++ /dev/null
@@ -1,650 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * Represents the request of the DeleteDataSourceDefinition method. All transfer - * configs associated with the data source must be deleted first, before the - * data source can be deleted. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest} - */ -public final class DeleteDataSourceDefinitionRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest) - DeleteDataSourceDefinitionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteDataSourceDefinitionRequest.newBuilder() to construct. - private DeleteDataSourceDefinitionRequest( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private DeleteDataSourceDefinitionRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteDataSourceDefinitionRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_DeleteDataSourceDefinitionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest.class, - com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest.Builder - .class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
- * The field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- 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 field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- 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 (!getNameBytes().isEmpty()) {
- 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 (!getNameBytes().isEmpty()) {
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest) 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest 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 request of the DeleteDataSourceDefinition method. All transfer - * configs associated with the data source must be deleted first, before the - * data source can be deleted. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- 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 field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- 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 field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- 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.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.DeleteDataSourceDefinitionRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- java.lang.String getName();
- /**
- *
- *
- * - * The field will contain name of the resource requested, for example: - * `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}` - *- * - *
string name = 1;
- */
- com.google.protobuf.ByteString getNameBytes();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/FinishRunRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/FinishRunRequest.java
deleted file mode 100644
index f4a817eda7d0..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/FinishRunRequest.java
+++ /dev/null
@@ -1,621 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * A request to finish a run. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.FinishRunRequest} - */ -public final class FinishRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.FinishRunRequest) - FinishRunRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FinishRunRequest.newBuilder() to construct. - private FinishRunRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private FinishRunRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FinishRunRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_FinishRunRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest.class, - com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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 (!getNameBytes().isEmpty()) {
- 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 (!getNameBytes().isEmpty()) {
- 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.bigquery.datatransfer.v1.FinishRunRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest) 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.bigquery.datatransfer.v1.FinishRunRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest 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.bigquery.datatransfer.v1.FinishRunRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest 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.bigquery.datatransfer.v1.FinishRunRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest 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.bigquery.datatransfer.v1.FinishRunRequest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest 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.bigquery.datatransfer.v1.FinishRunRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest 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.bigquery.datatransfer.v1.FinishRunRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- * - * A request to finish a run. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.FinishRunRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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.bigquery.datatransfer.v1.FinishRunRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.FinishRunRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.FinishRunRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- com.google.protobuf.ByteString getNameBytes();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceDefinitionRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceDefinitionRequest.java
deleted file mode 100644
index 1744e902f292..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceDefinitionRequest.java
+++ /dev/null
@@ -1,631 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * Represents the request of the GetDataSourceDefinition method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest} - */ -public final class GetDataSourceDefinitionRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest) - GetDataSourceDefinitionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetDataSourceDefinitionRequest.newBuilder() to construct. - private GetDataSourceDefinitionRequest( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private GetDataSourceDefinitionRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetDataSourceDefinitionRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceDefinitionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest.class, - com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
- * The field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- 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 field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- 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 (!getNameBytes().isEmpty()) {
- 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 (!getNameBytes().isEmpty()) {
- 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest) 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest 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 request of the GetDataSourceDefinition method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- 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 field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- 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 field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- 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.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceDefinitionRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- java.lang.String getName();
- /**
- *
- *
- * - * The field will contain name of the resource requested. - *- * - *
string name = 1;
- */
- com.google.protobuf.ByteString getNameBytes();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ImportedDataInfo.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ImportedDataInfo.java
deleted file mode 100644
index 32e6173fd29f..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ImportedDataInfo.java
+++ /dev/null
@@ -1,9754 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * Describes data which should be imported. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo} - */ -public final class ImportedDataInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo) - ImportedDataInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ImportedDataInfo.newBuilder() to construct. - private ImportedDataInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private ImportedDataInfo() { - sql_ = ""; - destinationTableId_ = ""; - destinationTableDescription_ = ""; - tableDefs_ = java.util.Collections.emptyList(); - userDefinedFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - writeDisposition_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ImportedDataInfo( - 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(); - - sql_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - destinationTableId_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - tableDefs_ = - new java.util.ArrayList< - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo - .TableDefinition>(); - mutable_bitField0_ |= 0x00000008; - } - tableDefs_.add( - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition - .parser(), - extensionRegistry)); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - userDefinedFunctions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - userDefinedFunctions_.add(s); - break; - } - case 48: - { - int rawValue = input.readEnum(); - - writeDisposition_ = rawValue; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - destinationTableDescription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - tableDefs_ = java.util.Collections.unmodifiableList(tableDefs_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - userDefinedFunctions_ = userDefinedFunctions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.class, - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder.class); - } - - /** - * - * - *
- * Data format. - *- * - * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format} - */ - public enum Format implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
- * Unspecified format. In this case, we have to infer the format from the - * data source. - *- * - *
FORMAT_UNSPECIFIED = 0;
- */
- FORMAT_UNSPECIFIED(0),
- /**
- *
- *
- * - * CSV format. - *- * - *
CSV = 1;
- */
- CSV(1),
- /**
- *
- *
- * - * Newline-delimited JSON. - *- * - *
JSON = 2;
- */
- JSON(2),
- /**
- *
- *
- * - * Avro format. See http://avro.apache.org . - *- * - *
AVRO = 3;
- */
- AVRO(3),
- /**
- *
- *
- * - * RecordIO. - *- * - *
RECORDIO = 4;
- */
- RECORDIO(4),
- /**
- *
- *
- * - * ColumnIO. - *- * - *
COLUMNIO = 5;
- */
- COLUMNIO(5),
- /**
- *
- *
- * - * Capacitor. - *- * - *
CAPACITOR = 6;
- */
- CAPACITOR(6),
- /**
- *
- *
- * - * Parquet format. See https://parquet.apache.org . - *- * - *
PARQUET = 7;
- */
- PARQUET(7),
- /**
- *
- *
- * - * ORC format. See https://orc.apache.org . - *- * - *
ORC = 8;
- */
- ORC(8),
- UNRECOGNIZED(-1),
- ;
-
- /**
- *
- *
- * - * Unspecified format. In this case, we have to infer the format from the - * data source. - *- * - *
FORMAT_UNSPECIFIED = 0;
- */
- public static final int FORMAT_UNSPECIFIED_VALUE = 0;
- /**
- *
- *
- * - * CSV format. - *- * - *
CSV = 1;
- */
- public static final int CSV_VALUE = 1;
- /**
- *
- *
- * - * Newline-delimited JSON. - *- * - *
JSON = 2;
- */
- public static final int JSON_VALUE = 2;
- /**
- *
- *
- * - * Avro format. See http://avro.apache.org . - *- * - *
AVRO = 3;
- */
- public static final int AVRO_VALUE = 3;
- /**
- *
- *
- * - * RecordIO. - *- * - *
RECORDIO = 4;
- */
- public static final int RECORDIO_VALUE = 4;
- /**
- *
- *
- * - * ColumnIO. - *- * - *
COLUMNIO = 5;
- */
- public static final int COLUMNIO_VALUE = 5;
- /**
- *
- *
- * - * Capacitor. - *- * - *
CAPACITOR = 6;
- */
- public static final int CAPACITOR_VALUE = 6;
- /**
- *
- *
- * - * Parquet format. See https://parquet.apache.org . - *- * - *
PARQUET = 7;
- */
- public static final int PARQUET_VALUE = 7;
- /**
- *
- *
- * - * ORC format. See https://orc.apache.org . - *- * - *
ORC = 8;
- */
- public static final int ORC_VALUE = 8;
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /** @deprecated Use {@link #forNumber(int)} instead. */
- @java.lang.Deprecated
- public static Format valueOf(int value) {
- return forNumber(value);
- }
-
- public static Format forNumber(int value) {
- switch (value) {
- case 0:
- return FORMAT_UNSPECIFIED;
- case 1:
- return CSV;
- case 2:
- return JSON;
- case 3:
- return AVRO;
- case 4:
- return RECORDIO;
- case 5:
- return COLUMNIO;
- case 6:
- return CAPACITOR;
- case 7:
- return PARQUET;
- case 8:
- return ORC;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * Encoding of input data in CSV/JSON format. - *- * - * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding} - */ - public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
- * Default encoding (UTF8). - *- * - *
ENCODING_UNSPECIFIED = 0;
- */
- ENCODING_UNSPECIFIED(0),
- /**
- *
- *
- * - * ISO_8859_1 encoding. - *- * - *
ISO_8859_1 = 1;
- */
- ISO_8859_1(1),
- /**
- *
- *
- * - * UTF8 encoding. - *- * - *
UTF8 = 2;
- */
- UTF8(2),
- UNRECOGNIZED(-1),
- ;
-
- /**
- *
- *
- * - * Default encoding (UTF8). - *- * - *
ENCODING_UNSPECIFIED = 0;
- */
- public static final int ENCODING_UNSPECIFIED_VALUE = 0;
- /**
- *
- *
- * - * ISO_8859_1 encoding. - *- * - *
ISO_8859_1 = 1;
- */
- public static final int ISO_8859_1_VALUE = 1;
- /**
- *
- *
- * - * UTF8 encoding. - *- * - *
UTF8 = 2;
- */
- public static final int UTF8_VALUE = 2;
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /** @deprecated Use {@link #forNumber(int)} instead. */
- @java.lang.Deprecated
- public static Encoding valueOf(int value) {
- return forNumber(value);
- }
-
- public static Encoding forNumber(int value) {
- switch (value) {
- case 0:
- return ENCODING_UNSPECIFIED;
- case 1:
- return ISO_8859_1;
- case 2:
- return UTF8;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- java.lang.String getFieldName();
- /**
- *
- *
- * - * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- com.google.protobuf.ByteString getFieldNameBytes();
-
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- int getTypeValue();
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type getType();
-
- /**
- *
- *
- * - * Is field repeated. - *- * - *
bool is_repeated = 3;
- */
- boolean getIsRepeated();
-
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- java.lang.String getDescription();
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- com.google.protobuf.ByteString getDescriptionBytes();
-
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- */
- boolean hasSchema();
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema getSchema();
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder
- getSchemaOrBuilder();
- }
- /**
- *
- *
- * - * Defines schema of a field in the imported data. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema} - */ - public static final class FieldSchema extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema) - FieldSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use FieldSchema.newBuilder() to construct. - private FieldSchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private FieldSchema() { - fieldName_ = ""; - type_ = 0; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FieldSchema( - 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(); - - fieldName_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: - { - isRepeated_ = input.readBool(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 42: - { - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder - subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_FieldSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.class, - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder.class); - } - - /** - * - * - *
- * LINT.IfChange - * Field type. - *- * - * Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
- * Illegal value. - *- * - *
TYPE_UNSPECIFIED = 0;
- */
- TYPE_UNSPECIFIED(0),
- /**
- *
- *
- * - * 64K, UTF8. - *- * - *
STRING = 1;
- */
- STRING(1),
- /**
- *
- *
- * - * 64-bit signed. - *- * - *
INTEGER = 2;
- */
- INTEGER(2),
- /**
- *
- *
- * - * 64-bit IEEE floating point. - *- * - *
FLOAT = 3;
- */
- FLOAT(3),
- /**
- *
- *
- * - * Aggregate type. - *- * - *
RECORD = 4;
- */
- RECORD(4),
- /**
- *
- *
- * - * 64K, Binary. - *- * - *
BYTES = 5;
- */
- BYTES(5),
- /**
- *
- *
- * - * 2-valued. - *- * - *
BOOLEAN = 6;
- */
- BOOLEAN(6),
- /**
- *
- *
- * - * 64-bit signed usec since UTC epoch. - *- * - *
TIMESTAMP = 7;
- */
- TIMESTAMP(7),
- /**
- *
- *
- * - * Civil date - Year, Month, Day. - *- * - *
DATE = 8;
- */
- DATE(8),
- /**
- *
- *
- * - * Civil time - Hour, Minute, Second, Microseconds. - *- * - *
TIME = 9;
- */
- TIME(9),
- /**
- *
- *
- * - * Combination of civil date and civil time. - *- * - *
DATETIME = 10;
- */
- DATETIME(10),
- /**
- *
- *
- * - * Numeric type with 38 decimal digits of precision and 9 decimal digits - * of scale. - *- * - *
NUMERIC = 11;
- */
- NUMERIC(11),
- /**
- *
- *
- * - * Geography object (go/googlesql_geography). - *- * - *
GEOGRAPHY = 12;
- */
- GEOGRAPHY(12),
- UNRECOGNIZED(-1),
- ;
-
- /**
- *
- *
- * - * Illegal value. - *- * - *
TYPE_UNSPECIFIED = 0;
- */
- public static final int TYPE_UNSPECIFIED_VALUE = 0;
- /**
- *
- *
- * - * 64K, UTF8. - *- * - *
STRING = 1;
- */
- public static final int STRING_VALUE = 1;
- /**
- *
- *
- * - * 64-bit signed. - *- * - *
INTEGER = 2;
- */
- public static final int INTEGER_VALUE = 2;
- /**
- *
- *
- * - * 64-bit IEEE floating point. - *- * - *
FLOAT = 3;
- */
- public static final int FLOAT_VALUE = 3;
- /**
- *
- *
- * - * Aggregate type. - *- * - *
RECORD = 4;
- */
- public static final int RECORD_VALUE = 4;
- /**
- *
- *
- * - * 64K, Binary. - *- * - *
BYTES = 5;
- */
- public static final int BYTES_VALUE = 5;
- /**
- *
- *
- * - * 2-valued. - *- * - *
BOOLEAN = 6;
- */
- public static final int BOOLEAN_VALUE = 6;
- /**
- *
- *
- * - * 64-bit signed usec since UTC epoch. - *- * - *
TIMESTAMP = 7;
- */
- public static final int TIMESTAMP_VALUE = 7;
- /**
- *
- *
- * - * Civil date - Year, Month, Day. - *- * - *
DATE = 8;
- */
- public static final int DATE_VALUE = 8;
- /**
- *
- *
- * - * Civil time - Hour, Minute, Second, Microseconds. - *- * - *
TIME = 9;
- */
- public static final int TIME_VALUE = 9;
- /**
- *
- *
- * - * Combination of civil date and civil time. - *- * - *
DATETIME = 10;
- */
- public static final int DATETIME_VALUE = 10;
- /**
- *
- *
- * - * Numeric type with 38 decimal digits of precision and 9 decimal digits - * of scale. - *- * - *
NUMERIC = 11;
- */
- public static final int NUMERIC_VALUE = 11;
- /**
- *
- *
- * - * Geography object (go/googlesql_geography). - *- * - *
GEOGRAPHY = 12;
- */
- public static final int GEOGRAPHY_VALUE = 12;
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /** @deprecated Use {@link #forNumber(int)} instead. */
- @java.lang.Deprecated
- public static Type valueOf(int value) {
- return forNumber(value);
- }
-
- public static Type forNumber(int value) {
- switch (value) {
- case 0:
- return TYPE_UNSPECIFIED;
- case 1:
- return STRING;
- case 2:
- return INTEGER;
- case 3:
- return FLOAT;
- case 4:
- return RECORD;
- case 5:
- return BYTES;
- case 6:
- return BOOLEAN;
- case 7:
- return TIMESTAMP;
- case 8:
- return DATE;
- case 9:
- return TIME;
- case 10:
- return DATETIME;
- case 11:
- return NUMERIC;
- case 12:
- return GEOGRAPHY;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public java.lang.String getFieldName() {
- java.lang.Object ref = fieldName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- fieldName_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public com.google.protobuf.ByteString getFieldNameBytes() {
- java.lang.Object ref = fieldName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- fieldName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TYPE_FIELD_NUMBER = 2;
- private int type_;
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public int getTypeValue() {
- return type_;
- }
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type getType() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type result =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type.valueOf(
- type_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type.UNRECOGNIZED
- : result;
- }
-
- public static final int IS_REPEATED_FIELD_NUMBER = 3;
- private boolean isRepeated_;
- /**
- *
- *
- * - * Is field repeated. - *- * - *
bool is_repeated = 3;
- */
- public boolean getIsRepeated() {
- return isRepeated_;
- }
-
- public static final int DESCRIPTION_FIELD_NUMBER = 4;
- private volatile java.lang.Object description_;
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- 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 SCHEMA_FIELD_NUMBER = 5;
- private com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema_;
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- */
- public boolean hasSchema() {
- return schema_ != null;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema getSchema() {
- return schema_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- .getDefaultInstance()
- : schema_;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder
- getSchemaOrBuilder() {
- return getSchema();
- }
-
- 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 (!getFieldNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_);
- }
- if (type_
- != com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type
- .TYPE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(2, type_);
- }
- if (isRepeated_ != false) {
- output.writeBool(3, isRepeated_);
- }
- if (!getDescriptionBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
- }
- if (schema_ != null) {
- output.writeMessage(5, getSchema());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getFieldNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_);
- }
- if (type_
- != com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type
- .TYPE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
- }
- if (isRepeated_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRepeated_);
- }
- if (!getDescriptionBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
- }
- if (schema_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema());
- }
- 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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema other =
- (com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema) obj;
-
- if (!getFieldName().equals(other.getFieldName())) return false;
- if (type_ != other.type_) return false;
- if (getIsRepeated() != other.getIsRepeated()) return false;
- if (!getDescription().equals(other.getDescription())) return false;
- if (hasSchema() != other.hasSchema()) return false;
- if (hasSchema()) {
- if (!getSchema().equals(other.getSchema())) 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) + FIELD_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getFieldName().hashCode();
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + type_;
- hash = (37 * hash) + IS_REPEATED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRepeated());
- hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
- hash = (53 * hash) + getDescription().hashCode();
- if (hasSchema()) {
- hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
- hash = (53 * hash) + getSchema().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema
- 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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema 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;
- }
- /**
- *
- *
- * - * Defines schema of a field in the imported data. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder
- * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public java.lang.String getFieldName() {
- java.lang.Object ref = fieldName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- fieldName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public com.google.protobuf.ByteString getFieldNameBytes() {
- java.lang.Object ref = fieldName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- fieldName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public Builder setFieldName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- fieldName_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public Builder clearFieldName() {
-
- fieldName_ = getDefaultInstance().getFieldName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127} - *- * - *
string field_name = 1;
- */
- public Builder setFieldNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- fieldName_ = value;
- onChanged();
- return this;
- }
-
- private int type_ = 0;
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public int getTypeValue() {
- return type_;
- }
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public Builder setTypeValue(int value) {
- type_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type getType() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type result =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type.valueOf(
- type_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type
- .UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public Builder setType(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- type_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Field type - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;
- *
- */
- public Builder clearType() {
-
- type_ = 0;
- onChanged();
- return this;
- }
-
- private boolean isRepeated_;
- /**
- *
- *
- * - * Is field repeated. - *- * - *
bool is_repeated = 3;
- */
- public boolean getIsRepeated() {
- return isRepeated_;
- }
- /**
- *
- *
- * - * Is field repeated. - *- * - *
bool is_repeated = 3;
- */
- public Builder setIsRepeated(boolean value) {
-
- isRepeated_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Is field repeated. - *- * - *
bool is_repeated = 3;
- */
- public Builder clearIsRepeated() {
-
- isRepeated_ = false;
- onChanged();
- return this;
- }
-
- private java.lang.Object description_ = "";
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- public Builder setDescription(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- description_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- public Builder clearDescription() {
-
- description_ = getDefaultInstance().getDescription();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Description for this field. - *- * - *
string description = 4;
- */
- public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- description_ = value;
- onChanged();
- return this;
- }
-
- private com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder>
- schemaBuilder_;
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public boolean hasSchema() {
- return schemaBuilder_ != null || schema_ != null;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema getSchema() {
- if (schemaBuilder_ == null) {
- return schema_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- .getDefaultInstance()
- : schema_;
- } else {
- return schemaBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public Builder setSchema(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema value) {
- if (schemaBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- schema_ = value;
- onChanged();
- } else {
- schemaBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public Builder setSchema(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder
- builderForValue) {
- if (schemaBuilder_ == null) {
- schema_ = builderForValue.build();
- onChanged();
- } else {
- schemaBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public Builder mergeSchema(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema value) {
- if (schemaBuilder_ == null) {
- if (schema_ != null) {
- schema_ =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.newBuilder(
- schema_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- schema_ = value;
- }
- onChanged();
- } else {
- schemaBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public Builder clearSchema() {
- if (schemaBuilder_ == null) {
- schema_ = null;
- onChanged();
- } else {
- schema_ = null;
- schemaBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder
- getSchemaBuilder() {
-
- onChanged();
- return getSchemaFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder
- getSchemaOrBuilder() {
- if (schemaBuilder_ != null) {
- return schemaBuilder_.getMessageOrBuilder();
- } else {
- return schema_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- .getDefaultInstance()
- : schema_;
- }
- }
- /**
- *
- *
- * - * Present iff type == RECORD. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder>
- getSchemaFieldBuilder() {
- if (schemaBuilder_ == null) {
- schemaBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder>(
- getSchema(), getParentForChildren(), isClean());
- schema_ = null;
- }
- return schemaBuilder_;
- }
-
- @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.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema)
- private static final com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- java.util.List- * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema getFields(int index);
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- int getFieldsCount();
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- java.util.List<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder>
- getFieldsOrBuilderList();
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder
- getFieldsOrBuilder(int index);
- }
- /**
- *
- *
- * - * Describes schema of the data to be ingested. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema} - */ - public static final class RecordSchema extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema) - RecordSchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use RecordSchema.newBuilder() to construct. - private RecordSchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private RecordSchema() { - fields_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RecordSchema( - 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)) { - fields_ = - new java.util.ArrayList< - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema>(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add( - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema - .parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_RecordSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.class, - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder - .class); - } - - public static final int FIELDS_FIELD_NUMBER = 1; - private java.util.List
- * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public java.util.List- * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public java.util.List<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder>
- getFieldsOrBuilderList() {
- return fields_;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public int getFieldsCount() {
- return fields_.size();
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema getFields(
- int index) {
- return fields_.get(index);
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder
- getFieldsOrBuilder(int index) {
- return fields_.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 < fields_.size(); i++) {
- output.writeMessage(1, fields_.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 < fields_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema other =
- (com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema) obj;
-
- if (!getFieldsList().equals(other.getFieldsList())) 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 (getFieldsCount() > 0) {
- hash = (37 * hash) + FIELDS_FIELD_NUMBER;
- hash = (53 * hash) + getFieldsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- 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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema 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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema 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 schema of the data to be ingested. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder
- * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public java.util.List- * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public int getFieldsCount() {
- if (fieldsBuilder_ == null) {
- return fields_.size();
- } else {
- return fieldsBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema getFields(
- int index) {
- if (fieldsBuilder_ == null) {
- return fields_.get(index);
- } else {
- return fieldsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder setFields(
- int index, com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema value) {
- if (fieldsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.set(index, value);
- onChanged();
- } else {
- fieldsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder setFields(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder
- builderForValue) {
- if (fieldsBuilder_ == null) {
- ensureFieldsIsMutable();
- fields_.set(index, builderForValue.build());
- onChanged();
- } else {
- fieldsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder addFields(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema value) {
- if (fieldsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(value);
- onChanged();
- } else {
- fieldsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder addFields(
- int index, com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema value) {
- if (fieldsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFieldsIsMutable();
- fields_.add(index, value);
- onChanged();
- } else {
- fieldsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder addFields(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder
- builderForValue) {
- if (fieldsBuilder_ == null) {
- ensureFieldsIsMutable();
- fields_.add(builderForValue.build());
- onChanged();
- } else {
- fieldsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder addFields(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder
- builderForValue) {
- if (fieldsBuilder_ == null) {
- ensureFieldsIsMutable();
- fields_.add(index, builderForValue.build());
- onChanged();
- } else {
- fieldsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder addAllFields(
- java.lang.Iterable<
- ? extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema>
- values) {
- if (fieldsBuilder_ == null) {
- ensureFieldsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
- onChanged();
- } else {
- fieldsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder clearFields() {
- if (fieldsBuilder_ == null) {
- fields_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- fieldsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public Builder removeFields(int index) {
- if (fieldsBuilder_ == null) {
- ensureFieldsIsMutable();
- fields_.remove(index);
- onChanged();
- } else {
- fieldsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder
- getFieldsBuilder(int index) {
- return getFieldsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder
- getFieldsOrBuilder(int index) {
- if (fieldsBuilder_ == null) {
- return fields_.get(index);
- } else {
- return fieldsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public java.util.List<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder>
- getFieldsOrBuilderList() {
- if (fieldsBuilder_ != null) {
- return fieldsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(fields_);
- }
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder
- addFieldsBuilder() {
- return getFieldsFieldBuilder()
- .addBuilder(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema
- .getDefaultInstance());
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder
- addFieldsBuilder(int index) {
- return getFieldsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema
- .getDefaultInstance());
- }
- /**
- *
- *
- * - * One field per column in the record. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema fields = 1;
- *
- */
- public java.util.List<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder>
- getFieldsBuilderList() {
- return getFieldsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder>
- getFieldsFieldBuilder() {
- if (fieldsBuilder_ == null) {
- fieldsBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchemaOrBuilder>(
- fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
- fields_ = null;
- }
- return fieldsBuilder_;
- }
-
- @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.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema)
- private static final com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- java.lang.String getTableId();
- /**
- *
- *
- * - * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- com.google.protobuf.ByteString getTableIdBytes();
-
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- java.util.List- * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- int getSourceUrisCount();
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- java.lang.String getSourceUris(int index);
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- com.google.protobuf.ByteString getSourceUrisBytes(int index);
-
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- int getFormatValue();
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format getFormat();
-
- /**
- *
- *
- * - * Specify the maximum number of bad records that can be ignored. - * If bad records exceed this threshold the query is aborted. - *- * - *
int32 max_bad_records = 4;
- */
- int getMaxBadRecords();
-
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- int getEncodingValue();
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding getEncoding();
-
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- boolean hasCsvOptions();
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- getCsvOptions();
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder
- getCsvOptionsOrBuilder();
-
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- */
- boolean hasSchema();
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema getSchema();
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder
- getSchemaOrBuilder();
-
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- boolean hasIgnoreUnknownValues();
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- com.google.protobuf.BoolValue getIgnoreUnknownValues();
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- com.google.protobuf.BoolValueOrBuilder getIgnoreUnknownValuesOrBuilder();
- }
- /**
- *
- *
- * - * External table definition. These tables can be referenced with 'name' - * in the query and can be read just like any other table. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition} - */ - public static final class TableDefinition extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition) - TableDefinitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableDefinition.newBuilder() to construct. - private TableDefinition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private TableDefinition() { - tableId_ = ""; - sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - format_ = 0; - encoding_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TableDefinition( - 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(); - - tableId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - sourceUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - sourceUris_.add(s); - break; - } - case 24: - { - int rawValue = input.readEnum(); - - format_ = rawValue; - break; - } - case 32: - { - maxBadRecords_ = input.readInt32(); - break; - } - case 40: - { - int rawValue = input.readEnum(); - - encoding_ = rawValue; - break; - } - case 50: - { - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition - .CsvOptions.Builder - subBuilder = null; - if (csvOptions_ != null) { - subBuilder = csvOptions_.toBuilder(); - } - csvOptions_ = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition - .CsvOptions.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(csvOptions_); - csvOptions_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder - subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (ignoreUnknownValues_ != null) { - subBuilder = ignoreUnknownValues_.toBuilder(); - } - ignoreUnknownValues_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ignoreUnknownValues_); - ignoreUnknownValues_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - sourceUris_ = sourceUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.class, - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder - .class); - } - - public interface CsvOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
- * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- boolean hasFieldDelimiter();
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- com.google.protobuf.StringValue getFieldDelimiter();
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- com.google.protobuf.StringValueOrBuilder getFieldDelimiterOrBuilder();
-
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- boolean hasAllowQuotedNewlines();
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- com.google.protobuf.BoolValue getAllowQuotedNewlines();
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- com.google.protobuf.BoolValueOrBuilder getAllowQuotedNewlinesOrBuilder();
-
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- boolean hasQuoteChar();
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- com.google.protobuf.StringValue getQuoteChar();
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- com.google.protobuf.StringValueOrBuilder getQuoteCharOrBuilder();
-
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- boolean hasSkipLeadingRows();
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- com.google.protobuf.Int64Value getSkipLeadingRows();
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- com.google.protobuf.Int64ValueOrBuilder getSkipLeadingRowsOrBuilder();
-
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- boolean hasAllowJaggedRows();
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- com.google.protobuf.BoolValue getAllowJaggedRows();
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- com.google.protobuf.BoolValueOrBuilder getAllowJaggedRowsOrBuilder();
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - * Protobuf type {@code - * google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions} - */ - public static final class CsvOptions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions) - CsvOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CsvOptions.newBuilder() to construct. - private CsvOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private CsvOptions() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CsvOptions( - 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: - { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (fieldDelimiter_ != null) { - subBuilder = fieldDelimiter_.toBuilder(); - } - fieldDelimiter_ = - input.readMessage( - com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldDelimiter_); - fieldDelimiter_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (allowQuotedNewlines_ != null) { - subBuilder = allowQuotedNewlines_.toBuilder(); - } - allowQuotedNewlines_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowQuotedNewlines_); - allowQuotedNewlines_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (quoteChar_ != null) { - subBuilder = quoteChar_.toBuilder(); - } - quoteChar_ = - input.readMessage( - com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quoteChar_); - quoteChar_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (skipLeadingRows_ != null) { - subBuilder = skipLeadingRows_.toBuilder(); - } - skipLeadingRows_ = - input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(skipLeadingRows_); - skipLeadingRows_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (allowJaggedRows_ != null) { - subBuilder = allowJaggedRows_.toBuilder(); - } - allowJaggedRows_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowJaggedRows_); - allowJaggedRows_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ImportedDataInfo_TableDefinition_CsvOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition - .CsvOptions.class, - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition - .CsvOptions.Builder.class); - } - - public static final int FIELD_DELIMITER_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue fieldDelimiter_; - /** - * - * - *
- * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public boolean hasFieldDelimiter() {
- return fieldDelimiter_ != null;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public com.google.protobuf.StringValue getFieldDelimiter() {
- return fieldDelimiter_ == null
- ? com.google.protobuf.StringValue.getDefaultInstance()
- : fieldDelimiter_;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public com.google.protobuf.StringValueOrBuilder getFieldDelimiterOrBuilder() {
- return getFieldDelimiter();
- }
-
- public static final int ALLOW_QUOTED_NEWLINES_FIELD_NUMBER = 2;
- private com.google.protobuf.BoolValue allowQuotedNewlines_;
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public boolean hasAllowQuotedNewlines() {
- return allowQuotedNewlines_ != null;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public com.google.protobuf.BoolValue getAllowQuotedNewlines() {
- return allowQuotedNewlines_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : allowQuotedNewlines_;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public com.google.protobuf.BoolValueOrBuilder getAllowQuotedNewlinesOrBuilder() {
- return getAllowQuotedNewlines();
- }
-
- public static final int QUOTE_CHAR_FIELD_NUMBER = 3;
- private com.google.protobuf.StringValue quoteChar_;
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public boolean hasQuoteChar() {
- return quoteChar_ != null;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public com.google.protobuf.StringValue getQuoteChar() {
- return quoteChar_ == null
- ? com.google.protobuf.StringValue.getDefaultInstance()
- : quoteChar_;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public com.google.protobuf.StringValueOrBuilder getQuoteCharOrBuilder() {
- return getQuoteChar();
- }
-
- public static final int SKIP_LEADING_ROWS_FIELD_NUMBER = 4;
- private com.google.protobuf.Int64Value skipLeadingRows_;
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public boolean hasSkipLeadingRows() {
- return skipLeadingRows_ != null;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public com.google.protobuf.Int64Value getSkipLeadingRows() {
- return skipLeadingRows_ == null
- ? com.google.protobuf.Int64Value.getDefaultInstance()
- : skipLeadingRows_;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public com.google.protobuf.Int64ValueOrBuilder getSkipLeadingRowsOrBuilder() {
- return getSkipLeadingRows();
- }
-
- public static final int ALLOW_JAGGED_ROWS_FIELD_NUMBER = 5;
- private com.google.protobuf.BoolValue allowJaggedRows_;
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public boolean hasAllowJaggedRows() {
- return allowJaggedRows_ != null;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public com.google.protobuf.BoolValue getAllowJaggedRows() {
- return allowJaggedRows_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : allowJaggedRows_;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public com.google.protobuf.BoolValueOrBuilder getAllowJaggedRowsOrBuilder() {
- return getAllowJaggedRows();
- }
-
- 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 (fieldDelimiter_ != null) {
- output.writeMessage(1, getFieldDelimiter());
- }
- if (allowQuotedNewlines_ != null) {
- output.writeMessage(2, getAllowQuotedNewlines());
- }
- if (quoteChar_ != null) {
- output.writeMessage(3, getQuoteChar());
- }
- if (skipLeadingRows_ != null) {
- output.writeMessage(4, getSkipLeadingRows());
- }
- if (allowJaggedRows_ != null) {
- output.writeMessage(5, getAllowJaggedRows());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (fieldDelimiter_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFieldDelimiter());
- }
- if (allowQuotedNewlines_ != null) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAllowQuotedNewlines());
- }
- if (quoteChar_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQuoteChar());
- }
- if (skipLeadingRows_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSkipLeadingRows());
- }
- if (allowJaggedRows_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAllowJaggedRows());
- }
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- other =
- (com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions)
- obj;
-
- if (hasFieldDelimiter() != other.hasFieldDelimiter()) return false;
- if (hasFieldDelimiter()) {
- if (!getFieldDelimiter().equals(other.getFieldDelimiter())) return false;
- }
- if (hasAllowQuotedNewlines() != other.hasAllowQuotedNewlines()) return false;
- if (hasAllowQuotedNewlines()) {
- if (!getAllowQuotedNewlines().equals(other.getAllowQuotedNewlines())) return false;
- }
- if (hasQuoteChar() != other.hasQuoteChar()) return false;
- if (hasQuoteChar()) {
- if (!getQuoteChar().equals(other.getQuoteChar())) return false;
- }
- if (hasSkipLeadingRows() != other.hasSkipLeadingRows()) return false;
- if (hasSkipLeadingRows()) {
- if (!getSkipLeadingRows().equals(other.getSkipLeadingRows())) return false;
- }
- if (hasAllowJaggedRows() != other.hasAllowJaggedRows()) return false;
- if (hasAllowJaggedRows()) {
- if (!getAllowJaggedRows().equals(other.getAllowJaggedRows())) 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 (hasFieldDelimiter()) {
- hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER;
- hash = (53 * hash) + getFieldDelimiter().hashCode();
- }
- if (hasAllowQuotedNewlines()) {
- hash = (37 * hash) + ALLOW_QUOTED_NEWLINES_FIELD_NUMBER;
- hash = (53 * hash) + getAllowQuotedNewlines().hashCode();
- }
- if (hasQuoteChar()) {
- hash = (37 * hash) + QUOTE_CHAR_FIELD_NUMBER;
- hash = (53 * hash) + getQuoteChar().hashCode();
- }
- if (hasSkipLeadingRows()) {
- hash = (37 * hash) + SKIP_LEADING_ROWS_FIELD_NUMBER;
- hash = (53 * hash) + getSkipLeadingRows().hashCode();
- }
- if (hasAllowJaggedRows()) {
- hash = (37 * hash) + ALLOW_JAGGED_ROWS_FIELD_NUMBER;
- hash = (53 * hash) + getAllowJaggedRows().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- 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;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - * Protobuf type {@code - * google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder
- * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public boolean hasFieldDelimiter() {
- return fieldDelimiterBuilder_ != null || fieldDelimiter_ != null;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public com.google.protobuf.StringValue getFieldDelimiter() {
- if (fieldDelimiterBuilder_ == null) {
- return fieldDelimiter_ == null
- ? com.google.protobuf.StringValue.getDefaultInstance()
- : fieldDelimiter_;
- } else {
- return fieldDelimiterBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public Builder setFieldDelimiter(com.google.protobuf.StringValue value) {
- if (fieldDelimiterBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- fieldDelimiter_ = value;
- onChanged();
- } else {
- fieldDelimiterBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public Builder setFieldDelimiter(com.google.protobuf.StringValue.Builder builderForValue) {
- if (fieldDelimiterBuilder_ == null) {
- fieldDelimiter_ = builderForValue.build();
- onChanged();
- } else {
- fieldDelimiterBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public Builder mergeFieldDelimiter(com.google.protobuf.StringValue value) {
- if (fieldDelimiterBuilder_ == null) {
- if (fieldDelimiter_ != null) {
- fieldDelimiter_ =
- com.google.protobuf.StringValue.newBuilder(fieldDelimiter_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- fieldDelimiter_ = value;
- }
- onChanged();
- } else {
- fieldDelimiterBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public Builder clearFieldDelimiter() {
- if (fieldDelimiterBuilder_ == null) {
- fieldDelimiter_ = null;
- onChanged();
- } else {
- fieldDelimiter_ = null;
- fieldDelimiterBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public com.google.protobuf.StringValue.Builder getFieldDelimiterBuilder() {
-
- onChanged();
- return getFieldDelimiterFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- public com.google.protobuf.StringValueOrBuilder getFieldDelimiterOrBuilder() {
- if (fieldDelimiterBuilder_ != null) {
- return fieldDelimiterBuilder_.getMessageOrBuilder();
- } else {
- return fieldDelimiter_ == null
- ? com.google.protobuf.StringValue.getDefaultInstance()
- : fieldDelimiter_;
- }
- }
- /**
- *
- *
- * - * The delimiter. We currently restrict this to U+0001 to U+00FF and - * apply additional constraints during validation. - *- * - *
.google.protobuf.StringValue field_delimiter = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.StringValue,
- com.google.protobuf.StringValue.Builder,
- com.google.protobuf.StringValueOrBuilder>
- getFieldDelimiterFieldBuilder() {
- if (fieldDelimiterBuilder_ == null) {
- fieldDelimiterBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.StringValue,
- com.google.protobuf.StringValue.Builder,
- com.google.protobuf.StringValueOrBuilder>(
- getFieldDelimiter(), getParentForChildren(), isClean());
- fieldDelimiter_ = null;
- }
- return fieldDelimiterBuilder_;
- }
-
- private com.google.protobuf.BoolValue allowQuotedNewlines_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>
- allowQuotedNewlinesBuilder_;
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public boolean hasAllowQuotedNewlines() {
- return allowQuotedNewlinesBuilder_ != null || allowQuotedNewlines_ != null;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public com.google.protobuf.BoolValue getAllowQuotedNewlines() {
- if (allowQuotedNewlinesBuilder_ == null) {
- return allowQuotedNewlines_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : allowQuotedNewlines_;
- } else {
- return allowQuotedNewlinesBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public Builder setAllowQuotedNewlines(com.google.protobuf.BoolValue value) {
- if (allowQuotedNewlinesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- allowQuotedNewlines_ = value;
- onChanged();
- } else {
- allowQuotedNewlinesBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public Builder setAllowQuotedNewlines(
- com.google.protobuf.BoolValue.Builder builderForValue) {
- if (allowQuotedNewlinesBuilder_ == null) {
- allowQuotedNewlines_ = builderForValue.build();
- onChanged();
- } else {
- allowQuotedNewlinesBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public Builder mergeAllowQuotedNewlines(com.google.protobuf.BoolValue value) {
- if (allowQuotedNewlinesBuilder_ == null) {
- if (allowQuotedNewlines_ != null) {
- allowQuotedNewlines_ =
- com.google.protobuf.BoolValue.newBuilder(allowQuotedNewlines_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- allowQuotedNewlines_ = value;
- }
- onChanged();
- } else {
- allowQuotedNewlinesBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public Builder clearAllowQuotedNewlines() {
- if (allowQuotedNewlinesBuilder_ == null) {
- allowQuotedNewlines_ = null;
- onChanged();
- } else {
- allowQuotedNewlines_ = null;
- allowQuotedNewlinesBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public com.google.protobuf.BoolValue.Builder getAllowQuotedNewlinesBuilder() {
-
- onChanged();
- return getAllowQuotedNewlinesFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- public com.google.protobuf.BoolValueOrBuilder getAllowQuotedNewlinesOrBuilder() {
- if (allowQuotedNewlinesBuilder_ != null) {
- return allowQuotedNewlinesBuilder_.getMessageOrBuilder();
- } else {
- return allowQuotedNewlines_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : allowQuotedNewlines_;
- }
- }
- /**
- *
- *
- * - * Whether CSV files are allowed to have quoted newlines. If quoted - * newlines are allowed, we can't split CSV files. - *- * - *
.google.protobuf.BoolValue allow_quoted_newlines = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>
- getAllowQuotedNewlinesFieldBuilder() {
- if (allowQuotedNewlinesBuilder_ == null) {
- allowQuotedNewlinesBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>(
- getAllowQuotedNewlines(), getParentForChildren(), isClean());
- allowQuotedNewlines_ = null;
- }
- return allowQuotedNewlinesBuilder_;
- }
-
- private com.google.protobuf.StringValue quoteChar_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.StringValue,
- com.google.protobuf.StringValue.Builder,
- com.google.protobuf.StringValueOrBuilder>
- quoteCharBuilder_;
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public boolean hasQuoteChar() {
- return quoteCharBuilder_ != null || quoteChar_ != null;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public com.google.protobuf.StringValue getQuoteChar() {
- if (quoteCharBuilder_ == null) {
- return quoteChar_ == null
- ? com.google.protobuf.StringValue.getDefaultInstance()
- : quoteChar_;
- } else {
- return quoteCharBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public Builder setQuoteChar(com.google.protobuf.StringValue value) {
- if (quoteCharBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- quoteChar_ = value;
- onChanged();
- } else {
- quoteCharBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public Builder setQuoteChar(com.google.protobuf.StringValue.Builder builderForValue) {
- if (quoteCharBuilder_ == null) {
- quoteChar_ = builderForValue.build();
- onChanged();
- } else {
- quoteCharBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public Builder mergeQuoteChar(com.google.protobuf.StringValue value) {
- if (quoteCharBuilder_ == null) {
- if (quoteChar_ != null) {
- quoteChar_ =
- com.google.protobuf.StringValue.newBuilder(quoteChar_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- quoteChar_ = value;
- }
- onChanged();
- } else {
- quoteCharBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public Builder clearQuoteChar() {
- if (quoteCharBuilder_ == null) {
- quoteChar_ = null;
- onChanged();
- } else {
- quoteChar_ = null;
- quoteCharBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public com.google.protobuf.StringValue.Builder getQuoteCharBuilder() {
-
- onChanged();
- return getQuoteCharFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- public com.google.protobuf.StringValueOrBuilder getQuoteCharOrBuilder() {
- if (quoteCharBuilder_ != null) {
- return quoteCharBuilder_.getMessageOrBuilder();
- } else {
- return quoteChar_ == null
- ? com.google.protobuf.StringValue.getDefaultInstance()
- : quoteChar_;
- }
- }
- /**
- *
- *
- * - * The quote character. We currently restrict this to U+0000 to U+00FF - * and apply additional constraints during validation. Set to '\0' to - * indicate no quote is used. - *- * - *
.google.protobuf.StringValue quote_char = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.StringValue,
- com.google.protobuf.StringValue.Builder,
- com.google.protobuf.StringValueOrBuilder>
- getQuoteCharFieldBuilder() {
- if (quoteCharBuilder_ == null) {
- quoteCharBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.StringValue,
- com.google.protobuf.StringValue.Builder,
- com.google.protobuf.StringValueOrBuilder>(
- getQuoteChar(), getParentForChildren(), isClean());
- quoteChar_ = null;
- }
- return quoteCharBuilder_;
- }
-
- private com.google.protobuf.Int64Value skipLeadingRows_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Int64Value,
- com.google.protobuf.Int64Value.Builder,
- com.google.protobuf.Int64ValueOrBuilder>
- skipLeadingRowsBuilder_;
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public boolean hasSkipLeadingRows() {
- return skipLeadingRowsBuilder_ != null || skipLeadingRows_ != null;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public com.google.protobuf.Int64Value getSkipLeadingRows() {
- if (skipLeadingRowsBuilder_ == null) {
- return skipLeadingRows_ == null
- ? com.google.protobuf.Int64Value.getDefaultInstance()
- : skipLeadingRows_;
- } else {
- return skipLeadingRowsBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public Builder setSkipLeadingRows(com.google.protobuf.Int64Value value) {
- if (skipLeadingRowsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- skipLeadingRows_ = value;
- onChanged();
- } else {
- skipLeadingRowsBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public Builder setSkipLeadingRows(com.google.protobuf.Int64Value.Builder builderForValue) {
- if (skipLeadingRowsBuilder_ == null) {
- skipLeadingRows_ = builderForValue.build();
- onChanged();
- } else {
- skipLeadingRowsBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public Builder mergeSkipLeadingRows(com.google.protobuf.Int64Value value) {
- if (skipLeadingRowsBuilder_ == null) {
- if (skipLeadingRows_ != null) {
- skipLeadingRows_ =
- com.google.protobuf.Int64Value.newBuilder(skipLeadingRows_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- skipLeadingRows_ = value;
- }
- onChanged();
- } else {
- skipLeadingRowsBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public Builder clearSkipLeadingRows() {
- if (skipLeadingRowsBuilder_ == null) {
- skipLeadingRows_ = null;
- onChanged();
- } else {
- skipLeadingRows_ = null;
- skipLeadingRowsBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public com.google.protobuf.Int64Value.Builder getSkipLeadingRowsBuilder() {
-
- onChanged();
- return getSkipLeadingRowsFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- public com.google.protobuf.Int64ValueOrBuilder getSkipLeadingRowsOrBuilder() {
- if (skipLeadingRowsBuilder_ != null) {
- return skipLeadingRowsBuilder_.getMessageOrBuilder();
- } else {
- return skipLeadingRows_ == null
- ? com.google.protobuf.Int64Value.getDefaultInstance()
- : skipLeadingRows_;
- }
- }
- /**
- *
- *
- * - * Number of leading rows to skip. - *- * - *
.google.protobuf.Int64Value skip_leading_rows = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Int64Value,
- com.google.protobuf.Int64Value.Builder,
- com.google.protobuf.Int64ValueOrBuilder>
- getSkipLeadingRowsFieldBuilder() {
- if (skipLeadingRowsBuilder_ == null) {
- skipLeadingRowsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Int64Value,
- com.google.protobuf.Int64Value.Builder,
- com.google.protobuf.Int64ValueOrBuilder>(
- getSkipLeadingRows(), getParentForChildren(), isClean());
- skipLeadingRows_ = null;
- }
- return skipLeadingRowsBuilder_;
- }
-
- private com.google.protobuf.BoolValue allowJaggedRows_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>
- allowJaggedRowsBuilder_;
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public boolean hasAllowJaggedRows() {
- return allowJaggedRowsBuilder_ != null || allowJaggedRows_ != null;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public com.google.protobuf.BoolValue getAllowJaggedRows() {
- if (allowJaggedRowsBuilder_ == null) {
- return allowJaggedRows_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : allowJaggedRows_;
- } else {
- return allowJaggedRowsBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public Builder setAllowJaggedRows(com.google.protobuf.BoolValue value) {
- if (allowJaggedRowsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- allowJaggedRows_ = value;
- onChanged();
- } else {
- allowJaggedRowsBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public Builder setAllowJaggedRows(com.google.protobuf.BoolValue.Builder builderForValue) {
- if (allowJaggedRowsBuilder_ == null) {
- allowJaggedRows_ = builderForValue.build();
- onChanged();
- } else {
- allowJaggedRowsBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public Builder mergeAllowJaggedRows(com.google.protobuf.BoolValue value) {
- if (allowJaggedRowsBuilder_ == null) {
- if (allowJaggedRows_ != null) {
- allowJaggedRows_ =
- com.google.protobuf.BoolValue.newBuilder(allowJaggedRows_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- allowJaggedRows_ = value;
- }
- onChanged();
- } else {
- allowJaggedRowsBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public Builder clearAllowJaggedRows() {
- if (allowJaggedRowsBuilder_ == null) {
- allowJaggedRows_ = null;
- onChanged();
- } else {
- allowJaggedRows_ = null;
- allowJaggedRowsBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public com.google.protobuf.BoolValue.Builder getAllowJaggedRowsBuilder() {
-
- onChanged();
- return getAllowJaggedRowsFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- public com.google.protobuf.BoolValueOrBuilder getAllowJaggedRowsOrBuilder() {
- if (allowJaggedRowsBuilder_ != null) {
- return allowJaggedRowsBuilder_.getMessageOrBuilder();
- } else {
- return allowJaggedRows_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : allowJaggedRows_;
- }
- }
- /**
- *
- *
- * - * Accept rows that are missing trailing optional columns. - *- * - *
.google.protobuf.BoolValue allow_jagged_rows = 5;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>
- getAllowJaggedRowsFieldBuilder() {
- if (allowJaggedRowsBuilder_ == null) {
- allowJaggedRowsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>(
- getAllowJaggedRows(), getParentForChildren(), isClean());
- allowJaggedRows_ = null;
- }
- return allowJaggedRowsBuilder_;
- }
-
- @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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions)
- private static final com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo
- .TableDefinition.CsvOptions
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public java.lang.String getTableId() {
- java.lang.Object ref = tableId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- tableId_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public com.google.protobuf.ByteString getTableIdBytes() {
- java.lang.Object ref = tableId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- tableId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SOURCE_URIS_FIELD_NUMBER = 2;
- private com.google.protobuf.LazyStringList sourceUris_;
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public com.google.protobuf.ProtocolStringList getSourceUrisList() {
- return sourceUris_;
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public int getSourceUrisCount() {
- return sourceUris_.size();
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public java.lang.String getSourceUris(int index) {
- return sourceUris_.get(index);
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public com.google.protobuf.ByteString getSourceUrisBytes(int index) {
- return sourceUris_.getByteString(index);
- }
-
- public static final int FORMAT_FIELD_NUMBER = 3;
- private int format_;
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public int getFormatValue() {
- return format_;
- }
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format getFormat() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format result =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format.valueOf(format_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format.UNRECOGNIZED
- : result;
- }
-
- public static final int MAX_BAD_RECORDS_FIELD_NUMBER = 4;
- private int maxBadRecords_;
- /**
- *
- *
- * - * Specify the maximum number of bad records that can be ignored. - * If bad records exceed this threshold the query is aborted. - *- * - *
int32 max_bad_records = 4;
- */
- public int getMaxBadRecords() {
- return maxBadRecords_;
- }
-
- public static final int ENCODING_FIELD_NUMBER = 5;
- private int encoding_;
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public int getEncodingValue() {
- return encoding_;
- }
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding getEncoding() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding result =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding.valueOf(encoding_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding.UNRECOGNIZED
- : result;
- }
-
- public static final int CSV_OPTIONS_FIELD_NUMBER = 6;
- private com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- csvOptions_;
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public boolean hasCsvOptions() {
- return csvOptions_ != null;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- getCsvOptions() {
- return csvOptions_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- .getDefaultInstance()
- : csvOptions_;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptionsOrBuilder
- getCsvOptionsOrBuilder() {
- return getCsvOptions();
- }
-
- public static final int SCHEMA_FIELD_NUMBER = 7;
- private com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema_;
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- */
- public boolean hasSchema() {
- return schema_ != null;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema getSchema() {
- return schema_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- .getDefaultInstance()
- : schema_;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder
- getSchemaOrBuilder() {
- return getSchema();
- }
-
- public static final int IGNORE_UNKNOWN_VALUES_FIELD_NUMBER = 10;
- private com.google.protobuf.BoolValue ignoreUnknownValues_;
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public boolean hasIgnoreUnknownValues() {
- return ignoreUnknownValues_ != null;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public com.google.protobuf.BoolValue getIgnoreUnknownValues() {
- return ignoreUnknownValues_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : ignoreUnknownValues_;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public com.google.protobuf.BoolValueOrBuilder getIgnoreUnknownValuesOrBuilder() {
- return getIgnoreUnknownValues();
- }
-
- 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 (!getTableIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableId_);
- }
- for (int i = 0; i < sourceUris_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceUris_.getRaw(i));
- }
- if (format_
- != com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format.FORMAT_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(3, format_);
- }
- if (maxBadRecords_ != 0) {
- output.writeInt32(4, maxBadRecords_);
- }
- if (encoding_
- != com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding
- .ENCODING_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(5, encoding_);
- }
- if (csvOptions_ != null) {
- output.writeMessage(6, getCsvOptions());
- }
- if (schema_ != null) {
- output.writeMessage(7, getSchema());
- }
- if (ignoreUnknownValues_ != null) {
- output.writeMessage(10, getIgnoreUnknownValues());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getTableIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableId_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < sourceUris_.size(); i++) {
- dataSize += computeStringSizeNoTag(sourceUris_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getSourceUrisList().size();
- }
- if (format_
- != com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format.FORMAT_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, format_);
- }
- if (maxBadRecords_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxBadRecords_);
- }
- if (encoding_
- != com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding
- .ENCODING_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, encoding_);
- }
- if (csvOptions_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCsvOptions());
- }
- if (schema_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSchema());
- }
- if (ignoreUnknownValues_ != null) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIgnoreUnknownValues());
- }
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition other =
- (com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition) obj;
-
- if (!getTableId().equals(other.getTableId())) return false;
- if (!getSourceUrisList().equals(other.getSourceUrisList())) return false;
- if (format_ != other.format_) return false;
- if (getMaxBadRecords() != other.getMaxBadRecords()) return false;
- if (encoding_ != other.encoding_) return false;
- if (hasCsvOptions() != other.hasCsvOptions()) return false;
- if (hasCsvOptions()) {
- if (!getCsvOptions().equals(other.getCsvOptions())) return false;
- }
- if (hasSchema() != other.hasSchema()) return false;
- if (hasSchema()) {
- if (!getSchema().equals(other.getSchema())) return false;
- }
- if (hasIgnoreUnknownValues() != other.hasIgnoreUnknownValues()) return false;
- if (hasIgnoreUnknownValues()) {
- if (!getIgnoreUnknownValues().equals(other.getIgnoreUnknownValues())) 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) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId().hashCode();
- if (getSourceUrisCount() > 0) {
- hash = (37 * hash) + SOURCE_URIS_FIELD_NUMBER;
- hash = (53 * hash) + getSourceUrisList().hashCode();
- }
- hash = (37 * hash) + FORMAT_FIELD_NUMBER;
- hash = (53 * hash) + format_;
- hash = (37 * hash) + MAX_BAD_RECORDS_FIELD_NUMBER;
- hash = (53 * hash) + getMaxBadRecords();
- hash = (37 * hash) + ENCODING_FIELD_NUMBER;
- hash = (53 * hash) + encoding_;
- if (hasCsvOptions()) {
- hash = (37 * hash) + CSV_OPTIONS_FIELD_NUMBER;
- hash = (53 * hash) + getCsvOptions().hashCode();
- }
- if (hasSchema()) {
- hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
- hash = (53 * hash) + getSchema().hashCode();
- }
- if (hasIgnoreUnknownValues()) {
- hash = (37 * hash) + IGNORE_UNKNOWN_VALUES_FIELD_NUMBER;
- hash = (53 * hash) + getIgnoreUnknownValues().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- 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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition 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;
- }
- /**
- *
- *
- * - * External table definition. These tables can be referenced with 'name' - * in the query and can be read just like any other table. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder
- * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public java.lang.String getTableId() {
- java.lang.Object ref = tableId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- tableId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public com.google.protobuf.ByteString getTableIdBytes() {
- java.lang.Object ref = tableId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- tableId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public Builder setTableId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public Builder clearTableId() {
-
- tableId_ = getDefaultInstance().getTableId();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * BigQuery table_id (required). This will be used to reference this - * table in the query. - *- * - *
string table_id = 1;
- */
- public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- tableId_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList sourceUris_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
-
- private void ensureSourceUrisIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- sourceUris_ = new com.google.protobuf.LazyStringArrayList(sourceUris_);
- bitField0_ |= 0x00000002;
- }
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public com.google.protobuf.ProtocolStringList getSourceUrisList() {
- return sourceUris_.getUnmodifiableView();
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public int getSourceUrisCount() {
- return sourceUris_.size();
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public java.lang.String getSourceUris(int index) {
- return sourceUris_.get(index);
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public com.google.protobuf.ByteString getSourceUrisBytes(int index) {
- return sourceUris_.getByteString(index);
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public Builder setSourceUris(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSourceUrisIsMutable();
- sourceUris_.set(index, value);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public Builder addSourceUris(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSourceUrisIsMutable();
- sourceUris_.add(value);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public Builder addAllSourceUris(java.lang.Iterable- * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public Builder clearSourceUris() {
- sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * URIs for the data to be imported. All URIs must be from the same storage - * system. - *- * - *
repeated string source_uris = 2;
- */
- public Builder addSourceUrisBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- ensureSourceUrisIsMutable();
- sourceUris_.add(value);
- onChanged();
- return this;
- }
-
- private int format_ = 0;
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public int getFormatValue() {
- return format_;
- }
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public Builder setFormatValue(int value) {
- format_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format getFormat() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format result =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format.valueOf(format_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public Builder setFormat(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- format_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Describes the format of the data in source_uri. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
- */
- public Builder clearFormat() {
-
- format_ = 0;
- onChanged();
- return this;
- }
-
- private int maxBadRecords_;
- /**
- *
- *
- * - * Specify the maximum number of bad records that can be ignored. - * If bad records exceed this threshold the query is aborted. - *- * - *
int32 max_bad_records = 4;
- */
- public int getMaxBadRecords() {
- return maxBadRecords_;
- }
- /**
- *
- *
- * - * Specify the maximum number of bad records that can be ignored. - * If bad records exceed this threshold the query is aborted. - *- * - *
int32 max_bad_records = 4;
- */
- public Builder setMaxBadRecords(int value) {
-
- maxBadRecords_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Specify the maximum number of bad records that can be ignored. - * If bad records exceed this threshold the query is aborted. - *- * - *
int32 max_bad_records = 4;
- */
- public Builder clearMaxBadRecords() {
-
- maxBadRecords_ = 0;
- onChanged();
- return this;
- }
-
- private int encoding_ = 0;
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public int getEncodingValue() {
- return encoding_;
- }
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public Builder setEncodingValue(int value) {
- encoding_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding getEncoding() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding result =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding.valueOf(encoding_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public Builder setEncoding(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- encoding_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Character encoding of the input when applicable (CSV, JSON). - * Defaults to UTF8. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;
- */
- public Builder clearEncoding() {
-
- encoding_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- csvOptions_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- .Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptionsOrBuilder>
- csvOptionsBuilder_;
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public boolean hasCsvOptions() {
- return csvOptionsBuilder_ != null || csvOptions_ != null;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- getCsvOptions() {
- if (csvOptionsBuilder_ == null) {
- return csvOptions_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions.getDefaultInstance()
- : csvOptions_;
- } else {
- return csvOptionsBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public Builder setCsvOptions(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- value) {
- if (csvOptionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- csvOptions_ = value;
- onChanged();
- } else {
- csvOptionsBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public Builder setCsvOptions(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- .Builder
- builderForValue) {
- if (csvOptionsBuilder_ == null) {
- csvOptions_ = builderForValue.build();
- onChanged();
- } else {
- csvOptionsBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public Builder mergeCsvOptions(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- value) {
- if (csvOptionsBuilder_ == null) {
- if (csvOptions_ != null) {
- csvOptions_ =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions.newBuilder(csvOptions_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- csvOptions_ = value;
- }
- onChanged();
- } else {
- csvOptionsBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public Builder clearCsvOptions() {
- if (csvOptionsBuilder_ == null) {
- csvOptions_ = null;
- onChanged();
- } else {
- csvOptions_ = null;
- csvOptionsBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- .Builder
- getCsvOptionsBuilder() {
-
- onChanged();
- return getCsvOptionsFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptionsOrBuilder
- getCsvOptionsOrBuilder() {
- if (csvOptionsBuilder_ != null) {
- return csvOptionsBuilder_.getMessageOrBuilder();
- } else {
- return csvOptions_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions.getDefaultInstance()
- : csvOptions_;
- }
- }
- /**
- *
- *
- * - * CSV specific options. - *- * - *
- * .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions
- .Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptionsOrBuilder>
- getCsvOptionsFieldBuilder() {
- if (csvOptionsBuilder_ == null) {
- csvOptionsBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptions.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .CsvOptionsOrBuilder>(getCsvOptions(), getParentForChildren(), isClean());
- csvOptions_ = null;
- }
- return csvOptionsBuilder_;
- }
-
- private com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder>
- schemaBuilder_;
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public boolean hasSchema() {
- return schemaBuilder_ != null || schema_ != null;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema getSchema() {
- if (schemaBuilder_ == null) {
- return schema_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- .getDefaultInstance()
- : schema_;
- } else {
- return schemaBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public Builder setSchema(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema value) {
- if (schemaBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- schema_ = value;
- onChanged();
- } else {
- schemaBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public Builder setSchema(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder
- builderForValue) {
- if (schemaBuilder_ == null) {
- schema_ = builderForValue.build();
- onChanged();
- } else {
- schemaBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public Builder mergeSchema(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema value) {
- if (schemaBuilder_ == null) {
- if (schema_ != null) {
- schema_ =
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.newBuilder(
- schema_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- schema_ = value;
- }
- onChanged();
- } else {
- schemaBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public Builder clearSchema() {
- if (schemaBuilder_ == null) {
- schema_ = null;
- onChanged();
- } else {
- schema_ = null;
- schemaBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder
- getSchemaBuilder() {
-
- onChanged();
- return getSchemaFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder
- getSchemaOrBuilder() {
- if (schemaBuilder_ != null) {
- return schemaBuilder_.getMessageOrBuilder();
- } else {
- return schema_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema
- .getDefaultInstance()
- : schema_;
- }
- }
- /**
- *
- *
- * - * Optional schema for the data. When not specified for JSON and CSV formats - * we will try to detect it automatically. - *- * - *
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder>
- getSchemaFieldBuilder() {
- if (schemaBuilder_ == null) {
- schemaBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchemaOrBuilder>(
- getSchema(), getParentForChildren(), isClean());
- schema_ = null;
- }
- return schemaBuilder_;
- }
-
- private com.google.protobuf.BoolValue ignoreUnknownValues_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>
- ignoreUnknownValuesBuilder_;
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public boolean hasIgnoreUnknownValues() {
- return ignoreUnknownValuesBuilder_ != null || ignoreUnknownValues_ != null;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public com.google.protobuf.BoolValue getIgnoreUnknownValues() {
- if (ignoreUnknownValuesBuilder_ == null) {
- return ignoreUnknownValues_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : ignoreUnknownValues_;
- } else {
- return ignoreUnknownValuesBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public Builder setIgnoreUnknownValues(com.google.protobuf.BoolValue value) {
- if (ignoreUnknownValuesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ignoreUnknownValues_ = value;
- onChanged();
- } else {
- ignoreUnknownValuesBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public Builder setIgnoreUnknownValues(com.google.protobuf.BoolValue.Builder builderForValue) {
- if (ignoreUnknownValuesBuilder_ == null) {
- ignoreUnknownValues_ = builderForValue.build();
- onChanged();
- } else {
- ignoreUnknownValuesBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public Builder mergeIgnoreUnknownValues(com.google.protobuf.BoolValue value) {
- if (ignoreUnknownValuesBuilder_ == null) {
- if (ignoreUnknownValues_ != null) {
- ignoreUnknownValues_ =
- com.google.protobuf.BoolValue.newBuilder(ignoreUnknownValues_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- ignoreUnknownValues_ = value;
- }
- onChanged();
- } else {
- ignoreUnknownValuesBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public Builder clearIgnoreUnknownValues() {
- if (ignoreUnknownValuesBuilder_ == null) {
- ignoreUnknownValues_ = null;
- onChanged();
- } else {
- ignoreUnknownValues_ = null;
- ignoreUnknownValuesBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public com.google.protobuf.BoolValue.Builder getIgnoreUnknownValuesBuilder() {
-
- onChanged();
- return getIgnoreUnknownValuesFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- public com.google.protobuf.BoolValueOrBuilder getIgnoreUnknownValuesOrBuilder() {
- if (ignoreUnknownValuesBuilder_ != null) {
- return ignoreUnknownValuesBuilder_.getMessageOrBuilder();
- } else {
- return ignoreUnknownValues_ == null
- ? com.google.protobuf.BoolValue.getDefaultInstance()
- : ignoreUnknownValues_;
- }
- }
- /**
- *
- *
- * - * Indicates if extra values that are not represented in the table schema is - * allowed. - *- * - *
.google.protobuf.BoolValue ignore_unknown_values = 10;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>
- getIgnoreUnknownValuesFieldBuilder() {
- if (ignoreUnknownValuesBuilder_ == null) {
- ignoreUnknownValuesBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.BoolValue,
- com.google.protobuf.BoolValue.Builder,
- com.google.protobuf.BoolValueOrBuilder>(
- getIgnoreUnknownValues(), getParentForChildren(), isClean());
- ignoreUnknownValues_ = null;
- }
- return ignoreUnknownValuesBuilder_;
- }
-
- @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.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition)
- private static final com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public java.lang.String getSql() {
- java.lang.Object ref = sql_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- sql_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public com.google.protobuf.ByteString getSqlBytes() {
- java.lang.Object ref = sql_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- sql_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DESTINATION_TABLE_ID_FIELD_NUMBER = 2;
- private volatile java.lang.Object destinationTableId_;
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public java.lang.String getDestinationTableId() {
- java.lang.Object ref = destinationTableId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- destinationTableId_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public com.google.protobuf.ByteString getDestinationTableIdBytes() {
- java.lang.Object ref = destinationTableId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- destinationTableId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DESTINATION_TABLE_DESCRIPTION_FIELD_NUMBER = 10;
- private volatile java.lang.Object destinationTableDescription_;
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public java.lang.String getDestinationTableDescription() {
- java.lang.Object ref = destinationTableDescription_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- destinationTableDescription_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public com.google.protobuf.ByteString getDestinationTableDescriptionBytes() {
- java.lang.Object ref = destinationTableDescription_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- destinationTableDescription_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TABLE_DEFS_FIELD_NUMBER = 3;
- private java.util.List- * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public java.util.List- * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public java.util.List<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>
- getTableDefsOrBuilderList() {
- return tableDefs_;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public int getTableDefsCount() {
- return tableDefs_.size();
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition getTableDefs(
- int index) {
- return tableDefs_.get(index);
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder
- getTableDefsOrBuilder(int index) {
- return tableDefs_.get(index);
- }
-
- public static final int USER_DEFINED_FUNCTIONS_FIELD_NUMBER = 4;
- private com.google.protobuf.LazyStringList userDefinedFunctions_;
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public com.google.protobuf.ProtocolStringList getUserDefinedFunctionsList() {
- return userDefinedFunctions_;
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public int getUserDefinedFunctionsCount() {
- return userDefinedFunctions_.size();
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public java.lang.String getUserDefinedFunctions(int index) {
- return userDefinedFunctions_.get(index);
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public com.google.protobuf.ByteString getUserDefinedFunctionsBytes(int index) {
- return userDefinedFunctions_.getByteString(index);
- }
-
- public static final int WRITE_DISPOSITION_FIELD_NUMBER = 6;
- private int writeDisposition_;
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public int getWriteDispositionValue() {
- return writeDisposition_;
- }
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public com.google.cloud.bigquery.datatransfer.v1.WriteDisposition getWriteDisposition() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition result =
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition.valueOf(writeDisposition_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.WriteDisposition.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 (!getSqlBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sql_);
- }
- if (!getDestinationTableIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationTableId_);
- }
- for (int i = 0; i < tableDefs_.size(); i++) {
- output.writeMessage(3, tableDefs_.get(i));
- }
- for (int i = 0; i < userDefinedFunctions_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(
- output, 4, userDefinedFunctions_.getRaw(i));
- }
- if (writeDisposition_
- != com.google.cloud.bigquery.datatransfer.v1.WriteDisposition.WRITE_DISPOSITION_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(6, writeDisposition_);
- }
- if (!getDestinationTableDescriptionBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 10, destinationTableDescription_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getSqlBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sql_);
- }
- if (!getDestinationTableIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationTableId_);
- }
- for (int i = 0; i < tableDefs_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tableDefs_.get(i));
- }
- {
- int dataSize = 0;
- for (int i = 0; i < userDefinedFunctions_.size(); i++) {
- dataSize += computeStringSizeNoTag(userDefinedFunctions_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getUserDefinedFunctionsList().size();
- }
- if (writeDisposition_
- != com.google.cloud.bigquery.datatransfer.v1.WriteDisposition.WRITE_DISPOSITION_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, writeDisposition_);
- }
- if (!getDestinationTableDescriptionBytes().isEmpty()) {
- size +=
- com.google.protobuf.GeneratedMessageV3.computeStringSize(
- 10, destinationTableDescription_);
- }
- 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.bigquery.datatransfer.v1.ImportedDataInfo)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo other =
- (com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo) obj;
-
- if (!getSql().equals(other.getSql())) return false;
- if (!getDestinationTableId().equals(other.getDestinationTableId())) return false;
- if (!getDestinationTableDescription().equals(other.getDestinationTableDescription()))
- return false;
- if (!getTableDefsList().equals(other.getTableDefsList())) return false;
- if (!getUserDefinedFunctionsList().equals(other.getUserDefinedFunctionsList())) return false;
- if (writeDisposition_ != other.writeDisposition_) 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_FIELD_NUMBER;
- hash = (53 * hash) + getSql().hashCode();
- hash = (37 * hash) + DESTINATION_TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getDestinationTableId().hashCode();
- hash = (37 * hash) + DESTINATION_TABLE_DESCRIPTION_FIELD_NUMBER;
- hash = (53 * hash) + getDestinationTableDescription().hashCode();
- if (getTableDefsCount() > 0) {
- hash = (37 * hash) + TABLE_DEFS_FIELD_NUMBER;
- hash = (53 * hash) + getTableDefsList().hashCode();
- }
- if (getUserDefinedFunctionsCount() > 0) {
- hash = (37 * hash) + USER_DEFINED_FUNCTIONS_FIELD_NUMBER;
- hash = (53 * hash) + getUserDefinedFunctionsList().hashCode();
- }
- hash = (37 * hash) + WRITE_DISPOSITION_FIELD_NUMBER;
- hash = (53 * hash) + writeDisposition_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo 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.bigquery.datatransfer.v1.ImportedDataInfo parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo 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.bigquery.datatransfer.v1.ImportedDataInfo parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo 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.bigquery.datatransfer.v1.ImportedDataInfo parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo 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.bigquery.datatransfer.v1.ImportedDataInfo parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo 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.bigquery.datatransfer.v1.ImportedDataInfo 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 data which should be imported. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ImportedDataInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public java.lang.String getSql() {
- java.lang.Object ref = sql_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- sql_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public com.google.protobuf.ByteString getSqlBytes() {
- java.lang.Object ref = sql_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- sql_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public Builder setSql(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sql_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public Builder clearSql() {
-
- sql_ = getDefaultInstance().getSql();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- public Builder setSqlBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sql_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object destinationTableId_ = "";
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public java.lang.String getDestinationTableId() {
- java.lang.Object ref = destinationTableId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- destinationTableId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public com.google.protobuf.ByteString getDestinationTableIdBytes() {
- java.lang.Object ref = destinationTableId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- destinationTableId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public Builder setDestinationTableId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- destinationTableId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public Builder clearDestinationTableId() {
-
- destinationTableId_ = getDefaultInstance().getDestinationTableId();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- public Builder setDestinationTableIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- destinationTableId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object destinationTableDescription_ = "";
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public java.lang.String getDestinationTableDescription() {
- java.lang.Object ref = destinationTableDescription_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- destinationTableDescription_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public com.google.protobuf.ByteString getDestinationTableDescriptionBytes() {
- java.lang.Object ref = destinationTableDescription_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- destinationTableDescription_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public Builder setDestinationTableDescription(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- destinationTableDescription_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public Builder clearDestinationTableDescription() {
-
- destinationTableDescription_ = getDefaultInstance().getDestinationTableDescription();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- public Builder setDestinationTableDescriptionBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- destinationTableDescription_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition>
- tableDefs_ = java.util.Collections.emptyList();
-
- private void ensureTableDefsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
- tableDefs_ =
- new java.util.ArrayList<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition>(
- tableDefs_);
- bitField0_ |= 0x00000008;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>
- tableDefsBuilder_;
-
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public java.util.List<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition>
- getTableDefsList() {
- if (tableDefsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(tableDefs_);
- } else {
- return tableDefsBuilder_.getMessageList();
- }
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public int getTableDefsCount() {
- if (tableDefsBuilder_ == null) {
- return tableDefs_.size();
- } else {
- return tableDefsBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition getTableDefs(
- int index) {
- if (tableDefsBuilder_ == null) {
- return tableDefs_.get(index);
- } else {
- return tableDefsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder setTableDefs(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition value) {
- if (tableDefsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTableDefsIsMutable();
- tableDefs_.set(index, value);
- onChanged();
- } else {
- tableDefsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder setTableDefs(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder
- builderForValue) {
- if (tableDefsBuilder_ == null) {
- ensureTableDefsIsMutable();
- tableDefs_.set(index, builderForValue.build());
- onChanged();
- } else {
- tableDefsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder addTableDefs(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition value) {
- if (tableDefsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTableDefsIsMutable();
- tableDefs_.add(value);
- onChanged();
- } else {
- tableDefsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder addTableDefs(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition value) {
- if (tableDefsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTableDefsIsMutable();
- tableDefs_.add(index, value);
- onChanged();
- } else {
- tableDefsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder addTableDefs(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder
- builderForValue) {
- if (tableDefsBuilder_ == null) {
- ensureTableDefsIsMutable();
- tableDefs_.add(builderForValue.build());
- onChanged();
- } else {
- tableDefsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder addTableDefs(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder
- builderForValue) {
- if (tableDefsBuilder_ == null) {
- ensureTableDefsIsMutable();
- tableDefs_.add(index, builderForValue.build());
- onChanged();
- } else {
- tableDefsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder addAllTableDefs(
- java.lang.Iterable<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition>
- values) {
- if (tableDefsBuilder_ == null) {
- ensureTableDefsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableDefs_);
- onChanged();
- } else {
- tableDefsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder clearTableDefs() {
- if (tableDefsBuilder_ == null) {
- tableDefs_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- tableDefsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public Builder removeTableDefs(int index) {
- if (tableDefsBuilder_ == null) {
- ensureTableDefsIsMutable();
- tableDefs_.remove(index);
- onChanged();
- } else {
- tableDefsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder
- getTableDefsBuilder(int index) {
- return getTableDefsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder
- getTableDefsOrBuilder(int index) {
- if (tableDefsBuilder_ == null) {
- return tableDefs_.get(index);
- } else {
- return tableDefsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public java.util.List<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>
- getTableDefsOrBuilderList() {
- if (tableDefsBuilder_ != null) {
- return tableDefsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(tableDefs_);
- }
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder
- addTableDefsBuilder() {
- return getTableDefsFieldBuilder()
- .addBuilder(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .getDefaultInstance());
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder
- addTableDefsBuilder(int index) {
- return getTableDefsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition
- .getDefaultInstance());
- }
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- public java.util.List<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder>
- getTableDefsBuilderList() {
- return getTableDefsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>
- getTableDefsFieldBuilder() {
- if (tableDefsBuilder_ == null) {
- tableDefsBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo
- .TableDefinitionOrBuilder>(
- tableDefs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
- tableDefs_ = null;
- }
- return tableDefsBuilder_;
- }
-
- private com.google.protobuf.LazyStringList userDefinedFunctions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
-
- private void ensureUserDefinedFunctionsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- userDefinedFunctions_ = new com.google.protobuf.LazyStringArrayList(userDefinedFunctions_);
- bitField0_ |= 0x00000010;
- }
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public com.google.protobuf.ProtocolStringList getUserDefinedFunctionsList() {
- return userDefinedFunctions_.getUnmodifiableView();
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public int getUserDefinedFunctionsCount() {
- return userDefinedFunctions_.size();
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public java.lang.String getUserDefinedFunctions(int index) {
- return userDefinedFunctions_.get(index);
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public com.google.protobuf.ByteString getUserDefinedFunctionsBytes(int index) {
- return userDefinedFunctions_.getByteString(index);
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public Builder setUserDefinedFunctions(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureUserDefinedFunctionsIsMutable();
- userDefinedFunctions_.set(index, value);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public Builder addUserDefinedFunctions(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureUserDefinedFunctionsIsMutable();
- userDefinedFunctions_.add(value);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public Builder addAllUserDefinedFunctions(java.lang.Iterable- * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public Builder clearUserDefinedFunctions() {
- userDefinedFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- public Builder addUserDefinedFunctionsBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- ensureUserDefinedFunctionsIsMutable();
- userDefinedFunctions_.add(value);
- onChanged();
- return this;
- }
-
- private int writeDisposition_ = 0;
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public int getWriteDispositionValue() {
- return writeDisposition_;
- }
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public Builder setWriteDispositionValue(int value) {
- writeDisposition_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public com.google.cloud.bigquery.datatransfer.v1.WriteDisposition getWriteDisposition() {
- @SuppressWarnings("deprecation")
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition result =
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition.valueOf(writeDisposition_);
- return result == null
- ? com.google.cloud.bigquery.datatransfer.v1.WriteDisposition.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public Builder setWriteDisposition(
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- writeDisposition_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- public Builder clearWriteDisposition() {
-
- writeDisposition_ = 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.bigquery.datatransfer.v1.ImportedDataInfo)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ImportedDataInfo)
- private static final com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- java.lang.String getSql();
- /**
- *
- *
- * - * SQL query to run. When empty, API checks that there is only one - * table_def specified and loads this table. Only Standard SQL queries - * are accepted. Legacy SQL is not allowed. - *- * - *
string sql = 1;
- */
- com.google.protobuf.ByteString getSqlBytes();
-
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- java.lang.String getDestinationTableId();
- /**
- *
- *
- * - * Table where results should be written. - *- * - *
string destination_table_id = 2;
- */
- com.google.protobuf.ByteString getDestinationTableIdBytes();
-
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- java.lang.String getDestinationTableDescription();
- /**
- *
- *
- * - * The description of a destination table. This can be several sentences - * or paragraphs describing the table contents in detail. - *- * - *
string destination_table_description = 10;
- */
- com.google.protobuf.ByteString getDestinationTableDescriptionBytes();
-
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- java.util.List- * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition getTableDefs(
- int index);
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- int getTableDefsCount();
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- java.util.List<
- ? extends
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>
- getTableDefsOrBuilderList();
- /**
- *
- *
- * - * When used WITHOUT the "sql" parameter, describes the schema of the - * destination table. - * When used WITH the "sql" parameter, describes tables with data stored - * outside of BigQuery. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder
- getTableDefsOrBuilder(int index);
-
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- java.util.List- * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- int getUserDefinedFunctionsCount();
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- java.lang.String getUserDefinedFunctions(int index);
- /**
- *
- *
- * - * Inline code for User-defined function resources. - * Ignored when "sql" parameter is empty. - *- * - *
repeated string user_defined_functions = 4;
- */
- com.google.protobuf.ByteString getUserDefinedFunctionsBytes(int index);
-
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- int getWriteDispositionValue();
- /**
- *
- *
- * - * Specifies the action if the destination table already exists. - *- * - *
.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
- */
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition getWriteDisposition();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsRequest.java
deleted file mode 100644
index 97fe354e4df2..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsRequest.java
+++ /dev/null
@@ -1,914 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * Represents the request of the ListDataSourceDefinitions method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest} - */ -public final class ListDataSourceDefinitionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest) - ListDataSourceDefinitionsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDataSourceDefinitionsRequest.newBuilder() to construct. - private ListDataSourceDefinitionsRequest( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private ListDataSourceDefinitionsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListDataSourceDefinitionsRequest( - 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(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest.Builder - .class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
- * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object pageToken_;
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- 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 PAGE_SIZE_FIELD_NUMBER = 3;
- private int pageSize_;
- /**
- *
- *
- * - * Page size. The default page size is the maximum value of 1000 results. - *- * - *
int32 page_size = 3;
- */
- public int getPageSize() {
- return pageSize_;
- }
-
- 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 (!getParentBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
- }
- if (!getPageTokenBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_);
- }
- if (pageSize_ != 0) {
- output.writeInt32(3, pageSize_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getParentBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
- }
- if (!getPageTokenBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_);
- }
- if (pageSize_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
- }
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest) obj;
-
- if (!getParent().equals(other.getParent())) return false;
- if (!getPageToken().equals(other.getPageToken())) return false;
- if (getPageSize() != other.getPageSize()) 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_TOKEN_FIELD_NUMBER;
- hash = (53 * hash) + getPageToken().hashCode();
- hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
- hash = (53 * hash) + getPageSize();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest 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 request of the ListDataSourceDefinitions method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- public Builder setParent(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- parent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- public Builder clearParent() {
-
- parent_ = getDefaultInstance().getParent();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- public Builder setParentBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- parent_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object pageToken_ = "";
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- public Builder setPageToken(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- pageToken_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- public Builder clearPageToken() {
-
- pageToken_ = getDefaultInstance().getPageToken();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- pageToken_ = value;
- onChanged();
- return this;
- }
-
- private int pageSize_;
- /**
- *
- *
- * - * Page size. The default page size is the maximum value of 1000 results. - *- * - *
int32 page_size = 3;
- */
- public int getPageSize() {
- return pageSize_;
- }
- /**
- *
- *
- * - * Page size. The default page size is the maximum value of 1000 results. - *- * - *
int32 page_size = 3;
- */
- public Builder setPageSize(int value) {
-
- pageSize_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Page size. The default page size is the maximum value of 1000 results. - *- * - *
int32 page_size = 3;
- */
- public Builder clearPageSize() {
-
- pageSize_ = 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- java.lang.String getParent();
- /**
- *
- *
- * - * The BigQuery project id for which data sources should be returned. - * Must be in the form: `projects/{project_id}/locations/{location_id}` - *- * - *
string parent = 1;
- */
- com.google.protobuf.ByteString getParentBytes();
-
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- java.lang.String getPageToken();
- /**
- *
- *
- * - * Pagination token, which can be used to request a specific page - * of `ListDataSourceDefinitionsRequest` list results. For multiple-page - * results, `ListDataSourceDefinitionsResponse` outputs a `next_page` token, - * which can be used as the `page_token` value to request the next page of - * the list results. - *- * - *
string page_token = 2;
- */
- com.google.protobuf.ByteString getPageTokenBytes();
-
- /**
- *
- *
- * - * Page size. The default page size is the maximum value of 1000 results. - *- * - *
int32 page_size = 3;
- */
- int getPageSize();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsResponse.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsResponse.java
deleted file mode 100644
index 2c07b2cb9743..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourceDefinitionsResponse.java
+++ /dev/null
@@ -1,1227 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
-
-package com.google.cloud.bigquery.datatransfer.v1;
-
-/**
- *
- *
- * - * Returns a list of supported data source definitions. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse} - */ -public final class ListDataSourceDefinitionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse) - ListDataSourceDefinitionsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDataSourceDefinitionsResponse.newBuilder() to construct. - private ListDataSourceDefinitionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private ListDataSourceDefinitionsResponse() { - dataSourceDefinitions_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListDataSourceDefinitionsResponse( - 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)) { - dataSourceDefinitions_ = - new java.util.ArrayList< - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition>(); - mutable_bitField0_ |= 0x00000001; - } - dataSourceDefinitions_.add( - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.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 (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dataSourceDefinitions_ = java.util.Collections.unmodifiableList(dataSourceDefinitions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourceDefinitionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse.class, - com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse.Builder - .class); - } - - private int bitField0_; - public static final int DATA_SOURCE_DEFINITIONS_FIELD_NUMBER = 1; - private java.util.List
- * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public java.util.List- * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>
- getDataSourceDefinitionsOrBuilderList() {
- return dataSourceDefinitions_;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public int getDataSourceDefinitionsCount() {
- return dataSourceDefinitions_.size();
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinitions(
- int index) {
- return dataSourceDefinitions_.get(index);
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionsOrBuilder(int index) {
- return dataSourceDefinitions_.get(index);
- }
-
- public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
- private volatile java.lang.Object nextPageToken_;
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- 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 < dataSourceDefinitions_.size(); i++) {
- output.writeMessage(1, dataSourceDefinitions_.get(i));
- }
- if (!getNextPageTokenBytes().isEmpty()) {
- 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 < dataSourceDefinitions_.size(); i++) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 1, dataSourceDefinitions_.get(i));
- }
- if (!getNextPageTokenBytes().isEmpty()) {
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse other =
- (com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse) obj;
-
- if (!getDataSourceDefinitionsList().equals(other.getDataSourceDefinitionsList())) 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 (getDataSourceDefinitionsCount() > 0) {
- hash = (37 * hash) + DATA_SOURCE_DEFINITIONS_FIELD_NUMBER;
- hash = (53 * hash) + getDataSourceDefinitionsList().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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse 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;
- }
- /**
- *
- *
- * - * Returns a list of supported data source definitions. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public java.util.List- * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public int getDataSourceDefinitionsCount() {
- if (dataSourceDefinitionsBuilder_ == null) {
- return dataSourceDefinitions_.size();
- } else {
- return dataSourceDefinitionsBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinitions(
- int index) {
- if (dataSourceDefinitionsBuilder_ == null) {
- return dataSourceDefinitions_.get(index);
- } else {
- return dataSourceDefinitionsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder setDataSourceDefinitions(
- int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.set(index, value);
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder setDataSourceDefinitions(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder builderForValue) {
- if (dataSourceDefinitionsBuilder_ == null) {
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.set(index, builderForValue.build());
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder addDataSourceDefinitions(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.add(value);
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder addDataSourceDefinitions(
- int index, com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.add(index, value);
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder addDataSourceDefinitions(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder builderForValue) {
- if (dataSourceDefinitionsBuilder_ == null) {
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.add(builderForValue.build());
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder addDataSourceDefinitions(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder builderForValue) {
- if (dataSourceDefinitionsBuilder_ == null) {
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.add(index, builderForValue.build());
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder addAllDataSourceDefinitions(
- java.lang.Iterable extends com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition>
- values) {
- if (dataSourceDefinitionsBuilder_ == null) {
- ensureDataSourceDefinitionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceDefinitions_);
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder clearDataSourceDefinitions() {
- if (dataSourceDefinitionsBuilder_ == null) {
- dataSourceDefinitions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public Builder removeDataSourceDefinitions(int index) {
- if (dataSourceDefinitionsBuilder_ == null) {
- ensureDataSourceDefinitionsIsMutable();
- dataSourceDefinitions_.remove(index);
- onChanged();
- } else {
- dataSourceDefinitionsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder
- getDataSourceDefinitionsBuilder(int index) {
- return getDataSourceDefinitionsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionsOrBuilder(int index) {
- if (dataSourceDefinitionsBuilder_ == null) {
- return dataSourceDefinitions_.get(index);
- } else {
- return dataSourceDefinitionsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>
- getDataSourceDefinitionsOrBuilderList() {
- if (dataSourceDefinitionsBuilder_ != null) {
- return dataSourceDefinitionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(dataSourceDefinitions_);
- }
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder
- addDataSourceDefinitionsBuilder() {
- return getDataSourceDefinitionsFieldBuilder()
- .addBuilder(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance());
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder
- addDataSourceDefinitionsBuilder(int index) {
- return getDataSourceDefinitionsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance());
- }
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- public java.util.List- * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- public Builder setNextPageToken(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- nextPageToken_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- public Builder clearNextPageToken() {
-
- nextPageToken_ = getDefaultInstance().getNextPageToken();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- 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.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse)
- private static final com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourceDefinitionsResponse
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- java.util.List- * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinitions(
- int index);
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- int getDataSourceDefinitionsCount();
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- java.util.List extends com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>
- getDataSourceDefinitionsOrBuilderList();
- /**
- *
- *
- * - * List of supported data source definitions. - *- * - *
- * repeated .google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definitions = 1;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionsOrBuilder(int index);
-
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- java.lang.String getNextPageToken();
- /**
- *
- *
- * - * Output only. The next-pagination token. For multiple-page list results, - * this token can be used as the - * `ListDataSourceDefinitionsRequest.page_token` - * to request the next page of the list results. - *- * - *
string next_page_token = 2;
- */
- com.google.protobuf.ByteString getNextPageTokenBytes();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationDataSourceName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationDataSourceName.java
deleted file mode 100644
index b49ac613b194..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationDataSourceName.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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.bigquery.datatransfer.v1;
-
-import com.google.api.pathtemplate.PathTemplate;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableMap;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class LocationDataSourceName extends DataSourceName {
-
- private static final PathTemplate PATH_TEMPLATE =
- PathTemplate.createWithoutUrlEncoding(
- "projects/{project}/locations/{location}/dataSources/{data_source}");
-
- private volatile Map- * A request to add transfer status messages to the run. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest} - */ -public final class LogTransferRunMessagesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest) - LogTransferRunMessagesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LogTransferRunMessagesRequest.newBuilder() to construct. - private LogTransferRunMessagesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private LogTransferRunMessagesRequest() { - name_ = ""; - transferMessages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private LogTransferRunMessagesRequest( - 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: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - transferMessages_ = - new java.util.ArrayList< - com.google.cloud.bigquery.datatransfer.v1.TransferMessage>(); - mutable_bitField0_ |= 0x00000002; - } - transferMessages_.add( - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.TransferMessage.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - transferMessages_ = java.util.Collections.unmodifiableList(transferMessages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_LogTransferRunMessagesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest.class, - com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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 TRANSFER_MESSAGES_FIELD_NUMBER = 2;
- private java.util.List- * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public java.util.List- * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>
- getTransferMessagesOrBuilderList() {
- return transferMessages_;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public int getTransferMessagesCount() {
- return transferMessages_.size();
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index) {
- return transferMessages_.get(index);
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder
- getTransferMessagesOrBuilder(int index) {
- return transferMessages_.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 (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- for (int i = 0; i < transferMessages_.size(); i++) {
- output.writeMessage(2, transferMessages_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- for (int i = 0; i < transferMessages_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, transferMessages_.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.bigquery.datatransfer.v1.LogTransferRunMessagesRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest) obj;
-
- if (!getName().equals(other.getName())) return false;
- if (!getTransferMessagesList().equals(other.getTransferMessagesList())) 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 (getTransferMessagesCount() > 0) {
- hash = (37 * hash) + TRANSFER_MESSAGES_FIELD_NUMBER;
- hash = (53 * hash) + getTransferMessagesList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest 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.bigquery.datatransfer.v1.LogTransferRunMessagesRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest 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.bigquery.datatransfer.v1.LogTransferRunMessagesRequest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest 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.bigquery.datatransfer.v1.LogTransferRunMessagesRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest
- 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.bigquery.datatransfer.v1.LogTransferRunMessagesRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest 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.bigquery.datatransfer.v1.LogTransferRunMessagesRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- * - * A request to add transfer status messages to the run. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.LogTransferRunMessagesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder setNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List- * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public java.util.List- * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public int getTransferMessagesCount() {
- if (transferMessagesBuilder_ == null) {
- return transferMessages_.size();
- } else {
- return transferMessagesBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(
- int index) {
- if (transferMessagesBuilder_ == null) {
- return transferMessages_.get(index);
- } else {
- return transferMessagesBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder setTransferMessages(
- int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) {
- if (transferMessagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTransferMessagesIsMutable();
- transferMessages_.set(index, value);
- onChanged();
- } else {
- transferMessagesBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder setTransferMessages(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) {
- if (transferMessagesBuilder_ == null) {
- ensureTransferMessagesIsMutable();
- transferMessages_.set(index, builderForValue.build());
- onChanged();
- } else {
- transferMessagesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder addTransferMessages(
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) {
- if (transferMessagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTransferMessagesIsMutable();
- transferMessages_.add(value);
- onChanged();
- } else {
- transferMessagesBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder addTransferMessages(
- int index, com.google.cloud.bigquery.datatransfer.v1.TransferMessage value) {
- if (transferMessagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTransferMessagesIsMutable();
- transferMessages_.add(index, value);
- onChanged();
- } else {
- transferMessagesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder addTransferMessages(
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) {
- if (transferMessagesBuilder_ == null) {
- ensureTransferMessagesIsMutable();
- transferMessages_.add(builderForValue.build());
- onChanged();
- } else {
- transferMessagesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder addTransferMessages(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder builderForValue) {
- if (transferMessagesBuilder_ == null) {
- ensureTransferMessagesIsMutable();
- transferMessages_.add(index, builderForValue.build());
- onChanged();
- } else {
- transferMessagesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder addAllTransferMessages(
- java.lang.Iterable extends com.google.cloud.bigquery.datatransfer.v1.TransferMessage>
- values) {
- if (transferMessagesBuilder_ == null) {
- ensureTransferMessagesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferMessages_);
- onChanged();
- } else {
- transferMessagesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder clearTransferMessages() {
- if (transferMessagesBuilder_ == null) {
- transferMessages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- transferMessagesBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public Builder removeTransferMessages(int index) {
- if (transferMessagesBuilder_ == null) {
- ensureTransferMessagesIsMutable();
- transferMessages_.remove(index);
- onChanged();
- } else {
- transferMessagesBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder
- getTransferMessagesBuilder(int index) {
- return getTransferMessagesFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder
- getTransferMessagesOrBuilder(int index) {
- if (transferMessagesBuilder_ == null) {
- return transferMessages_.get(index);
- } else {
- return transferMessagesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>
- getTransferMessagesOrBuilderList() {
- if (transferMessagesBuilder_ != null) {
- return transferMessagesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(transferMessages_);
- }
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder
- addTransferMessagesBuilder() {
- return getTransferMessagesFieldBuilder()
- .addBuilder(
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance());
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.Builder
- addTransferMessagesBuilder(int index) {
- return getTransferMessagesFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance());
- }
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- public java.util.List- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- com.google.protobuf.ByteString getNameBytes();
-
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- java.util.List- * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.TransferMessage getTransferMessages(int index);
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- int getTransferMessagesCount();
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- java.util.List extends com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder>
- getTransferMessagesOrBuilderList();
- /**
- *
- *
- * - * Messages to append. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.TransferMessageOrBuilder getTransferMessagesOrBuilder(
- int index);
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectDataSourceName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectDataSourceName.java
deleted file mode 100644
index 716b5f7b7bd2..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectDataSourceName.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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.bigquery.datatransfer.v1;
-
-import com.google.api.pathtemplate.PathTemplate;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableMap;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class ProjectDataSourceName extends DataSourceName {
-
- private static final PathTemplate PATH_TEMPLATE =
- PathTemplate.createWithoutUrlEncoding("projects/{project}/dataSources/{data_source}");
-
- private volatile Map- * A request to start and monitor a BigQuery load job. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest} - */ -public final class StartBigQueryJobsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest) - StartBigQueryJobsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StartBigQueryJobsRequest.newBuilder() to construct. - private StartBigQueryJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private StartBigQueryJobsRequest() { - name_ = ""; - importedData_ = java.util.Collections.emptyList(); - userCredentials_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private StartBigQueryJobsRequest( - 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: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - importedData_ = - new java.util.ArrayList< - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo>(); - mutable_bitField0_ |= 0x00000002; - } - importedData_.add( - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.parser(), - extensionRegistry)); - break; - } - case 26: - { - userCredentials_ = input.readBytes(); - break; - } - case 64: - { - maxParallelism_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - importedData_ = java.util.Collections.unmodifiableList(importedData_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_StartBigQueryJobsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest.class, - com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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 IMPORTED_DATA_FIELD_NUMBER = 2;
- private java.util.List- * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public java.util.List- * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfoOrBuilder>
- getImportedDataOrBuilderList() {
- return importedData_;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public int getImportedDataCount() {
- return importedData_.size();
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo getImportedData(int index) {
- return importedData_.get(index);
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfoOrBuilder
- getImportedDataOrBuilder(int index) {
- return importedData_.get(index);
- }
-
- public static final int USER_CREDENTIALS_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString userCredentials_;
- /**
- *
- *
- * - * User credentials which should be used to start/monitor - * BigQuery jobs. If not specified, then jobs - * are started using data source service account credentials. - * This may be OAuth token or JWT token. - *- * - *
bytes user_credentials = 3;
- */
- public com.google.protobuf.ByteString getUserCredentials() {
- return userCredentials_;
- }
-
- public static final int MAX_PARALLELISM_FIELD_NUMBER = 8;
- private int maxParallelism_;
- /**
- *
- *
- * - * The number of BQ Jobs that can run in parallel. - *- * - *
int32 max_parallelism = 8;
- */
- public int getMaxParallelism() {
- return maxParallelism_;
- }
-
- 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 (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- for (int i = 0; i < importedData_.size(); i++) {
- output.writeMessage(2, importedData_.get(i));
- }
- if (!userCredentials_.isEmpty()) {
- output.writeBytes(3, userCredentials_);
- }
- if (maxParallelism_ != 0) {
- output.writeInt32(8, maxParallelism_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- for (int i = 0; i < importedData_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, importedData_.get(i));
- }
- if (!userCredentials_.isEmpty()) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, userCredentials_);
- }
- if (maxParallelism_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, maxParallelism_);
- }
- 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest) obj;
-
- if (!getName().equals(other.getName())) return false;
- if (!getImportedDataList().equals(other.getImportedDataList())) return false;
- if (!getUserCredentials().equals(other.getUserCredentials())) return false;
- if (getMaxParallelism() != other.getMaxParallelism()) 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 (getImportedDataCount() > 0) {
- hash = (37 * hash) + IMPORTED_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getImportedDataList().hashCode();
- }
- hash = (37 * hash) + USER_CREDENTIALS_FIELD_NUMBER;
- hash = (53 * hash) + getUserCredentials().hashCode();
- hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER;
- hash = (53 * hash) + getMaxParallelism();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest
- 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- * - * A request to start and monitor a BigQuery load job. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- 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;
- }
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder setName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- public Builder setNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List- * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public java.util.List- * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public int getImportedDataCount() {
- if (importedDataBuilder_ == null) {
- return importedData_.size();
- } else {
- return importedDataBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo getImportedData(int index) {
- if (importedDataBuilder_ == null) {
- return importedData_.get(index);
- } else {
- return importedDataBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder setImportedData(
- int index, com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo value) {
- if (importedDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureImportedDataIsMutable();
- importedData_.set(index, value);
- onChanged();
- } else {
- importedDataBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder setImportedData(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder builderForValue) {
- if (importedDataBuilder_ == null) {
- ensureImportedDataIsMutable();
- importedData_.set(index, builderForValue.build());
- onChanged();
- } else {
- importedDataBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder addImportedData(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo value) {
- if (importedDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureImportedDataIsMutable();
- importedData_.add(value);
- onChanged();
- } else {
- importedDataBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder addImportedData(
- int index, com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo value) {
- if (importedDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureImportedDataIsMutable();
- importedData_.add(index, value);
- onChanged();
- } else {
- importedDataBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder addImportedData(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder builderForValue) {
- if (importedDataBuilder_ == null) {
- ensureImportedDataIsMutable();
- importedData_.add(builderForValue.build());
- onChanged();
- } else {
- importedDataBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder addImportedData(
- int index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder builderForValue) {
- if (importedDataBuilder_ == null) {
- ensureImportedDataIsMutable();
- importedData_.add(index, builderForValue.build());
- onChanged();
- } else {
- importedDataBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder addAllImportedData(
- java.lang.Iterable extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo>
- values) {
- if (importedDataBuilder_ == null) {
- ensureImportedDataIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, importedData_);
- onChanged();
- } else {
- importedDataBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder clearImportedData() {
- if (importedDataBuilder_ == null) {
- importedData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- importedDataBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public Builder removeImportedData(int index) {
- if (importedDataBuilder_ == null) {
- ensureImportedDataIsMutable();
- importedData_.remove(index);
- onChanged();
- } else {
- importedDataBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder
- getImportedDataBuilder(int index) {
- return getImportedDataFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfoOrBuilder
- getImportedDataOrBuilder(int index) {
- if (importedDataBuilder_ == null) {
- return importedData_.get(index);
- } else {
- return importedDataBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfoOrBuilder>
- getImportedDataOrBuilderList() {
- if (importedDataBuilder_ != null) {
- return importedDataBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(importedData_);
- }
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder
- addImportedDataBuilder() {
- return getImportedDataFieldBuilder()
- .addBuilder(
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.getDefaultInstance());
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Builder
- addImportedDataBuilder(int index) {
- return getImportedDataFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.getDefaultInstance());
- }
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- public java.util.List- * User credentials which should be used to start/monitor - * BigQuery jobs. If not specified, then jobs - * are started using data source service account credentials. - * This may be OAuth token or JWT token. - *- * - *
bytes user_credentials = 3;
- */
- public com.google.protobuf.ByteString getUserCredentials() {
- return userCredentials_;
- }
- /**
- *
- *
- * - * User credentials which should be used to start/monitor - * BigQuery jobs. If not specified, then jobs - * are started using data source service account credentials. - * This may be OAuth token or JWT token. - *- * - *
bytes user_credentials = 3;
- */
- public Builder setUserCredentials(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- userCredentials_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * User credentials which should be used to start/monitor - * BigQuery jobs. If not specified, then jobs - * are started using data source service account credentials. - * This may be OAuth token or JWT token. - *- * - *
bytes user_credentials = 3;
- */
- public Builder clearUserCredentials() {
-
- userCredentials_ = getDefaultInstance().getUserCredentials();
- onChanged();
- return this;
- }
-
- private int maxParallelism_;
- /**
- *
- *
- * - * The number of BQ Jobs that can run in parallel. - *- * - *
int32 max_parallelism = 8;
- */
- public int getMaxParallelism() {
- return maxParallelism_;
- }
- /**
- *
- *
- * - * The number of BQ Jobs that can run in parallel. - *- * - *
int32 max_parallelism = 8;
- */
- public Builder setMaxParallelism(int value) {
-
- maxParallelism_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The number of BQ Jobs that can run in parallel. - *- * - *
int32 max_parallelism = 8;
- */
- public Builder clearMaxParallelism() {
-
- maxParallelism_ = 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.bigquery.datatransfer.v1.StartBigQueryJobsRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.StartBigQueryJobsRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Name of the resource in the form: - * "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}" - *- * - *
string name = 1;
- */
- com.google.protobuf.ByteString getNameBytes();
-
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- java.util.List- * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo getImportedData(int index);
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- int getImportedDataCount();
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- java.util.List extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfoOrBuilder>
- getImportedDataOrBuilderList();
- /**
- *
- *
- * - * Import jobs which should be started and monitored. - *- * - *
repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo imported_data = 2;
- *
- */
- com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfoOrBuilder getImportedDataOrBuilder(
- int index);
-
- /**
- *
- *
- * - * User credentials which should be used to start/monitor - * BigQuery jobs. If not specified, then jobs - * are started using data source service account credentials. - * This may be OAuth token or JWT token. - *- * - *
bytes user_credentials = 3;
- */
- com.google.protobuf.ByteString getUserCredentials();
-
- /**
- *
- *
- * - * The number of BQ Jobs that can run in parallel. - *- * - *
int32 max_parallelism = 8;
- */
- int getMaxParallelism();
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigNames.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigNames.java
deleted file mode 100644
index 8209054377fd..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigNames.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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.bigquery.datatransfer.v1;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class TransferConfigNames {
- private TransferConfigNames() {}
-
- public static TransferConfigName parse(String resourceNameString) {
- if (ProjectTransferConfigName.isParsableFrom(resourceNameString)) {
- return ProjectTransferConfigName.parse(resourceNameString);
- }
- if (LocationTransferConfigName.isParsableFrom(resourceNameString)) {
- return LocationTransferConfigName.parse(resourceNameString);
- }
- return UntypedTransferConfigName.parse(resourceNameString);
- }
-}
diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UntypedDataSourceName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UntypedDataSourceName.java
deleted file mode 100644
index ae987730ab49..000000000000
--- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UntypedDataSourceName.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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.bigquery.datatransfer.v1;
-
-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;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class UntypedDataSourceName extends DataSourceName {
-
- private final String rawValue;
- private Map- * Represents the request of the UpdateDataSourceDefinition method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest} - */ -public final class UpdateDataSourceDefinitionRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest) - UpdateDataSourceDefinitionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateDataSourceDefinitionRequest.newBuilder() to construct. - private UpdateDataSourceDefinitionRequest( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private UpdateDataSourceDefinitionRequest() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateDataSourceDefinitionRequest( - 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: - { - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder subBuilder = - null; - if (dataSourceDefinition_ != null) { - subBuilder = dataSourceDefinition_.toBuilder(); - } - dataSourceDefinition_ = - input.readMessage( - com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataSourceDefinition_); - dataSourceDefinition_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.datatransfer.v1.DataSourceProto - .internal_static_google_cloud_bigquery_datatransfer_v1_UpdateDataSourceDefinitionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest.class, - com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest.Builder - .class); - } - - public static final int DATA_SOURCE_DEFINITION_FIELD_NUMBER = 1; - private com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition dataSourceDefinition_; - /** - * - * - *
- * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public boolean hasDataSourceDefinition() {
- return dataSourceDefinition_ != null;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition getDataSourceDefinition() {
- return dataSourceDefinition_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance()
- : dataSourceDefinition_;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionOrBuilder() {
- return getDataSourceDefinition();
- }
-
- public static final int UPDATE_MASK_FIELD_NUMBER = 2;
- private com.google.protobuf.FieldMask updateMask_;
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public boolean hasUpdateMask() {
- return updateMask_ != null;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public com.google.protobuf.FieldMask getUpdateMask() {
- return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- return getUpdateMask();
- }
-
- 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 (dataSourceDefinition_ != null) {
- output.writeMessage(1, getDataSourceDefinition());
- }
- if (updateMask_ != null) {
- output.writeMessage(2, getUpdateMask());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (dataSourceDefinition_ != null) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataSourceDefinition());
- }
- if (updateMask_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
- }
- 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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest other =
- (com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest) obj;
-
- if (hasDataSourceDefinition() != other.hasDataSourceDefinition()) return false;
- if (hasDataSourceDefinition()) {
- if (!getDataSourceDefinition().equals(other.getDataSourceDefinition())) return false;
- }
- if (hasUpdateMask() != other.hasUpdateMask()) return false;
- if (hasUpdateMask()) {
- if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDataSourceDefinition()) {
- hash = (37 * hash) + DATA_SOURCE_DEFINITION_FIELD_NUMBER;
- hash = (53 * hash) + getDataSourceDefinition().hashCode();
- }
- if (hasUpdateMask()) {
- hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
- hash = (53 * hash) + getUpdateMask().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- 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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest 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 request of the UpdateDataSourceDefinition method. - *- * - * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public boolean hasDataSourceDefinition() {
- return dataSourceDefinitionBuilder_ != null || dataSourceDefinition_ != null;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition
- getDataSourceDefinition() {
- if (dataSourceDefinitionBuilder_ == null) {
- return dataSourceDefinition_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance()
- : dataSourceDefinition_;
- } else {
- return dataSourceDefinitionBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public Builder setDataSourceDefinition(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataSourceDefinition_ = value;
- onChanged();
- } else {
- dataSourceDefinitionBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public Builder setDataSourceDefinition(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder builderForValue) {
- if (dataSourceDefinitionBuilder_ == null) {
- dataSourceDefinition_ = builderForValue.build();
- onChanged();
- } else {
- dataSourceDefinitionBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public Builder mergeDataSourceDefinition(
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition value) {
- if (dataSourceDefinitionBuilder_ == null) {
- if (dataSourceDefinition_ != null) {
- dataSourceDefinition_ =
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.newBuilder(
- dataSourceDefinition_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- dataSourceDefinition_ = value;
- }
- onChanged();
- } else {
- dataSourceDefinitionBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public Builder clearDataSourceDefinition() {
- if (dataSourceDefinitionBuilder_ == null) {
- dataSourceDefinition_ = null;
- onChanged();
- } else {
- dataSourceDefinition_ = null;
- dataSourceDefinitionBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder
- getDataSourceDefinitionBuilder() {
-
- onChanged();
- return getDataSourceDefinitionFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- public com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder
- getDataSourceDefinitionOrBuilder() {
- if (dataSourceDefinitionBuilder_ != null) {
- return dataSourceDefinitionBuilder_.getMessageOrBuilder();
- } else {
- return dataSourceDefinition_ == null
- ? com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.getDefaultInstance()
- : dataSourceDefinition_;
- }
- }
- /**
- *
- *
- * - * Data source definition. - *- * - *
.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>
- getDataSourceDefinitionFieldBuilder() {
- if (dataSourceDefinitionBuilder_ == null) {
- dataSourceDefinitionBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition.Builder,
- com.google.cloud.bigquery.datatransfer.v1.DataSourceDefinitionOrBuilder>(
- getDataSourceDefinition(), getParentForChildren(), isClean());
- dataSourceDefinition_ = null;
- }
- return dataSourceDefinitionBuilder_;
- }
-
- 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_;
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public boolean hasUpdateMask() {
- return updateMaskBuilder_ != null || updateMask_ != null;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public com.google.protobuf.FieldMask getUpdateMask() {
- if (updateMaskBuilder_ == null) {
- return updateMask_ == null
- ? com.google.protobuf.FieldMask.getDefaultInstance()
- : updateMask_;
- } else {
- return updateMaskBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- 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;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
- if (updateMaskBuilder_ == null) {
- updateMask_ = builderForValue.build();
- onChanged();
- } else {
- updateMaskBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- 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;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public Builder clearUpdateMask() {
- if (updateMaskBuilder_ == null) {
- updateMask_ = null;
- onChanged();
- } else {
- updateMask_ = null;
- updateMaskBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
- onChanged();
- return getUpdateMaskFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
- if (updateMaskBuilder_ != null) {
- return updateMaskBuilder_.getMessageOrBuilder();
- } else {
- return updateMask_ == null
- ? com.google.protobuf.FieldMask.getDefaultInstance()
- : updateMask_;
- }
- }
- /**
- *
- *
- * - * Update field mask. - *- * - *
.google.protobuf.FieldMask update_mask = 2;
- */
- 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_;
- }
-
- @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.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest)
- private static final com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE =
- new com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest();
- }
-
- public static com.google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser