diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java index 899116ff3211..569163d582aa 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java @@ -288,6 +288,46 @@ private Dialect( dialectValueCase_ = 11; break; } + case 98: + { + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder subBuilder = null; + if (dialectValueCase_ == 12) { + subBuilder = + ((com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_) + .toBuilder(); + } + dialectValue_ = + input.readMessage( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); + dialectValue_ = subBuilder.buildPartial(); + } + dialectValueCase_ = 12; + break; + } + case 106: + { + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder subBuilder = null; + if (dialectValueCase_ == 13) { + subBuilder = + ((com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_) + .toBuilder(); + } + dialectValue_ = + input.readMessage( + com.google.cloud.bigquery.migration.v2.PrestoDialect.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_); + dialectValue_ = subBuilder.buildPartial(); + } + dialectValueCase_ = 13; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -342,6 +382,8 @@ public enum DialectValueCase AZURE_SYNAPSE_DIALECT(9), VERTICA_DIALECT(10), SQL_SERVER_DIALECT(11), + POSTGRESQL_DIALECT(12), + PRESTO_DIALECT(13), DIALECTVALUE_NOT_SET(0); private final int value; @@ -382,6 +424,10 @@ public static DialectValueCase forNumber(int value) { return VERTICA_DIALECT; case 11: return SQL_SERVER_DIALECT; + case 12: + return POSTGRESQL_DIALECT; + case 13: + return PRESTO_DIALECT; case 0: return DIALECTVALUE_NOT_SET; default: @@ -968,6 +1014,109 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDiale return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); } + public static final int POSTGRESQL_DIALECT_FIELD_NUMBER = 12; + /** + * + * + *
+   * The Postgresql dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * + * @return Whether the postgresqlDialect field is set. + */ + @java.lang.Override + public boolean hasPostgresqlDialect() { + return dialectValueCase_ == 12; + } + /** + * + * + *
+   * The Postgresql dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * + * @return The postgresqlDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDialect() { + if (dialectValueCase_ == 12) { + return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + /** + * + * + *
+   * The Postgresql dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder + getPostgresqlDialectOrBuilder() { + if (dialectValueCase_ == 12) { + return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + + public static final int PRESTO_DIALECT_FIELD_NUMBER = 13; + /** + * + * + *
+   * The Presto dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * + * @return Whether the prestoDialect field is set. + */ + @java.lang.Override + public boolean hasPrestoDialect() { + return dialectValueCase_ == 13; + } + /** + * + * + *
+   * The Presto dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * + * @return The prestoDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect() { + if (dialectValueCase_ == 13) { + return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } + /** + * + * + *
+   * The Presto dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDialectOrBuilder() { + if (dialectValueCase_ == 13) { + return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1023,6 +1172,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); } + if (dialectValueCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); + } + if (dialectValueCase_ == 13) { + output.writeMessage(13, (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_); + } unknownFields.writeTo(output); } @@ -1087,6 +1243,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); } + if (dialectValueCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); + } + if (dialectValueCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1138,6 +1304,12 @@ public boolean equals(final java.lang.Object obj) { case 11: if (!getSqlServerDialect().equals(other.getSqlServerDialect())) return false; break; + case 12: + if (!getPostgresqlDialect().equals(other.getPostgresqlDialect())) return false; + break; + case 13: + if (!getPrestoDialect().equals(other.getPrestoDialect())) return false; + break; case 0: default: } @@ -1197,6 +1369,14 @@ public int hashCode() { hash = (37 * hash) + SQL_SERVER_DIALECT_FIELD_NUMBER; hash = (53 * hash) + getSqlServerDialect().hashCode(); break; + case 12: + hash = (37 * hash) + POSTGRESQL_DIALECT_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlDialect().hashCode(); + break; + case 13: + hash = (37 * hash) + PRESTO_DIALECT_FIELD_NUMBER; + hash = (53 * hash) + getPrestoDialect().hashCode(); + break; case 0: default: } @@ -1451,6 +1631,20 @@ public com.google.cloud.bigquery.migration.v2.Dialect buildPartial() { result.dialectValue_ = sqlServerDialectBuilder_.build(); } } + if (dialectValueCase_ == 12) { + if (postgresqlDialectBuilder_ == null) { + result.dialectValue_ = dialectValue_; + } else { + result.dialectValue_ = postgresqlDialectBuilder_.build(); + } + } + if (dialectValueCase_ == 13) { + if (prestoDialectBuilder_ == null) { + result.dialectValue_ = dialectValue_; + } else { + result.dialectValue_ = prestoDialectBuilder_.build(); + } + } result.dialectValueCase_ = dialectValueCase_; onBuilt(); return result; @@ -1557,6 +1751,16 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.Dialect other) { mergeSqlServerDialect(other.getSqlServerDialect()); break; } + case POSTGRESQL_DIALECT: + { + mergePostgresqlDialect(other.getPostgresqlDialect()); + break; + } + case PRESTO_DIALECT: + { + mergePrestoDialect(other.getPrestoDialect()); + break; + } case DIALECTVALUE_NOT_SET: { break; @@ -3981,6 +4185,434 @@ public Builder clearSqlServerDialect() { return sqlServerDialectBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PostgresqlDialect, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder> + postgresqlDialectBuilder_; + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * + * @return Whether the postgresqlDialect field is set. + */ + @java.lang.Override + public boolean hasPostgresqlDialect() { + return dialectValueCase_ == 12; + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * + * @return The postgresqlDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDialect() { + if (postgresqlDialectBuilder_ == null) { + if (dialectValueCase_ == 12) { + return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } else { + if (dialectValueCase_ == 12) { + return postgresqlDialectBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + public Builder setPostgresqlDialect( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect value) { + if (postgresqlDialectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialectValue_ = value; + onChanged(); + } else { + postgresqlDialectBuilder_.setMessage(value); + } + dialectValueCase_ = 12; + return this; + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + public Builder setPostgresqlDialect( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder builderForValue) { + if (postgresqlDialectBuilder_ == null) { + dialectValue_ = builderForValue.build(); + onChanged(); + } else { + postgresqlDialectBuilder_.setMessage(builderForValue.build()); + } + dialectValueCase_ = 12; + return this; + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + public Builder mergePostgresqlDialect( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect value) { + if (postgresqlDialectBuilder_ == null) { + if (dialectValueCase_ == 12 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); + } else { + dialectValue_ = value; + } + onChanged(); + } else { + if (dialectValueCase_ == 12) { + postgresqlDialectBuilder_.mergeFrom(value); + } else { + postgresqlDialectBuilder_.setMessage(value); + } + } + dialectValueCase_ = 12; + return this; + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + public Builder clearPostgresqlDialect() { + if (postgresqlDialectBuilder_ == null) { + if (dialectValueCase_ == 12) { + dialectValueCase_ = 0; + dialectValue_ = null; + onChanged(); + } + } else { + if (dialectValueCase_ == 12) { + dialectValueCase_ = 0; + dialectValue_ = null; + } + postgresqlDialectBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder + getPostgresqlDialectBuilder() { + return getPostgresqlDialectFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder + getPostgresqlDialectOrBuilder() { + if ((dialectValueCase_ == 12) && (postgresqlDialectBuilder_ != null)) { + return postgresqlDialectBuilder_.getMessageOrBuilder(); + } else { + if (dialectValueCase_ == 12) { + return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Postgresql dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PostgresqlDialect, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder> + getPostgresqlDialectFieldBuilder() { + if (postgresqlDialectBuilder_ == null) { + if (!(dialectValueCase_ == 12)) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + postgresqlDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PostgresqlDialect, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder>( + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_, + getParentForChildren(), + isClean()); + dialectValue_ = null; + } + dialectValueCase_ = 12; + onChanged(); + ; + return postgresqlDialectBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PrestoDialect, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder> + prestoDialectBuilder_; + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * + * @return Whether the prestoDialect field is set. + */ + @java.lang.Override + public boolean hasPrestoDialect() { + return dialectValueCase_ == 13; + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * + * @return The prestoDialect. + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect() { + if (prestoDialectBuilder_ == null) { + if (dialectValueCase_ == 13) { + return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } else { + if (dialectValueCase_ == 13) { + return prestoDialectBuilder_.getMessage(); + } + return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + public Builder setPrestoDialect(com.google.cloud.bigquery.migration.v2.PrestoDialect value) { + if (prestoDialectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialectValue_ = value; + onChanged(); + } else { + prestoDialectBuilder_.setMessage(value); + } + dialectValueCase_ = 13; + return this; + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + public Builder setPrestoDialect( + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder builderForValue) { + if (prestoDialectBuilder_ == null) { + dialectValue_ = builderForValue.build(); + onChanged(); + } else { + prestoDialectBuilder_.setMessage(builderForValue.build()); + } + dialectValueCase_ = 13; + return this; + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + public Builder mergePrestoDialect(com.google.cloud.bigquery.migration.v2.PrestoDialect value) { + if (prestoDialectBuilder_ == null) { + if (dialectValueCase_ == 13 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.PrestoDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); + } else { + dialectValue_ = value; + } + onChanged(); + } else { + if (dialectValueCase_ == 13) { + prestoDialectBuilder_.mergeFrom(value); + } else { + prestoDialectBuilder_.setMessage(value); + } + } + dialectValueCase_ = 13; + return this; + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + public Builder clearPrestoDialect() { + if (prestoDialectBuilder_ == null) { + if (dialectValueCase_ == 13) { + dialectValueCase_ = 0; + dialectValue_ = null; + onChanged(); + } + } else { + if (dialectValueCase_ == 13) { + dialectValueCase_ = 0; + dialectValue_ = null; + } + prestoDialectBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + public com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder getPrestoDialectBuilder() { + return getPrestoDialectFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder + getPrestoDialectOrBuilder() { + if ((dialectValueCase_ == 13) && (prestoDialectBuilder_ != null)) { + return prestoDialectBuilder_.getMessageOrBuilder(); + } else { + if (dialectValueCase_ == 13) { + return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; + } + return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Presto dialect
+     * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PrestoDialect, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder> + getPrestoDialectFieldBuilder() { + if (prestoDialectBuilder_ == null) { + if (!(dialectValueCase_ == 13)) { + dialectValue_ = com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } + prestoDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PrestoDialect, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder>( + (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_, + getParentForChildren(), + isClean()); + dialectValue_ = null; + } + dialectValueCase_ = 13; + onChanged(); + ; + return prestoDialectBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java index d075171511ef..0b3f08021225 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java @@ -409,5 +409,75 @@ public interface DialectOrBuilder */ com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlServerDialectOrBuilder(); + /** + * + * + *
+   * The Postgresql dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * + * @return Whether the postgresqlDialect field is set. + */ + boolean hasPostgresqlDialect(); + /** + * + * + *
+   * The Postgresql dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * + * @return The postgresqlDialect. + */ + com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDialect(); + /** + * + * + *
+   * The Postgresql dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + */ + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPostgresqlDialectOrBuilder(); + + /** + * + * + *
+   * The Presto dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * + * @return Whether the prestoDialect field is set. + */ + boolean hasPrestoDialect(); + /** + * + * + *
+   * The Presto dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * + * @return The prestoDialect. + */ + com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect(); + /** + * + * + *
+   * The Presto dialect
+   * 
+ * + * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + */ + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDialectOrBuilder(); + public com.google.cloud.bigquery.migration.v2.Dialect.DialectValueCase getDialectValueCase(); } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java index 282468145819..f6af28ba7a5c 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java @@ -614,7 +614,7 @@ public com.google.protobuf.ByteString getIdBytes() { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -642,7 +642,7 @@ public java.lang.String getType() { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -1719,7 +1719,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -1746,7 +1746,7 @@ public java.lang.String getType() { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -1773,7 +1773,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -1799,7 +1799,7 @@ public Builder setType(java.lang.String value) { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -1821,7 +1821,7 @@ public Builder clearType() { * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java index 13e2c9d400c4..2aa5e75f222d 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java @@ -105,7 +105,7 @@ public interface MigrationTaskOrBuilder * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; @@ -122,7 +122,7 @@ public interface MigrationTaskOrBuilder * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ. * * * string type = 2; diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java new file mode 100644 index 000000000000..087b2b9eba4f --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.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 Postgresql.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.PostgresqlDialect} + */ +public final class PostgresqlDialect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.PostgresqlDialect) + PostgresqlDialectOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlDialect.newBuilder() to construct. + private PostgresqlDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlDialect() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlDialect(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlDialect( + 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_PostgresqlDialect_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_PostgresqlDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.class, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.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.PostgresqlDialect)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.PostgresqlDialect other = + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) 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.PostgresqlDialect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect 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.PostgresqlDialect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect 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.PostgresqlDialect parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect 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.PostgresqlDialect 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.PostgresqlDialect 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.PostgresqlDialect 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.PostgresqlDialect 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.PostgresqlDialect 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.PostgresqlDialect 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.PostgresqlDialect 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 Postgresql.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.PostgresqlDialect} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.PostgresqlDialect) + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_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_PostgresqlDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.class, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.PostgresqlDialect.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_PostgresqlDialect_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect build() { + com.google.cloud.bigquery.migration.v2.PostgresqlDialect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect buildPartial() { + com.google.cloud.bigquery.migration.v2.PostgresqlDialect result = + new com.google.cloud.bigquery.migration.v2.PostgresqlDialect(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.PostgresqlDialect) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.PostgresqlDialect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.PostgresqlDialect other) { + if (other == com.google.cloud.bigquery.migration.v2.PostgresqlDialect.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.PostgresqlDialect parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) 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.PostgresqlDialect) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.PostgresqlDialect) + private static final com.google.cloud.bigquery.migration.v2.PostgresqlDialect DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.PostgresqlDialect(); + } + + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlDialect(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.PostgresqlDialect getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java new file mode 100644 index 000000000000..7088835136d9 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.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 PostgresqlDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.PostgresqlDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java new file mode 100644 index 000000000000..40aa4ebf665c --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java @@ -0,0 +1,458 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +/** + * + * + *
+ * The dialect definition for Presto.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.PrestoDialect} + */ +public final class PrestoDialect extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.PrestoDialect) + PrestoDialectOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrestoDialect.newBuilder() to construct. + private PrestoDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrestoDialect() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrestoDialect(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PrestoDialect( + 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_PrestoDialect_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_PrestoDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.PrestoDialect.class, + com.google.cloud.bigquery.migration.v2.PrestoDialect.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.PrestoDialect)) { + return super.equals(obj); + } + com.google.cloud.bigquery.migration.v2.PrestoDialect other = + (com.google.cloud.bigquery.migration.v2.PrestoDialect) 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.PrestoDialect parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.PrestoDialect 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.PrestoDialect parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.PrestoDialect 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.PrestoDialect parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.migration.v2.PrestoDialect 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.PrestoDialect 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.PrestoDialect 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.PrestoDialect 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.PrestoDialect 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.PrestoDialect 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.PrestoDialect 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.PrestoDialect 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 Presto.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.PrestoDialect} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.PrestoDialect) + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_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_PrestoDialect_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.PrestoDialect.class, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder.class); + } + + // Construct using com.google.cloud.bigquery.migration.v2.PrestoDialect.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_PrestoDialect_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialect getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialect build() { + com.google.cloud.bigquery.migration.v2.PrestoDialect result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.PrestoDialect buildPartial() { + com.google.cloud.bigquery.migration.v2.PrestoDialect result = + new com.google.cloud.bigquery.migration.v2.PrestoDialect(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.PrestoDialect) { + return mergeFrom((com.google.cloud.bigquery.migration.v2.PrestoDialect) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.PrestoDialect other) { + if (other == com.google.cloud.bigquery.migration.v2.PrestoDialect.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.PrestoDialect parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.bigquery.migration.v2.PrestoDialect) 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.PrestoDialect) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.PrestoDialect) + private static final com.google.cloud.bigquery.migration.v2.PrestoDialect DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.PrestoDialect(); + } + + public static com.google.cloud.bigquery.migration.v2.PrestoDialect getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrestoDialect(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.PrestoDialect getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java new file mode 100644 index 000000000000..f0aad2463e53 --- /dev/null +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.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 PrestoDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.PrestoDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java index 2d1111184ea3..8a542e7a728f 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java @@ -79,6 +79,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_PostgresqlDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -121,7 +129,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\"\227\007\n\007Dialect\022O\n\020bigquery_d" + + "t_name_mapping\"\271\010\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" @@ -143,16 +151,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vertica_dialect\030\n \001(\01322.google.cloud.big" + "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" + + "igquery.migration.v2.SQLServerDialectH\000\022" + + "S\n\022postgresql_dialect\030\014 \001(\01325.google.clo" + + "ud.bigquery.migration.v2.PostgresqlDiale" + + "ctH\000\022K\n\016presto_dialect\030\r \001(\01321.google.cl" + + "oud.bigquery.migration.v2.PrestoDialectH" + + "\000B\017\n\rdialect_value\"\021\n\017BigQueryDialect\"\017\n" + + "\rHiveQLDialect\"\021\n\017RedshiftDialect\"\212\001\n\017Te" + + "radataDialect\022F\n\004mode\030\001 \001(\01628.google.clo" + + "ud.bigquery.migration.v2.TeradataDialect" + + ".Mode\"/\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\007\n\003S" + + "QL\020\001\022\010\n\004BTEQ\020\002\"\017\n\rOracleDialect\"\021\n\017Spark" + + "SQLDialect\"\022\n\020SnowflakeDialect\"\020\n\016Netezz" + + "aDialect\"\025\n\023AzureSynapseDialect\"\020\n\016Verti" + + "caDialect\"\022\n\020SQLServerDialect\"\023\n\021Postgre" + + "sqlDialect\"\017\n\rPrestoDialect\"`\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 " @@ -214,6 +227,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AzureSynapseDialect", "VerticaDialect", "SqlServerDialect", + "PostgresqlDialect", + "PrestoDialect", "DialectValue", }); internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor = @@ -284,8 +299,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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 = + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor, @@ -293,7 +320,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NameMap", }); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor, @@ -301,7 +328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", "Target", }); internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor, @@ -309,7 +336,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(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor, @@ -317,7 +344,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(17); + getDescriptor().getMessageTypes().get(19); 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/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto index 79ca05b971a0..153270aa9cdc 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto @@ -135,7 +135,7 @@ message MigrationTask { // Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, // Translation_Snowflake2BQ, Translation_Netezza2BQ, // Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - // Translation_SQLServer2BQ. + // Translation_SQLServer2BQ, Translation_Presto2BQ. string type = 2; // Output only. The current state of the task. diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto index 3ff2902b8cc9..02a8191ef359 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto @@ -91,6 +91,12 @@ message Dialect { // The SQL Server dialect SQLServerDialect sql_server_dialect = 11; + + // The Postgresql dialect + PostgresqlDialect postgresql_dialect = 12; + + // The Presto dialect + PrestoDialect presto_dialect = 13; } } @@ -142,6 +148,12 @@ message VerticaDialect {} // The dialect definition for SQL Server. message SQLServerDialect {} +// The dialect definition for Postgresql. +message PostgresqlDialect {} + +// The dialect definition for Presto. +message PrestoDialect {} + // Represents a map of name mappings using a list of key:value proto messages of // existing name to desired output name. message ObjectNameMappingList {