From 335f52c6fe5e9e8bdd3087680c8238f369878e4a Mon Sep 17 00:00:00 2001 From: "cloudquery-ci[bot]" <271027272+cloudquery-ci[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 15:13:46 +0000 Subject: [PATCH] fix: Generate Java Code from `plugin-pb` --- .../main/cloudquery/plugin/v3/plugin.proto | 6 +- .../io/cloudquery/plugin/v3/AssessTables.java | 241 ++++++++---------- .../plugin/v3/PluginOuterClass.java | 97 ++++--- .../proto/cloudquery/plugin/v3/plugin.proto | 6 +- 4 files changed, 164 insertions(+), 186 deletions(-) diff --git a/build/generated/proto-resources/main/cloudquery/plugin/v3/plugin.proto b/build/generated/proto-resources/main/cloudquery/plugin/v3/plugin.proto index 36a225e..740e366 100644 --- a/build/generated/proto-resources/main/cloudquery/plugin/v3/plugin.proto +++ b/build/generated/proto-resources/main/cloudquery/plugin/v3/plugin.proto @@ -248,6 +248,7 @@ message TestConnection { } message AssessTables { + // TABLE_REMOVED applies to tables only, all other values apply to tables and columns enum Category { CATEGORY_UNKNOWN = 0; CATEGORY_NO_CHANGE = 1; @@ -268,6 +269,7 @@ message AssessTables { string before = 2; string after = 3; } + // Safe mode is a migration with migrate_force false, forced mode with migrate_force true message ColumnFinding { string column_name = 1; Category category = 2; @@ -285,8 +287,8 @@ message AssessTables { string forced_mode_behavior = 4; repeated ColumnFinding columns = 5; repeated Evidence evidence = 6; - bool coverage_incomplete = 7; - string coverage_incomplete_reason = 8; + // Non-empty when the assessment could not cover the whole table + string incomplete_coverage_reason = 7; } message Request { repeated TablePair tables = 1; diff --git a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTables.java b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTables.java index 46ce626..9aa5646 100644 --- a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTables.java +++ b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTables.java @@ -49,6 +49,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } /** + *
+   * TABLE_REMOVED applies to tables only, all other values apply to tables and columns
+   * 
+ * * Protobuf enum {@code cloudquery.plugin.v3.AssessTables.Category} */ public enum Category @@ -1713,6 +1717,10 @@ io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( int index); } /** + *
+   * Safe mode is a migration with migrate_force false, forced mode with migrate_force true
+   * 
+ * * Protobuf type {@code cloudquery.plugin.v3.AssessTables.ColumnFinding} */ public static final class ColumnFinding extends @@ -2252,6 +2260,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * Safe mode is a migration with migrate_force false, forced mode with migrate_force true
+     * 
+ * * Protobuf type {@code cloudquery.plugin.v3.AssessTables.ColumnFinding} */ public static final class Builder extends @@ -3331,22 +3343,24 @@ io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( int index); /** - * bool coverage_incomplete = 7; - * @return The coverageIncomplete. - */ - boolean getCoverageIncomplete(); - - /** - * string coverage_incomplete_reason = 8; - * @return The coverageIncompleteReason. + *
+     * Non-empty when the assessment could not cover the whole table
+     * 
+ * + * string incomplete_coverage_reason = 7; + * @return The incompleteCoverageReason. */ - java.lang.String getCoverageIncompleteReason(); + java.lang.String getIncompleteCoverageReason(); /** - * string coverage_incomplete_reason = 8; - * @return The bytes for coverageIncompleteReason. + *
+     * Non-empty when the assessment could not cover the whole table
+     * 
+ * + * string incomplete_coverage_reason = 7; + * @return The bytes for incompleteCoverageReason. */ com.google.protobuf.ByteString - getCoverageIncompleteReasonBytes(); + getIncompleteCoverageReasonBytes(); } /** * Protobuf type {@code cloudquery.plugin.v3.AssessTables.TableFinding} @@ -3376,7 +3390,7 @@ private TableFinding() { forcedModeBehavior_ = ""; columns_ = java.util.Collections.emptyList(); evidence_ = java.util.Collections.emptyList(); - coverageIncompleteReason_ = ""; + incompleteCoverageReason_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor @@ -3614,50 +3628,47 @@ public io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuild return evidence_.get(index); } - public static final int COVERAGE_INCOMPLETE_FIELD_NUMBER = 7; - private boolean coverageIncomplete_ = false; - /** - * bool coverage_incomplete = 7; - * @return The coverageIncomplete. - */ - @java.lang.Override - public boolean getCoverageIncomplete() { - return coverageIncomplete_; - } - - public static final int COVERAGE_INCOMPLETE_REASON_FIELD_NUMBER = 8; + public static final int INCOMPLETE_COVERAGE_REASON_FIELD_NUMBER = 7; @SuppressWarnings("serial") - private volatile java.lang.Object coverageIncompleteReason_ = ""; + private volatile java.lang.Object incompleteCoverageReason_ = ""; /** - * string coverage_incomplete_reason = 8; - * @return The coverageIncompleteReason. + *
+     * Non-empty when the assessment could not cover the whole table
+     * 
+ * + * string incomplete_coverage_reason = 7; + * @return The incompleteCoverageReason. */ @java.lang.Override - public java.lang.String getCoverageIncompleteReason() { - java.lang.Object ref = coverageIncompleteReason_; + public java.lang.String getIncompleteCoverageReason() { + java.lang.Object ref = incompleteCoverageReason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - coverageIncompleteReason_ = s; + incompleteCoverageReason_ = s; return s; } } /** - * string coverage_incomplete_reason = 8; - * @return The bytes for coverageIncompleteReason. + *
+     * Non-empty when the assessment could not cover the whole table
+     * 
+ * + * string incomplete_coverage_reason = 7; + * @return The bytes for incompleteCoverageReason. */ @java.lang.Override public com.google.protobuf.ByteString - getCoverageIncompleteReasonBytes() { - java.lang.Object ref = coverageIncompleteReason_; + getIncompleteCoverageReasonBytes() { + java.lang.Object ref = incompleteCoverageReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - coverageIncompleteReason_ = b; + incompleteCoverageReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3696,11 +3707,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < evidence_.size(); i++) { output.writeMessage(6, evidence_.get(i)); } - if (coverageIncomplete_ != false) { - output.writeBool(7, coverageIncomplete_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(coverageIncompleteReason_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, coverageIncompleteReason_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(incompleteCoverageReason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, incompleteCoverageReason_); } getUnknownFields().writeTo(output); } @@ -3737,12 +3745,8 @@ private int computeSerializedSize_0() { } size += 1 * count; } - if (coverageIncomplete_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, coverageIncomplete_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(coverageIncompleteReason_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, coverageIncompleteReason_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(incompleteCoverageReason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, incompleteCoverageReason_); } return size; } @@ -3779,10 +3783,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getColumnsList())) return false; if (!getEvidenceList() .equals(other.getEvidenceList())) return false; - if (getCoverageIncomplete() - != other.getCoverageIncomplete()) return false; - if (!getCoverageIncompleteReason() - .equals(other.getCoverageIncompleteReason())) return false; + if (!getIncompleteCoverageReason() + .equals(other.getIncompleteCoverageReason())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3810,11 +3812,8 @@ public int hashCode() { hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; hash = (53 * hash) + getEvidenceList().hashCode(); } - hash = (37 * hash) + COVERAGE_INCOMPLETE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCoverageIncomplete()); - hash = (37 * hash) + COVERAGE_INCOMPLETE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getCoverageIncompleteReason().hashCode(); + hash = (37 * hash) + INCOMPLETE_COVERAGE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getIncompleteCoverageReason().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3964,8 +3963,7 @@ public Builder clear() { evidenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); - coverageIncomplete_ = false; - coverageIncompleteReason_ = ""; + incompleteCoverageReason_ = ""; return this; } @@ -4034,10 +4032,7 @@ private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.TableFinding res result.forcedModeBehavior_ = forcedModeBehavior_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.coverageIncomplete_ = coverageIncomplete_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.coverageIncompleteReason_ = coverageIncompleteReason_; + result.incompleteCoverageReason_ = incompleteCoverageReason_; } } @@ -4123,12 +4118,9 @@ public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.TableFinding other } } } - if (other.getCoverageIncomplete() != false) { - setCoverageIncomplete(other.getCoverageIncomplete()); - } - if (!other.getCoverageIncompleteReason().isEmpty()) { - coverageIncompleteReason_ = other.coverageIncompleteReason_; - bitField0_ |= 0x00000080; + if (!other.getIncompleteCoverageReason().isEmpty()) { + incompleteCoverageReason_ = other.incompleteCoverageReason_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4201,16 +4193,11 @@ public Builder mergeFrom( } break; } // case 50 - case 56: { - coverageIncomplete_ = input.readBool(); + case 58: { + incompleteCoverageReason_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; - } // case 56 - case 66: { - coverageIncompleteReason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -4964,106 +4951,94 @@ public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder addEvidenceBuilder( return evidenceBuilder_; } - private boolean coverageIncomplete_ ; + private java.lang.Object incompleteCoverageReason_ = ""; /** - * bool coverage_incomplete = 7; - * @return The coverageIncomplete. - */ - @java.lang.Override - public boolean getCoverageIncomplete() { - return coverageIncomplete_; - } - /** - * bool coverage_incomplete = 7; - * @param value The coverageIncomplete to set. - * @return This builder for chaining. - */ - public Builder setCoverageIncomplete(boolean value) { - - coverageIncomplete_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * bool coverage_incomplete = 7; - * @return This builder for chaining. - */ - public Builder clearCoverageIncomplete() { - bitField0_ = (bitField0_ & ~0x00000040); - coverageIncomplete_ = false; - onChanged(); - return this; - } - - private java.lang.Object coverageIncompleteReason_ = ""; - /** - * string coverage_incomplete_reason = 8; - * @return The coverageIncompleteReason. + *
+       * Non-empty when the assessment could not cover the whole table
+       * 
+ * + * string incomplete_coverage_reason = 7; + * @return The incompleteCoverageReason. */ - public java.lang.String getCoverageIncompleteReason() { - java.lang.Object ref = coverageIncompleteReason_; + public java.lang.String getIncompleteCoverageReason() { + java.lang.Object ref = incompleteCoverageReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - coverageIncompleteReason_ = s; + incompleteCoverageReason_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string coverage_incomplete_reason = 8; - * @return The bytes for coverageIncompleteReason. + *
+       * Non-empty when the assessment could not cover the whole table
+       * 
+ * + * string incomplete_coverage_reason = 7; + * @return The bytes for incompleteCoverageReason. */ public com.google.protobuf.ByteString - getCoverageIncompleteReasonBytes() { - java.lang.Object ref = coverageIncompleteReason_; + getIncompleteCoverageReasonBytes() { + java.lang.Object ref = incompleteCoverageReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - coverageIncompleteReason_ = b; + incompleteCoverageReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string coverage_incomplete_reason = 8; - * @param value The coverageIncompleteReason to set. + *
+       * Non-empty when the assessment could not cover the whole table
+       * 
+ * + * string incomplete_coverage_reason = 7; + * @param value The incompleteCoverageReason to set. * @return This builder for chaining. */ - public Builder setCoverageIncompleteReason( + public Builder setIncompleteCoverageReason( java.lang.String value) { java.util.Objects.requireNonNull(value); - coverageIncompleteReason_ = value; - bitField0_ |= 0x00000080; + incompleteCoverageReason_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * string coverage_incomplete_reason = 8; + *
+       * Non-empty when the assessment could not cover the whole table
+       * 
+ * + * string incomplete_coverage_reason = 7; * @return This builder for chaining. */ - public Builder clearCoverageIncompleteReason() { - coverageIncompleteReason_ = getDefaultInstance().getCoverageIncompleteReason(); - bitField0_ = (bitField0_ & ~0x00000080); + public Builder clearIncompleteCoverageReason() { + incompleteCoverageReason_ = getDefaultInstance().getIncompleteCoverageReason(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** - * string coverage_incomplete_reason = 8; - * @param value The bytes for coverageIncompleteReason to set. + *
+       * Non-empty when the assessment could not cover the whole table
+       * 
+ * + * string incomplete_coverage_reason = 7; + * @param value The bytes for incompleteCoverageReason to set. * @return This builder for chaining. */ - public Builder setCoverageIncompleteReasonBytes( + public Builder setIncompleteCoverageReasonBytes( com.google.protobuf.ByteString value) { java.util.Objects.requireNonNull(value); checkByteStringIsUtf8(value); - coverageIncompleteReason_ = value; - bitField0_ |= 0x00000080; + incompleteCoverageReason_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/PluginOuterClass.java b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/PluginOuterClass.java index 98397d1..f39e390 100644 --- a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/PluginOuterClass.java +++ b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/PluginOuterClass.java @@ -386,7 +386,7 @@ public static void registerAllExtensions( "se\032\t\n\007Request\032\n\n\010Response\"y\n\016TestConnect" + "ion\032\027\n\007Request\022\014\n\004spec\030\001 \001(\014\032N\n\010Response" + "\022\017\n\007success\030\001 \001(\010\022\024\n\014failure_code\030\002 \001(\t\022" + - "\033\n\023failure_description\030\003 \001(\t\"\336\010\n\014AssessT" + + "\033\n\023failure_description\030\003 \001(\t\"\301\010\n\014AssessT" + "ables\0321\n\tTablePair\022\021\n\told_table\030\001 \001(\014\022\021\n" + "\tnew_table\030\002 \001(\014\032B\n\010Evidence\022\027\n\017syntheti" + "c_value\030\001 \001(\t\022\016\n\006before\030\002 \001(\t\022\r\n\005after\030\003" + @@ -396,59 +396,58 @@ public static void registerAllExtensions( " \001(\t\022\020\n\010new_type\030\004 \001(\t\022\032\n\022safe_mode_beha" + "vior\030\005 \001(\t\022\034\n\024forced_mode_behavior\030\006 \001(\t" + "\022=\n\010evidence\030\007 \003(\0132+.cloudquery.plugin.v" + - "3.AssessTables.Evidence\032\336\002\n\014TableFinding" + + "3.AssessTables.Evidence\032\301\002\n\014TableFinding" + "\022\022\n\ntable_name\030\001 \001(\t\022=\n\010category\030\002 \001(\0162+" + ".cloudquery.plugin.v3.AssessTables.Categ" + "ory\022\032\n\022safe_mode_behavior\030\003 \001(\t\022\034\n\024force" + "d_mode_behavior\030\004 \001(\t\022A\n\007columns\030\005 \003(\01320" + ".cloudquery.plugin.v3.AssessTables.Colum" + "nFinding\022=\n\010evidence\030\006 \003(\0132+.cloudquery." + - "plugin.v3.AssessTables.Evidence\022\033\n\023cover" + - "age_incomplete\030\007 \001(\010\022\"\n\032coverage_incompl" + - "ete_reason\030\010 \001(\t\032^\n\007Request\022<\n\006tables\030\001 " + - "\003(\0132,.cloudquery.plugin.v3.AssessTables." + - "TablePair\022\025\n\rmigrate_force\030\002 \001(\010\032K\n\010Resp" + - "onse\022?\n\006tables\030\001 \003(\0132/.cloudquery.plugin" + - ".v3.AssessTables.TableFinding\"\305\001\n\010Catego" + - "ry\022\024\n\020CATEGORY_UNKNOWN\020\000\022\026\n\022CATEGORY_NO_" + - "CHANGE\020\001\022%\n!CATEGORY_AUTOMATICALLY_MIGRA" + - "TABLE\020\002\022&\n\"CATEGORY_MANUAL_MIGRATION_REQ" + - "UIRED\020\003\022\032\n\026CATEGORY_TABLE_REMOVED\020\004\022 \n\034C" + - "ATEGORY_FILE_SCHEMA_CHANGED\020\0052\340\t\n\006Plugin" + - "\022X\n\007GetName\022%.cloudquery.plugin.v3.GetNa" + - "me.Request\032&.cloudquery.plugin.v3.GetNam" + - "e.Response\022a\n\nGetVersion\022(.cloudquery.pl" + - "ugin.v3.GetVersion.Request\032).cloudquery." + - "plugin.v3.GetVersion.Response\022j\n\rGetSpec" + - "Schema\022+.cloudquery.plugin.v3.GetSpecSch" + - "ema.Request\032,.cloudquery.plugin.v3.GetSp" + - "ecSchema.Response\022O\n\004Init\022\".cloudquery.p" + - "lugin.v3.Init.Request\032#.cloudquery.plugi" + - "n.v3.Init.Response\022^\n\tGetTables\022\'.cloudq" + - "uery.plugin.v3.GetTables.Request\032(.cloud" + - "query.plugin.v3.GetTables.Response\022Q\n\004Sy" + - "nc\022\".cloudquery.plugin.v3.Sync.Request\032#" + - ".cloudquery.plugin.v3.Sync.Response0\001\022Q\n" + - "\004Read\022\".cloudquery.plugin.v3.Read.Reques" + - "t\032#.cloudquery.plugin.v3.Read.Response0\001" + - "\022T\n\005Write\022#.cloudquery.plugin.v3.Write.R" + - "equest\032$.cloudquery.plugin.v3.Write.Resp" + - "onse(\001\022b\n\tTransform\022\'.cloudquery.plugin." + - "v3.Transform.Request\032(.cloudquery.plugin" + - ".v3.Transform.Response(\0010\001\022p\n\017TransformS" + - "chema\022-.cloudquery.plugin.v3.TransformSc" + - "hema.Request\032..cloudquery.plugin.v3.Tran" + - "sformSchema.Response\022R\n\005Close\022#.cloudque" + - "ry.plugin.v3.Close.Request\032$.cloudquery." + - "plugin.v3.Close.Response\022m\n\016TestConnecti" + - "on\022,.cloudquery.plugin.v3.TestConnection" + - ".Request\032-.cloudquery.plugin.v3.TestConn" + - "ection.Response\022g\n\014AssessTables\022*.cloudq" + - "uery.plugin.v3.AssessTables.Request\032+.cl" + - "oudquery.plugin.v3.AssessTables.Response" + - "BS\n\027io.cloudquery.plugin.v3P\001Z6github.co" + - "m/cloudquery/plugin-pb-go/pb/plugin/v3;p" + - "luginb\006proto3" + "plugin.v3.AssessTables.Evidence\022\"\n\032incom" + + "plete_coverage_reason\030\007 \001(\t\032^\n\007Request\022<" + + "\n\006tables\030\001 \003(\0132,.cloudquery.plugin.v3.As" + + "sessTables.TablePair\022\025\n\rmigrate_force\030\002 " + + "\001(\010\032K\n\010Response\022?\n\006tables\030\001 \003(\0132/.cloudq" + + "uery.plugin.v3.AssessTables.TableFinding" + + "\"\305\001\n\010Category\022\024\n\020CATEGORY_UNKNOWN\020\000\022\026\n\022C" + + "ATEGORY_NO_CHANGE\020\001\022%\n!CATEGORY_AUTOMATI" + + "CALLY_MIGRATABLE\020\002\022&\n\"CATEGORY_MANUAL_MI" + + "GRATION_REQUIRED\020\003\022\032\n\026CATEGORY_TABLE_REM" + + "OVED\020\004\022 \n\034CATEGORY_FILE_SCHEMA_CHANGED\020\005" + + "2\340\t\n\006Plugin\022X\n\007GetName\022%.cloudquery.plug" + + "in.v3.GetName.Request\032&.cloudquery.plugi" + + "n.v3.GetName.Response\022a\n\nGetVersion\022(.cl" + + "oudquery.plugin.v3.GetVersion.Request\032)." + + "cloudquery.plugin.v3.GetVersion.Response" + + "\022j\n\rGetSpecSchema\022+.cloudquery.plugin.v3" + + ".GetSpecSchema.Request\032,.cloudquery.plug" + + "in.v3.GetSpecSchema.Response\022O\n\004Init\022\".c" + + "loudquery.plugin.v3.Init.Request\032#.cloud" + + "query.plugin.v3.Init.Response\022^\n\tGetTabl" + + "es\022\'.cloudquery.plugin.v3.GetTables.Requ" + + "est\032(.cloudquery.plugin.v3.GetTables.Res" + + "ponse\022Q\n\004Sync\022\".cloudquery.plugin.v3.Syn" + + "c.Request\032#.cloudquery.plugin.v3.Sync.Re" + + "sponse0\001\022Q\n\004Read\022\".cloudquery.plugin.v3." + + "Read.Request\032#.cloudquery.plugin.v3.Read" + + ".Response0\001\022T\n\005Write\022#.cloudquery.plugin" + + ".v3.Write.Request\032$.cloudquery.plugin.v3" + + ".Write.Response(\001\022b\n\tTransform\022\'.cloudqu" + + "ery.plugin.v3.Transform.Request\032(.cloudq" + + "uery.plugin.v3.Transform.Response(\0010\001\022p\n" + + "\017TransformSchema\022-.cloudquery.plugin.v3." + + "TransformSchema.Request\032..cloudquery.plu" + + "gin.v3.TransformSchema.Response\022R\n\005Close" + + "\022#.cloudquery.plugin.v3.Close.Request\032$." + + "cloudquery.plugin.v3.Close.Response\022m\n\016T" + + "estConnection\022,.cloudquery.plugin.v3.Tes" + + "tConnection.Request\032-.cloudquery.plugin." + + "v3.TestConnection.Response\022g\n\014AssessTabl" + + "es\022*.cloudquery.plugin.v3.AssessTables.R" + + "equest\032+.cloudquery.plugin.v3.AssessTabl" + + "es.ResponseBS\n\027io.cloudquery.plugin.v3P\001" + + "Z6github.com/cloudquery/plugin-pb-go/pb/" + + "plugin/v3;pluginb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -778,7 +777,7 @@ public static void registerAllExtensions( internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor, - new java.lang.String[] { "TableName", "Category", "SafeModeBehavior", "ForcedModeBehavior", "Columns", "Evidence", "CoverageIncomplete", "CoverageIncompleteReason", }); + new java.lang.String[] { "TableName", "Category", "SafeModeBehavior", "ForcedModeBehavior", "Columns", "Evidence", "IncompleteCoverageReason", }); internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor = internal_static_cloudquery_plugin_v3_AssessTables_descriptor.getNestedType(4); internal_static_cloudquery_plugin_v3_AssessTables_Request_fieldAccessorTable = new diff --git a/src/main/proto/cloudquery/plugin/v3/plugin.proto b/src/main/proto/cloudquery/plugin/v3/plugin.proto index 36a225e..740e366 100644 --- a/src/main/proto/cloudquery/plugin/v3/plugin.proto +++ b/src/main/proto/cloudquery/plugin/v3/plugin.proto @@ -248,6 +248,7 @@ message TestConnection { } message AssessTables { + // TABLE_REMOVED applies to tables only, all other values apply to tables and columns enum Category { CATEGORY_UNKNOWN = 0; CATEGORY_NO_CHANGE = 1; @@ -268,6 +269,7 @@ message AssessTables { string before = 2; string after = 3; } + // Safe mode is a migration with migrate_force false, forced mode with migrate_force true message ColumnFinding { string column_name = 1; Category category = 2; @@ -285,8 +287,8 @@ message AssessTables { string forced_mode_behavior = 4; repeated ColumnFinding columns = 5; repeated Evidence evidence = 6; - bool coverage_incomplete = 7; - string coverage_incomplete_reason = 8; + // Non-empty when the assessment could not cover the whole table + string incomplete_coverage_reason = 7; } message Request { repeated TablePair tables = 1;