diff --git a/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java index 29b3c92..a932c7b 100644 --- a/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java @@ -518,7 +518,7 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( * while (true) { * ListMigrationWorkflowsResponse response = * migrationServiceClient.listMigrationWorkflowsCallable().call(request); - * for (MigrationWorkflow element : response.getResponsesList()) { + * for (MigrationWorkflow element : response.getMigrationWorkflowsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1012,7 +1012,7 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( * while (true) { * ListMigrationSubtasksResponse response = * migrationServiceClient.listMigrationSubtasksCallable().call(request); - * for (MigrationSubtask element : response.getResponsesList()) { + * for (MigrationSubtask element : response.getMigrationSubtasksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java index f1496f5..4ece8d2 100644 --- a/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java @@ -520,7 +520,7 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( * while (true) { * ListMigrationWorkflowsResponse response = * migrationServiceClient.listMigrationWorkflowsCallable().call(request); - * for (MigrationWorkflow element : response.getResponsesList()) { + * for (MigrationWorkflow element : response.getMigrationWorkflowsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1014,7 +1014,7 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( * while (true) { * ListMigrationSubtasksResponse response = * migrationServiceClient.listMigrationSubtasksCallable().call(request); - * for (MigrationSubtask element : response.getResponsesList()) { + * for (MigrationSubtask element : response.getMigrationSubtasksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java index 86d2ca6..899116f 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java @@ -268,6 +268,26 @@ private Dialect( dialectValueCase_ = 10; break; } + case 90: + { + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder subBuilder = null; + if (dialectValueCase_ == 11) { + subBuilder = + ((com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_) + .toBuilder(); + } + dialectValue_ = + input.readMessage( + com.google.cloud.bigquery.migration.v2.SQLServerDialect.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); + dialectValue_ = subBuilder.buildPartial(); + } + dialectValueCase_ = 11; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -321,6 +341,7 @@ public enum DialectValueCase NETEZZA_DIALECT(8), AZURE_SYNAPSE_DIALECT(9), VERTICA_DIALECT(10), + SQL_SERVER_DIALECT(11), DIALECTVALUE_NOT_SET(0); private final int value; @@ -359,6 +380,8 @@ public static DialectValueCase forNumber(int value) { return AZURE_SYNAPSE_DIALECT; case 10: return VERTICA_DIALECT; + case 11: + return SQL_SERVER_DIALECT; case 0: return DIALECTVALUE_NOT_SET; default: @@ -893,6 +916,58 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialect getVerticaDialect() return com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance(); } + public static final int SQL_SERVER_DIALECT_FIELD_NUMBER = 11; + /** + * + * + *
+   * The SQL Server dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * + * @return Whether the sqlServerDialect field is set. + */ + @java.lang.Override + public boolean hasSqlServerDialect() { + return dialectValueCase_ == 11; + } + /** + * + * + *
+   * The SQL Server dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * + * @return The sqlServerDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDialect() { + if (dialectValueCase_ == 11) { + return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + /** + * + * + *
+   * The SQL Server dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder + getSqlServerDialectOrBuilder() { + if (dialectValueCase_ == 11) { + return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -944,6 +1019,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 10, (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_); } + if (dialectValueCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); + } unknownFields.writeTo(output); } @@ -1003,6 +1082,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_); } + if (dialectValueCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1051,6 +1135,9 @@ public boolean equals(final java.lang.Object obj) { case 10: if (!getVerticaDialect().equals(other.getVerticaDialect())) return false; break; + case 11: + if (!getSqlServerDialect().equals(other.getSqlServerDialect())) return false; + break; case 0: default: } @@ -1106,6 +1193,10 @@ public int hashCode() { hash = (37 * hash) + VERTICA_DIALECT_FIELD_NUMBER; hash = (53 * hash) + getVerticaDialect().hashCode(); break; + case 11: + hash = (37 * hash) + SQL_SERVER_DIALECT_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerDialect().hashCode(); + break; case 0: default: } @@ -1353,6 +1444,13 @@ public com.google.cloud.bigquery.migration.v2.Dialect buildPartial() { result.dialectValue_ = verticaDialectBuilder_.build(); } } + if (dialectValueCase_ == 11) { + if (sqlServerDialectBuilder_ == null) { + result.dialectValue_ = dialectValue_; + } else { + result.dialectValue_ = sqlServerDialectBuilder_.build(); + } + } result.dialectValueCase_ = dialectValueCase_; onBuilt(); return result; @@ -1454,6 +1552,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.Dialect other) { mergeVerticaDialect(other.getVerticaDialect()); break; } + case SQL_SERVER_DIALECT: + { + mergeSqlServerDialect(other.getSqlServerDialect()); + break; + } case DIALECTVALUE_NOT_SET: { break; @@ -3662,6 +3765,222 @@ public Builder clearVerticaDialect() { return verticaDialectBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLServerDialect, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder> + sqlServerDialectBuilder_; + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * + * @return Whether the sqlServerDialect field is set. + */ + @java.lang.Override + public boolean hasSqlServerDialect() { + return dialectValueCase_ == 11; + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * + * @return The sqlServerDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDialect() { + if (sqlServerDialectBuilder_ == null) { + if (dialectValueCase_ == 11) { + return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } else { + if (dialectValueCase_ == 11) { + return sqlServerDialectBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + public Builder setSqlServerDialect( + com.google.cloud.bigquery.migration.v2.SQLServerDialect value) { + if (sqlServerDialectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialectValue_ = value; + onChanged(); + } else { + sqlServerDialectBuilder_.setMessage(value); + } + dialectValueCase_ = 11; + return this; + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + public Builder setSqlServerDialect( + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder builderForValue) { + if (sqlServerDialectBuilder_ == null) { + dialectValue_ = builderForValue.build(); + onChanged(); + } else { + sqlServerDialectBuilder_.setMessage(builderForValue.build()); + } + dialectValueCase_ = 11; + return this; + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + public Builder mergeSqlServerDialect( + com.google.cloud.bigquery.migration.v2.SQLServerDialect value) { + if (sqlServerDialectBuilder_ == null) { + if (dialectValueCase_ == 11 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SQLServerDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); + } else { + dialectValue_ = value; + } + onChanged(); + } else { + if (dialectValueCase_ == 11) { + sqlServerDialectBuilder_.mergeFrom(value); + } else { + sqlServerDialectBuilder_.setMessage(value); + } + } + dialectValueCase_ = 11; + return this; + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + public Builder clearSqlServerDialect() { + if (sqlServerDialectBuilder_ == null) { + if (dialectValueCase_ == 11) { + dialectValueCase_ = 0; + dialectValue_ = null; + onChanged(); + } + } else { + if (dialectValueCase_ == 11) { + dialectValueCase_ = 0; + dialectValue_ = null; + } + sqlServerDialectBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + public com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder + getSqlServerDialectBuilder() { + return getSqlServerDialectFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder + getSqlServerDialectOrBuilder() { + if ((dialectValueCase_ == 11) && (sqlServerDialectBuilder_ != null)) { + return sqlServerDialectBuilder_.getMessageOrBuilder(); + } else { + if (dialectValueCase_ == 11) { + return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SQL Server dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLServerDialect, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder> + getSqlServerDialectFieldBuilder() { + if (sqlServerDialectBuilder_ == null) { + if (!(dialectValueCase_ == 11)) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + sqlServerDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLServerDialect, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder>( + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_, + getParentForChildren(), + isClean()); + dialectValue_ = null; + } + dialectValueCase_ = 11; + onChanged(); + ; + return sqlServerDialectBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java index 0d87296..d075171 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java @@ -374,5 +374,40 @@ public interface DialectOrBuilder */ com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVerticaDialectOrBuilder(); + /** + * + * + *
+   * The SQL Server dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * + * @return Whether the sqlServerDialect field is set. + */ + boolean hasSqlServerDialect(); + /** + * + * + *
+   * The SQL Server dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * + * @return The sqlServerDialect. + */ + com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDialect(); + /** + * + * + *
+   * The SQL Server dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + */ + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlServerDialectOrBuilder(); + public com.google.cloud.bigquery.migration.v2.Dialect.DialectValueCase getDialectValueCase(); } diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java index 2488d30..2824681 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java @@ -612,7 +612,9 @@ public com.google.protobuf.ByteString getIdBytes() { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -638,7 +640,9 @@ public java.lang.String getType() { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -1713,7 +1717,9 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -1738,7 +1744,9 @@ public java.lang.String getType() { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -1763,7 +1771,9 @@ public com.google.protobuf.ByteString getTypeBytes() { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -1787,7 +1797,9 @@ public Builder setType(java.lang.String value) { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -1807,7 +1819,9 @@ public Builder clearType() { * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java index b966019..13e2c9d 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java @@ -103,7 +103,9 @@ public interface MigrationTaskOrBuilder * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; @@ -118,7 +120,9 @@ public interface MigrationTaskOrBuilder * The type of the task. This must be one of the supported task types: * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ. + * Translation_Snowflake2BQ, Translation_Netezza2BQ, + * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + * Translation_SQLServer2BQ. * * * string type = 2; diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java new file mode 100644 index 0000000..9df41f4 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java @@ -0,0 +1,459 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
+ * The dialect definition for SQL Server.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SQLServerDialect} + */ +public final class SQLServerDialect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SQLServerDialect) + SQLServerDialectOrBuilder { + private static final long serialVersionUID = 0L; + // Use SQLServerDialect.newBuilder() to construct. + private SQLServerDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SQLServerDialect() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SQLServerDialect(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SQLServerDialect( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SQLServerDialect.class, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SQLServerDialect)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.SQLServerDialect other = + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect 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.migration.v2.SQLServerDialect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect 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.migration.v2.SQLServerDialect parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect 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.migration.v2.SQLServerDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect 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.migration.v2.SQLServerDialect parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect 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.migration.v2.SQLServerDialect 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; + } + /** + * + * + *
+   * The dialect definition for SQL Server.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.SQLServerDialect} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SQLServerDialect) + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.SQLServerDialect.class, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.SQLServerDialect.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialect getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialect build() { + com.google.cloud.bigquery.migration.v2.SQLServerDialect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialect buildPartial() { + com.google.cloud.bigquery.migration.v2.SQLServerDialect result = + new com.google.cloud.bigquery.migration.v2.SQLServerDialect(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.migration.v2.SQLServerDialect) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.SQLServerDialect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SQLServerDialect other) { + if (other == com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.bigquery.migration.v2.SQLServerDialect parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SQLServerDialect) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SQLServerDialect) + private static final com.google.cloud.bigquery.migration.v2.SQLServerDialect DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SQLServerDialect(); + } + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SQLServerDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SQLServerDialect(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.SQLServerDialect getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java new file mode 100644 index 0000000..3e4147e --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface SQLServerDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SQLServerDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java index e0104b9..2d11111 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java @@ -75,6 +75,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -117,7 +121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ListH\002\022A\n\nsource_env\030\006 \001(\0132-.google.clou" + "d.bigquery.migration.v2.SourceEnvB\021\n\017sou" + "rce_locationB\021\n\017target_locationB\025\n\023outpu" - + "t_name_mapping\"\303\006\n\007Dialect\022O\n\020bigquery_d" + + "t_name_mapping\"\227\007\n\007Dialect\022O\n\020bigquery_d" + "ialect\030\001 \001(\01323.google.cloud.bigquery.mig" + "ration.v2.BigQueryDialectH\000\022K\n\016hiveql_di" + "alect\030\002 \001(\01321.google.cloud.bigquery.migr" @@ -137,39 +141,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pse_dialect\030\t \001(\01327.google.cloud.bigquer" + "y.migration.v2.AzureSynapseDialectH\000\022M\n\017" + "vertica_dialect\030\n \001(\01322.google.cloud.big" - + "query.migration.v2.VerticaDialectH\000B\017\n\rd" - + "ialect_value\"\021\n\017BigQueryDialect\"\017\n\rHiveQ" - + "LDialect\"\021\n\017RedshiftDialect\"\212\001\n\017Teradata" - + "Dialect\022F\n\004mode\030\001 \001(\01628.google.cloud.big" - + "query.migration.v2.TeradataDialect.Mode\"" - + "/\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\007\n\003SQL\020\001\022\010" - + "\n\004BTEQ\020\002\"\017\n\rOracleDialect\"\021\n\017SparkSQLDia" - + "lect\"\022\n\020SnowflakeDialect\"\020\n\016NetezzaDiale" - + "ct\"\025\n\023AzureSynapseDialect\"\020\n\016VerticaDial" - + "ect\"`\n\025ObjectNameMappingList\022G\n\010name_map" - + "\030\001 \003(\01325.google.cloud.bigquery.migration" - + ".v2.ObjectNameMapping\"\235\001\n\021ObjectNameMapp" - + "ing\022B\n\006source\030\001 \001(\01322.google.cloud.bigqu" - + "ery.migration.v2.NameMappingKey\022D\n\006targe" - + "t\030\002 \001(\01324.google.cloud.bigquery.migratio" - + "n.v2.NameMappingValue\"\253\002\n\016NameMappingKey" - + "\022E\n\004type\030\001 \001(\01627.google.cloud.bigquery.m" - + "igration.v2.NameMappingKey.Type\022\020\n\010datab" - + "ase\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t\022\020\n\010relation\030\004 " - + "\001(\t\022\021\n\tattribute\030\005 \001(\t\"\212\001\n\004Type\022\024\n\020TYPE_" - + "UNSPECIFIED\020\000\022\014\n\010DATABASE\020\001\022\n\n\006SCHEMA\020\002\022" - + "\014\n\010RELATION\020\003\022\r\n\tATTRIBUTE\020\004\022\022\n\016RELATION" - + "_ALIAS\020\005\022\023\n\017ATTRIBUTE_ALIAS\020\006\022\014\n\010FUNCTIO" - + "N\020\007\"Y\n\020NameMappingValue\022\020\n\010database\030\001 \001(" - + "\t\022\016\n\006schema\030\002 \001(\t\022\020\n\010relation\030\003 \001(\t\022\021\n\ta" - + "ttribute\030\004 \001(\t\"A\n\tSourceEnv\022\030\n\020default_d" - + "atabase\030\001 \001(\t\022\032\n\022schema_search_path\030\002 \003(" - + "\tB\331\001\n&com.google.cloud.bigquery.migratio" - + "n.v2B\026TranslationConfigProtoP\001ZKgoogle.g" - + "olang.org/genproto/googleapis/cloud/bigq" - + "uery/migration/v2;migration\252\002\"Google.Clo" - + "ud.BigQuery.Migration.V2\312\002\"Google\\Cloud\\" - + "BigQuery\\Migration\\V2b\006proto3" + + "query.migration.v2.VerticaDialectH\000\022R\n\022s" + + "ql_server_dialect\030\013 \001(\01324.google.cloud.b" + + "igquery.migration.v2.SQLServerDialectH\000B" + + "\017\n\rdialect_value\"\021\n\017BigQueryDialect\"\017\n\rH" + + "iveQLDialect\"\021\n\017RedshiftDialect\"\212\001\n\017Tera" + + "dataDialect\022F\n\004mode\030\001 \001(\01628.google.cloud" + + ".bigquery.migration.v2.TeradataDialect.M" + + "ode\"/\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\007\n\003SQL" + + "\020\001\022\010\n\004BTEQ\020\002\"\017\n\rOracleDialect\"\021\n\017SparkSQ" + + "LDialect\"\022\n\020SnowflakeDialect\"\020\n\016NetezzaD" + + "ialect\"\025\n\023AzureSynapseDialect\"\020\n\016Vertica" + + "Dialect\"\022\n\020SQLServerDialect\"`\n\025ObjectNam" + + "eMappingList\022G\n\010name_map\030\001 \003(\01325.google." + + "cloud.bigquery.migration.v2.ObjectNameMa" + + "pping\"\235\001\n\021ObjectNameMapping\022B\n\006source\030\001 " + + "\001(\01322.google.cloud.bigquery.migration.v2" + + ".NameMappingKey\022D\n\006target\030\002 \001(\01324.google" + + ".cloud.bigquery.migration.v2.NameMapping" + + "Value\"\253\002\n\016NameMappingKey\022E\n\004type\030\001 \001(\01627" + + ".google.cloud.bigquery.migration.v2.Name" + + "MappingKey.Type\022\020\n\010database\030\002 \001(\t\022\016\n\006sch" + + "ema\030\003 \001(\t\022\020\n\010relation\030\004 \001(\t\022\021\n\tattribute" + + "\030\005 \001(\t\"\212\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010DATABASE\020\001\022\n\n\006SCHEMA\020\002\022\014\n\010RELATION\020\003\022\r\n" + + "\tATTRIBUTE\020\004\022\022\n\016RELATION_ALIAS\020\005\022\023\n\017ATTR" + + "IBUTE_ALIAS\020\006\022\014\n\010FUNCTION\020\007\"Y\n\020NameMappi" + + "ngValue\022\020\n\010database\030\001 \001(\t\022\016\n\006schema\030\002 \001(" + + "\t\022\020\n\010relation\030\003 \001(\t\022\021\n\tattribute\030\004 \001(\t\"A" + + "\n\tSourceEnv\022\030\n\020default_database\030\001 \001(\t\022\032\n" + + "\022schema_search_path\030\002 \003(\tB\331\001\n&com.google" + + ".cloud.bigquery.migration.v2B\026Translatio" + + "nConfigProtoP\001ZKgoogle.golang.org/genpro" + + "to/googleapis/cloud/bigquery/migration/v" + + "2;migration\252\002\"Google.Cloud.BigQuery.Migr" + + "ation.V2\312\002\"Google\\Cloud\\BigQuery\\Migrati" + + "on\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -206,6 +213,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetezzaDialect", "AzureSynapseDialect", "VerticaDialect", + "SqlServerDialect", "DialectValue", }); internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor = @@ -270,8 +278,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor, @@ -279,7 +293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NameMap", }); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor, @@ -287,7 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", "Target", }); internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor, @@ -295,7 +309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Database", "Schema", "Relation", "Attribute", }); internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor, @@ -303,7 +317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Relation", "Attribute", }); internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor, diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto index 6ccfcac..79ca05b 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto +++ b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto @@ -133,7 +133,9 @@ message MigrationTask { // The type of the task. This must be one of the supported task types: // Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, // Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - // Translation_Snowflake2BQ, Translation_Netezza2BQ. + // Translation_Snowflake2BQ, Translation_Netezza2BQ, + // Translation_AzureSynapse2BQ, Translation_Vertica2BQ, + // Translation_SQLServer2BQ. string type = 2; // Output only. The current state of the task. diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto index 6058e9d..3ff2902 100644 --- a/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto +++ b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto @@ -88,6 +88,9 @@ message Dialect { // The Vertica dialect VerticaDialect vertica_dialect = 10; + + // The SQL Server dialect + SQLServerDialect sql_server_dialect = 11; } } @@ -136,6 +139,9 @@ message AzureSynapseDialect {} // The dialect definition for Vertica. message VerticaDialect {} +// The dialect definition for SQL Server. +message SQLServerDialect {} + // Represents a map of name mappings using a list of key:value proto messages of // existing name to desired output name. message ObjectNameMappingList {