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 5822eef..36a225e 100644 --- a/build/generated/proto-resources/main/cloudquery/plugin/v3/plugin.proto +++ b/build/generated/proto-resources/main/cloudquery/plugin/v3/plugin.proto @@ -35,6 +35,9 @@ service Plugin { rpc Close(Close.Request) returns (Close.Response); // Validate and test the connections used by the plugin rpc TestConnection(TestConnection.Request) returns (TestConnection.Response); + // Assess how the destination plugin would apply table schema changes, without writing anything. + // Plugins that do not support assessment return Unimplemented. + rpc AssessTables(AssessTables.Request) returns (AssessTables.Response); } message GetName { @@ -243,3 +246,53 @@ message TestConnection { string failure_description = 3; } } + +message AssessTables { + enum Category { + CATEGORY_UNKNOWN = 0; + CATEGORY_NO_CHANGE = 1; + CATEGORY_AUTOMATICALLY_MIGRATABLE = 2; + CATEGORY_MANUAL_MIGRATION_REQUIRED = 3; + CATEGORY_TABLE_REMOVED = 4; + CATEGORY_FILE_SCHEMA_CHANGED = 5; + } + message TablePair { + // marshalled arrow.Schema, empty when the table is added + bytes old_table = 1; + // marshalled arrow.Schema, empty when the table is removed + bytes new_table = 2; + } + message Evidence { + string synthetic_value = 1; + // Destination output for the synthetic value under the old and new schemas + string before = 2; + string after = 3; + } + message ColumnFinding { + string column_name = 1; + Category category = 2; + // Destination types, empty when the column is added or removed + string old_type = 3; + string new_type = 4; + string safe_mode_behavior = 5; + string forced_mode_behavior = 6; + repeated Evidence evidence = 7; + } + message TableFinding { + string table_name = 1; + Category category = 2; + string safe_mode_behavior = 3; + string forced_mode_behavior = 4; + repeated ColumnFinding columns = 5; + repeated Evidence evidence = 6; + bool coverage_incomplete = 7; + string coverage_incomplete_reason = 8; + } + message Request { + repeated TablePair tables = 1; + bool migrate_force = 2; + } + message Response { + repeated TableFinding tables = 1; + } +} diff --git a/build/generated/sources/proto/main/grpc/io/cloudquery/plugin/v3/PluginGrpc.java b/build/generated/sources/proto/main/grpc/io/cloudquery/plugin/v3/PluginGrpc.java index 03f8d22..801b442 100644 --- a/build/generated/sources/proto/main/grpc/io/cloudquery/plugin/v3/PluginGrpc.java +++ b/build/generated/sources/proto/main/grpc/io/cloudquery/plugin/v3/PluginGrpc.java @@ -384,6 +384,37 @@ io.cloudquery.plugin.v3.TestConnection.Response> getTestConnectionMethod() { return getTestConnectionMethod; } + private static volatile io.grpc.MethodDescriptor getAssessTablesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AssessTables", + requestType = io.cloudquery.plugin.v3.AssessTables.Request.class, + responseType = io.cloudquery.plugin.v3.AssessTables.Response.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAssessTablesMethod() { + io.grpc.MethodDescriptor getAssessTablesMethod; + if ((getAssessTablesMethod = PluginGrpc.getAssessTablesMethod) == null) { + synchronized (PluginGrpc.class) { + if ((getAssessTablesMethod = PluginGrpc.getAssessTablesMethod) == null) { + PluginGrpc.getAssessTablesMethod = getAssessTablesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssessTables")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.cloudquery.plugin.v3.AssessTables.Request.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.cloudquery.plugin.v3.AssessTables.Response.getDefaultInstance())) + .setSchemaDescriptor(new PluginMethodDescriptorSupplier("AssessTables")) + .build(); + } + } + } + return getAssessTablesMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -569,6 +600,17 @@ default void testConnection(io.cloudquery.plugin.v3.TestConnection.Request reque io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestConnectionMethod(), responseObserver); } + + /** + *
+     * Assess how the destination plugin would apply table schema changes, without writing anything.
+     * Plugins that do not support assessment return Unimplemented.
+     * 
+ */ + default void assessTables(io.cloudquery.plugin.v3.AssessTables.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAssessTablesMethod(), responseObserver); + } } /** @@ -732,6 +774,18 @@ public void testConnection(io.cloudquery.plugin.v3.TestConnection.Request reques io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestConnectionMethod(), getCallOptions()), request, responseObserver); } + + /** + *
+     * Assess how the destination plugin would apply table schema changes, without writing anything.
+     * Plugins that do not support assessment return Unimplemented.
+     * 
+ */ + public void assessTables(io.cloudquery.plugin.v3.AssessTables.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAssessTablesMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -880,6 +934,17 @@ public io.cloudquery.plugin.v3.TestConnection.Response testConnection(io.cloudqu return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestConnectionMethod(), getCallOptions(), request); } + + /** + *
+     * Assess how the destination plugin would apply table schema changes, without writing anything.
+     * Plugins that do not support assessment return Unimplemented.
+     * 
+ */ + public io.cloudquery.plugin.v3.AssessTables.Response assessTables(io.cloudquery.plugin.v3.AssessTables.Request request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAssessTablesMethod(), getCallOptions(), request); + } } /** @@ -1002,6 +1067,17 @@ public io.cloudquery.plugin.v3.TestConnection.Response testConnection(io.cloudqu return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestConnectionMethod(), getCallOptions(), request); } + + /** + *
+     * Assess how the destination plugin would apply table schema changes, without writing anything.
+     * Plugins that do not support assessment return Unimplemented.
+     * 
+ */ + public io.cloudquery.plugin.v3.AssessTables.Response assessTables(io.cloudquery.plugin.v3.AssessTables.Request request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAssessTablesMethod(), getCallOptions(), request); + } } /** @@ -1109,6 +1185,18 @@ public com.google.common.util.concurrent.ListenableFuture + * Assess how the destination plugin would apply table schema changes, without writing anything. + * Plugins that do not support assessment return Unimplemented. + * + */ + public com.google.common.util.concurrent.ListenableFuture assessTables( + io.cloudquery.plugin.v3.AssessTables.Request request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAssessTablesMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_NAME = 0; @@ -1121,8 +1209,9 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1181,6 +1270,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.testConnection((io.cloudquery.plugin.v3.TestConnection.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ASSESS_TABLES: + serviceImpl.assessTables((io.cloudquery.plugin.v3.AssessTables.Request) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1289,6 +1382,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser io.cloudquery.plugin.v3.TestConnection.Request, io.cloudquery.plugin.v3.TestConnection.Response>( service, METHODID_TEST_CONNECTION))) + .addMethod( + getAssessTablesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.cloudquery.plugin.v3.AssessTables.Request, + io.cloudquery.plugin.v3.AssessTables.Response>( + service, METHODID_ASSESS_TABLES))) .build(); } @@ -1349,6 +1449,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getTransformSchemaMethod()) .addMethod(getCloseMethod()) .addMethod(getTestConnectionMethod()) + .addMethod(getAssessTablesMethod()) .build(); } } 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 new file mode 100644 index 0000000..46ce626 --- /dev/null +++ b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTables.java @@ -0,0 +1,6997 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: cloudquery/plugin/v3/plugin.proto +// Protobuf Java Version: 4.36.2 + +package io.cloudquery.plugin.v3; + +/** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables} + */ +@com.google.protobuf.Generated +public final class AssessTables extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables) + AssessTablesOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "AssessTables"); + } + // Use AssessTables.newBuilder() to construct. + private AssessTables(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private AssessTables() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.class, io.cloudquery.plugin.v3.AssessTables.Builder.class); + } + + /** + * Protobuf enum {@code cloudquery.plugin.v3.AssessTables.Category} + */ + public enum Category + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CATEGORY_UNKNOWN = 0; + */ + CATEGORY_UNKNOWN(0), + /** + * CATEGORY_NO_CHANGE = 1; + */ + CATEGORY_NO_CHANGE(1), + /** + * CATEGORY_AUTOMATICALLY_MIGRATABLE = 2; + */ + CATEGORY_AUTOMATICALLY_MIGRATABLE(2), + /** + * CATEGORY_MANUAL_MIGRATION_REQUIRED = 3; + */ + CATEGORY_MANUAL_MIGRATION_REQUIRED(3), + /** + * CATEGORY_TABLE_REMOVED = 4; + */ + CATEGORY_TABLE_REMOVED(4), + /** + * CATEGORY_FILE_SCHEMA_CHANGED = 5; + */ + CATEGORY_FILE_SCHEMA_CHANGED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "Category"); + } + /** + * CATEGORY_UNKNOWN = 0; + */ + public static final int CATEGORY_UNKNOWN_VALUE = 0; + /** + * CATEGORY_NO_CHANGE = 1; + */ + public static final int CATEGORY_NO_CHANGE_VALUE = 1; + /** + * CATEGORY_AUTOMATICALLY_MIGRATABLE = 2; + */ + public static final int CATEGORY_AUTOMATICALLY_MIGRATABLE_VALUE = 2; + /** + * CATEGORY_MANUAL_MIGRATION_REQUIRED = 3; + */ + public static final int CATEGORY_MANUAL_MIGRATION_REQUIRED_VALUE = 3; + /** + * CATEGORY_TABLE_REMOVED = 4; + */ + public static final int CATEGORY_TABLE_REMOVED_VALUE = 4; + /** + * CATEGORY_FILE_SCHEMA_CHANGED = 5; + */ + public static final int CATEGORY_FILE_SCHEMA_CHANGED_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Category valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Category forNumber(int value) { + switch (value) { + case 0: return CATEGORY_UNKNOWN; + case 1: return CATEGORY_NO_CHANGE; + case 2: return CATEGORY_AUTOMATICALLY_MIGRATABLE; + case 3: return CATEGORY_MANUAL_MIGRATION_REQUIRED; + case 4: return CATEGORY_TABLE_REMOVED; + case 5: return CATEGORY_FILE_SCHEMA_CHANGED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Category> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Category findValueByNumber(int number) { + return Category.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValue(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.cloudquery.plugin.v3.AssessTables.getDescriptor().getEnumType(0); + } + + private static final Category[] VALUES = values(); + + public static Category valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Category(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:cloudquery.plugin.v3.AssessTables.Category) + } + + public interface TablePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables.TablePair) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * marshalled arrow.Schema, empty when the table is added
+     * 
+ * + * bytes old_table = 1; + * @return The oldTable. + */ + com.google.protobuf.ByteString getOldTable(); + + /** + *
+     * marshalled arrow.Schema, empty when the table is removed
+     * 
+ * + * bytes new_table = 2; + * @return The newTable. + */ + com.google.protobuf.ByteString getNewTable(); + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.TablePair} + */ + public static final class TablePair extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables.TablePair) + TablePairOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "TablePair"); + } + // Use TablePair.newBuilder() to construct. + private TablePair(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TablePair() { + oldTable_ = com.google.protobuf.ByteString.EMPTY; + newTable_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TablePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.TablePair.class, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder.class); + } + + public static final int OLD_TABLE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString oldTable_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * marshalled arrow.Schema, empty when the table is added
+     * 
+ * + * bytes old_table = 1; + * @return The oldTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldTable() { + return oldTable_; + } + + public static final int NEW_TABLE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString newTable_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * marshalled arrow.Schema, empty when the table is removed
+     * 
+ * + * bytes new_table = 2; + * @return The newTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewTable() { + return newTable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!oldTable_.isEmpty()) { + output.writeBytes(1, oldTable_); + } + if (!newTable_.isEmpty()) { + output.writeBytes(2, newTable_); + } + getUnknownFields().writeTo(output); + } + private int computeSerializedSize_0() { + int size = 0; + if (!oldTable_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, oldTable_); + } + if (!newTable_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, newTable_); + } + return size; + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += computeSerializedSize_0(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables.TablePair)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables.TablePair other = (io.cloudquery.plugin.v3.AssessTables.TablePair) obj; + + if (!getOldTable() + .equals(other.getOldTable())) return false; + if (!getNewTable() + .equals(other.getNewTable())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OLD_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getOldTable().hashCode(); + hash = (37 * hash) + NEW_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getNewTable().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.TablePair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables.TablePair 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.TablePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables.TablePair) + io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TablePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.TablePair.class, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.TablePair.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oldTable_ = com.google.protobuf.ByteString.EMPTY; + newTable_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TablePair getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.TablePair.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TablePair build() { + io.cloudquery.plugin.v3.AssessTables.TablePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TablePair buildPartial() { + io.cloudquery.plugin.v3.AssessTables.TablePair result = new io.cloudquery.plugin.v3.AssessTables.TablePair(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.TablePair result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.oldTable_ = oldTable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.newTable_ = newTable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables.TablePair) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables.TablePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.TablePair other) { + if (other == io.cloudquery.plugin.v3.AssessTables.TablePair.getDefaultInstance()) return this; + if (!other.getOldTable().isEmpty()) { + setOldTable(other.getOldTable()); + } + if (!other.getNewTable().isEmpty()) { + setNewTable(other.getNewTable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + oldTable_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + newTable_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString oldTable_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * marshalled arrow.Schema, empty when the table is added
+       * 
+ * + * bytes old_table = 1; + * @return The oldTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldTable() { + return oldTable_; + } + /** + *
+       * marshalled arrow.Schema, empty when the table is added
+       * 
+ * + * bytes old_table = 1; + * @param value The oldTable to set. + * @return This builder for chaining. + */ + public Builder setOldTable(com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + oldTable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * marshalled arrow.Schema, empty when the table is added
+       * 
+ * + * bytes old_table = 1; + * @return This builder for chaining. + */ + public Builder clearOldTable() { + bitField0_ = (bitField0_ & ~0x00000001); + oldTable_ = getDefaultInstance().getOldTable(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString newTable_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * marshalled arrow.Schema, empty when the table is removed
+       * 
+ * + * bytes new_table = 2; + * @return The newTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewTable() { + return newTable_; + } + /** + *
+       * marshalled arrow.Schema, empty when the table is removed
+       * 
+ * + * bytes new_table = 2; + * @param value The newTable to set. + * @return This builder for chaining. + */ + public Builder setNewTable(com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + newTable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * marshalled arrow.Schema, empty when the table is removed
+       * 
+ * + * bytes new_table = 2; + * @return This builder for chaining. + */ + public Builder clearNewTable() { + bitField0_ = (bitField0_ & ~0x00000002); + newTable_ = getDefaultInstance().getNewTable(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables.TablePair) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables.TablePair) + private static final io.cloudquery.plugin.v3.AssessTables.TablePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables.TablePair(); + } + + public static io.cloudquery.plugin.v3.AssessTables.TablePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TablePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TablePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EvidenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables.Evidence) + com.google.protobuf.MessageOrBuilder { + + /** + * string synthetic_value = 1; + * @return The syntheticValue. + */ + java.lang.String getSyntheticValue(); + /** + * string synthetic_value = 1; + * @return The bytes for syntheticValue. + */ + com.google.protobuf.ByteString + getSyntheticValueBytes(); + + /** + *
+     * Destination output for the synthetic value under the old and new schemas
+     * 
+ * + * string before = 2; + * @return The before. + */ + java.lang.String getBefore(); + /** + *
+     * Destination output for the synthetic value under the old and new schemas
+     * 
+ * + * string before = 2; + * @return The bytes for before. + */ + com.google.protobuf.ByteString + getBeforeBytes(); + + /** + * string after = 3; + * @return The after. + */ + java.lang.String getAfter(); + /** + * string after = 3; + * @return The bytes for after. + */ + com.google.protobuf.ByteString + getAfterBytes(); + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.Evidence} + */ + public static final class Evidence extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables.Evidence) + EvidenceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "Evidence"); + } + // Use Evidence.newBuilder() to construct. + private Evidence(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Evidence() { + syntheticValue_ = ""; + before_ = ""; + after_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Evidence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.Evidence.class, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder.class); + } + + public static final int SYNTHETIC_VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object syntheticValue_ = ""; + /** + * string synthetic_value = 1; + * @return The syntheticValue. + */ + @java.lang.Override + public java.lang.String getSyntheticValue() { + java.lang.Object ref = syntheticValue_; + 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(); + syntheticValue_ = s; + return s; + } + } + /** + * string synthetic_value = 1; + * @return The bytes for syntheticValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSyntheticValueBytes() { + java.lang.Object ref = syntheticValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + syntheticValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BEFORE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object before_ = ""; + /** + *
+     * Destination output for the synthetic value under the old and new schemas
+     * 
+ * + * string before = 2; + * @return The before. + */ + @java.lang.Override + public java.lang.String getBefore() { + java.lang.Object ref = before_; + 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(); + before_ = s; + return s; + } + } + /** + *
+     * Destination output for the synthetic value under the old and new schemas
+     * 
+ * + * string before = 2; + * @return The bytes for before. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBeforeBytes() { + java.lang.Object ref = before_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + before_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFTER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object after_ = ""; + /** + * string after = 3; + * @return The after. + */ + @java.lang.Override + public java.lang.String getAfter() { + java.lang.Object ref = after_; + 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(); + after_ = s; + return s; + } + } + /** + * string after = 3; + * @return The bytes for after. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAfterBytes() { + java.lang.Object ref = after_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + after_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(syntheticValue_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, syntheticValue_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(before_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, before_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(after_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, after_); + } + getUnknownFields().writeTo(output); + } + private int computeSerializedSize_0() { + int size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(syntheticValue_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, syntheticValue_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(before_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, before_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(after_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, after_); + } + return size; + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += computeSerializedSize_0(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables.Evidence)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables.Evidence other = (io.cloudquery.plugin.v3.AssessTables.Evidence) obj; + + if (!getSyntheticValue() + .equals(other.getSyntheticValue())) return false; + if (!getBefore() + .equals(other.getBefore())) return false; + if (!getAfter() + .equals(other.getAfter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNTHETIC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSyntheticValue().hashCode(); + hash = (37 * hash) + BEFORE_FIELD_NUMBER; + hash = (53 * hash) + getBefore().hashCode(); + hash = (37 * hash) + AFTER_FIELD_NUMBER; + hash = (53 * hash) + getAfter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.Evidence parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables.Evidence 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.Evidence} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables.Evidence) + io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Evidence_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.Evidence.class, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.Evidence.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + syntheticValue_ = ""; + before_ = ""; + after_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Evidence getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.Evidence.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Evidence build() { + io.cloudquery.plugin.v3.AssessTables.Evidence result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Evidence buildPartial() { + io.cloudquery.plugin.v3.AssessTables.Evidence result = new io.cloudquery.plugin.v3.AssessTables.Evidence(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.Evidence result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.syntheticValue_ = syntheticValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.before_ = before_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.after_ = after_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables.Evidence) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables.Evidence)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.Evidence other) { + if (other == io.cloudquery.plugin.v3.AssessTables.Evidence.getDefaultInstance()) return this; + if (!other.getSyntheticValue().isEmpty()) { + syntheticValue_ = other.syntheticValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBefore().isEmpty()) { + before_ = other.before_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAfter().isEmpty()) { + after_ = other.after_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + syntheticValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + before_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + after_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object syntheticValue_ = ""; + /** + * string synthetic_value = 1; + * @return The syntheticValue. + */ + public java.lang.String getSyntheticValue() { + java.lang.Object ref = syntheticValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + syntheticValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string synthetic_value = 1; + * @return The bytes for syntheticValue. + */ + public com.google.protobuf.ByteString + getSyntheticValueBytes() { + java.lang.Object ref = syntheticValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + syntheticValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string synthetic_value = 1; + * @param value The syntheticValue to set. + * @return This builder for chaining. + */ + public Builder setSyntheticValue( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + syntheticValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string synthetic_value = 1; + * @return This builder for chaining. + */ + public Builder clearSyntheticValue() { + syntheticValue_ = getDefaultInstance().getSyntheticValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string synthetic_value = 1; + * @param value The bytes for syntheticValue to set. + * @return This builder for chaining. + */ + public Builder setSyntheticValueBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + syntheticValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object before_ = ""; + /** + *
+       * Destination output for the synthetic value under the old and new schemas
+       * 
+ * + * string before = 2; + * @return The before. + */ + public java.lang.String getBefore() { + java.lang.Object ref = before_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + before_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Destination output for the synthetic value under the old and new schemas
+       * 
+ * + * string before = 2; + * @return The bytes for before. + */ + public com.google.protobuf.ByteString + getBeforeBytes() { + java.lang.Object ref = before_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + before_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Destination output for the synthetic value under the old and new schemas
+       * 
+ * + * string before = 2; + * @param value The before to set. + * @return This builder for chaining. + */ + public Builder setBefore( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + before_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Destination output for the synthetic value under the old and new schemas
+       * 
+ * + * string before = 2; + * @return This builder for chaining. + */ + public Builder clearBefore() { + before_ = getDefaultInstance().getBefore(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Destination output for the synthetic value under the old and new schemas
+       * 
+ * + * string before = 2; + * @param value The bytes for before to set. + * @return This builder for chaining. + */ + public Builder setBeforeBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + before_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object after_ = ""; + /** + * string after = 3; + * @return The after. + */ + public java.lang.String getAfter() { + java.lang.Object ref = after_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + after_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string after = 3; + * @return The bytes for after. + */ + public com.google.protobuf.ByteString + getAfterBytes() { + java.lang.Object ref = after_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + after_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string after = 3; + * @param value The after to set. + * @return This builder for chaining. + */ + public Builder setAfter( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + after_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string after = 3; + * @return This builder for chaining. + */ + public Builder clearAfter() { + after_ = getDefaultInstance().getAfter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string after = 3; + * @param value The bytes for after to set. + * @return This builder for chaining. + */ + public Builder setAfterBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + after_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables.Evidence) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables.Evidence) + private static final io.cloudquery.plugin.v3.AssessTables.Evidence DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables.Evidence(); + } + + public static io.cloudquery.plugin.v3.AssessTables.Evidence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Evidence parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Evidence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ColumnFindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables.ColumnFinding) + com.google.protobuf.MessageOrBuilder { + + /** + * string column_name = 1; + * @return The columnName. + */ + java.lang.String getColumnName(); + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The category. + */ + io.cloudquery.plugin.v3.AssessTables.Category getCategory(); + + /** + *
+     * Destination types, empty when the column is added or removed
+     * 
+ * + * string old_type = 3; + * @return The oldType. + */ + java.lang.String getOldType(); + /** + *
+     * Destination types, empty when the column is added or removed
+     * 
+ * + * string old_type = 3; + * @return The bytes for oldType. + */ + com.google.protobuf.ByteString + getOldTypeBytes(); + + /** + * string new_type = 4; + * @return The newType. + */ + java.lang.String getNewType(); + /** + * string new_type = 4; + * @return The bytes for newType. + */ + com.google.protobuf.ByteString + getNewTypeBytes(); + + /** + * string safe_mode_behavior = 5; + * @return The safeModeBehavior. + */ + java.lang.String getSafeModeBehavior(); + /** + * string safe_mode_behavior = 5; + * @return The bytes for safeModeBehavior. + */ + com.google.protobuf.ByteString + getSafeModeBehaviorBytes(); + + /** + * string forced_mode_behavior = 6; + * @return The forcedModeBehavior. + */ + java.lang.String getForcedModeBehavior(); + /** + * string forced_mode_behavior = 6; + * @return The bytes for forcedModeBehavior. + */ + com.google.protobuf.ByteString + getForcedModeBehaviorBytes(); + + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + java.util.List + getEvidenceList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + io.cloudquery.plugin.v3.AssessTables.Evidence getEvidence(int index); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + int getEvidenceCount(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + java.util.List + getEvidenceOrBuilderList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( + int index); + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.ColumnFinding} + */ + public static final class ColumnFinding extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables.ColumnFinding) + ColumnFindingOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "ColumnFinding"); + } + // Use ColumnFinding.newBuilder() to construct. + private ColumnFinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ColumnFinding() { + columnName_ = ""; + category_ = 0; + oldType_ = ""; + newType_ = ""; + safeModeBehavior_ = ""; + forcedModeBehavior_ = ""; + evidence_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.ColumnFinding.class, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder.class); + } + + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + @java.lang.Override + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + 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(); + columnName_ = s; + return s; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_FIELD_NUMBER = 2; + private int category_ = 0; + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override public int getCategoryValue() { + return category_; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The category. + */ + @java.lang.Override public io.cloudquery.plugin.v3.AssessTables.Category getCategory() { + io.cloudquery.plugin.v3.AssessTables.Category result = io.cloudquery.plugin.v3.AssessTables.Category.forNumber(category_); + return result == null ? io.cloudquery.plugin.v3.AssessTables.Category.UNRECOGNIZED : result; + } + + public static final int OLD_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object oldType_ = ""; + /** + *
+     * Destination types, empty when the column is added or removed
+     * 
+ * + * string old_type = 3; + * @return The oldType. + */ + @java.lang.Override + public java.lang.String getOldType() { + java.lang.Object ref = oldType_; + 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(); + oldType_ = s; + return s; + } + } + /** + *
+     * Destination types, empty when the column is added or removed
+     * 
+ * + * string old_type = 3; + * @return The bytes for oldType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOldTypeBytes() { + java.lang.Object ref = oldType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object newType_ = ""; + /** + * string new_type = 4; + * @return The newType. + */ + @java.lang.Override + public java.lang.String getNewType() { + java.lang.Object ref = newType_; + 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(); + newType_ = s; + return s; + } + } + /** + * string new_type = 4; + * @return The bytes for newType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNewTypeBytes() { + java.lang.Object ref = newType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAFE_MODE_BEHAVIOR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object safeModeBehavior_ = ""; + /** + * string safe_mode_behavior = 5; + * @return The safeModeBehavior. + */ + @java.lang.Override + public java.lang.String getSafeModeBehavior() { + java.lang.Object ref = safeModeBehavior_; + 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(); + safeModeBehavior_ = s; + return s; + } + } + /** + * string safe_mode_behavior = 5; + * @return The bytes for safeModeBehavior. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSafeModeBehaviorBytes() { + java.lang.Object ref = safeModeBehavior_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + safeModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCED_MODE_BEHAVIOR_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object forcedModeBehavior_ = ""; + /** + * string forced_mode_behavior = 6; + * @return The forcedModeBehavior. + */ + @java.lang.Override + public java.lang.String getForcedModeBehavior() { + java.lang.Object ref = forcedModeBehavior_; + 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(); + forcedModeBehavior_ = s; + return s; + } + } + /** + * string forced_mode_behavior = 6; + * @return The bytes for forcedModeBehavior. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getForcedModeBehaviorBytes() { + java.lang.Object ref = forcedModeBehavior_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + forcedModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVIDENCE_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List evidence_; + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + @java.lang.Override + public java.util.List getEvidenceList() { + return evidence_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + @java.lang.Override + public java.util.List + getEvidenceOrBuilderList() { + return evidence_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + @java.lang.Override + public int getEvidenceCount() { + return evidence_.size(); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Evidence getEvidence(int index) { + return evidence_.get(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( + int index) { + return evidence_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, columnName_); + } + if (category_ != io.cloudquery.plugin.v3.AssessTables.Category.CATEGORY_UNKNOWN.getNumber()) { + output.writeEnum(2, category_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oldType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, oldType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(newType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, newType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(safeModeBehavior_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, safeModeBehavior_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forcedModeBehavior_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, forcedModeBehavior_); + } + for (int i = 0; i < evidence_.size(); i++) { + output.writeMessage(7, evidence_.get(i)); + } + getUnknownFields().writeTo(output); + } + private int computeSerializedSize_0() { + int size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(columnName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, columnName_); + } + if (category_ != io.cloudquery.plugin.v3.AssessTables.Category.CATEGORY_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, category_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oldType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, oldType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(newType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, newType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(safeModeBehavior_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, safeModeBehavior_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forcedModeBehavior_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, forcedModeBehavior_); + } + + { + final int count = evidence_.size(); + for (int i = 0; i < count; i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSizeNoTag(evidence_.get(i)); + } + size += 1 * count; + } + return size; + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += computeSerializedSize_0(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables.ColumnFinding)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables.ColumnFinding other = (io.cloudquery.plugin.v3.AssessTables.ColumnFinding) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (category_ != other.category_) return false; + if (!getOldType() + .equals(other.getOldType())) return false; + if (!getNewType() + .equals(other.getNewType())) return false; + if (!getSafeModeBehavior() + .equals(other.getSafeModeBehavior())) return false; + if (!getForcedModeBehavior() + .equals(other.getForcedModeBehavior())) return false; + if (!getEvidenceList() + .equals(other.getEvidenceList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + OLD_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getOldType().hashCode(); + hash = (37 * hash) + NEW_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNewType().hashCode(); + hash = (37 * hash) + SAFE_MODE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getSafeModeBehavior().hashCode(); + hash = (37 * hash) + FORCED_MODE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getForcedModeBehavior().hashCode(); + if (getEvidenceCount() > 0) { + hash = (37 * hash) + EVIDENCE_FIELD_NUMBER; + hash = (53 * hash) + getEvidenceList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables.ColumnFinding 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.ColumnFinding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables.ColumnFinding) + io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.ColumnFinding.class, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.ColumnFinding.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + columnName_ = ""; + category_ = 0; + oldType_ = ""; + newType_ = ""; + safeModeBehavior_ = ""; + forcedModeBehavior_ = ""; + if (evidenceBuilder_ == null) { + evidence_ = java.util.Collections.emptyList(); + } else { + evidence_ = null; + evidenceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.ColumnFinding.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding build() { + io.cloudquery.plugin.v3.AssessTables.ColumnFinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding buildPartial() { + io.cloudquery.plugin.v3.AssessTables.ColumnFinding result = new io.cloudquery.plugin.v3.AssessTables.ColumnFinding(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.cloudquery.plugin.v3.AssessTables.ColumnFinding result) { + if (evidenceBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + evidence_ = java.util.Collections.unmodifiableList(evidence_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.evidence_ = evidence_; + } else { + result.evidence_ = evidenceBuilder_.build(); + } + } + + private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.ColumnFinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oldType_ = oldType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newType_ = newType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.safeModeBehavior_ = safeModeBehavior_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.forcedModeBehavior_ = forcedModeBehavior_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables.ColumnFinding) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables.ColumnFinding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.ColumnFinding other) { + if (other == io.cloudquery.plugin.v3.AssessTables.ColumnFinding.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (!other.getOldType().isEmpty()) { + oldType_ = other.oldType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNewType().isEmpty()) { + newType_ = other.newType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSafeModeBehavior().isEmpty()) { + safeModeBehavior_ = other.safeModeBehavior_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getForcedModeBehavior().isEmpty()) { + forcedModeBehavior_ = other.forcedModeBehavior_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (evidenceBuilder_ == null) { + if (!other.evidence_.isEmpty()) { + if (evidence_.isEmpty()) { + evidence_ = other.evidence_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureEvidenceIsMutable(); + evidence_.addAll(other.evidence_); + } + onChanged(); + } + } else { + if (!other.evidence_.isEmpty()) { + if (evidenceBuilder_.isEmpty()) { + evidenceBuilder_.dispose(); + evidenceBuilder_ = null; + evidence_ = other.evidence_; + bitField0_ = (bitField0_ & ~0x00000040); + evidenceBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetEvidenceFieldBuilder() : null; + } else { + evidenceBuilder_.addAllMessages(other.evidence_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + columnName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + category_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + oldType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + newType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + safeModeBehavior_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + forcedModeBehavior_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + io.cloudquery.plugin.v3.AssessTables.Evidence m = + input.readMessage( + io.cloudquery.plugin.v3.AssessTables.Evidence.parser(), + extensionRegistry); + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.add(m); + } else { + evidenceBuilder_.addMessage(m); + } + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnName( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + columnName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string column_name = 1; + * @return This builder for chaining. + */ + public Builder clearColumnName() { + columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + columnName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int category_ = 0; + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override public int getCategoryValue() { + return category_; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The category. + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Category getCategory() { + io.cloudquery.plugin.v3.AssessTables.Category result = io.cloudquery.plugin.v3.AssessTables.Category.forNumber(category_); + return result == null ? io.cloudquery.plugin.v3.AssessTables.Category.UNRECOGNIZED : result; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @param value The category to set. + * @throws IllegalArgumentException if UNRECOGNIZED is provided. + * @return This builder for chaining. + */ + public Builder setCategory(io.cloudquery.plugin.v3.AssessTables.Category value) { + java.util.Objects.requireNonNull(value); + bitField0_ |= 0x00000002; + category_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000002); + category_ = 0; + onChanged(); + return this; + } + + private java.lang.Object oldType_ = ""; + /** + *
+       * Destination types, empty when the column is added or removed
+       * 
+ * + * string old_type = 3; + * @return The oldType. + */ + public java.lang.String getOldType() { + java.lang.Object ref = oldType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Destination types, empty when the column is added or removed
+       * 
+ * + * string old_type = 3; + * @return The bytes for oldType. + */ + public com.google.protobuf.ByteString + getOldTypeBytes() { + java.lang.Object ref = oldType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + oldType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Destination types, empty when the column is added or removed
+       * 
+ * + * string old_type = 3; + * @param value The oldType to set. + * @return This builder for chaining. + */ + public Builder setOldType( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + oldType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Destination types, empty when the column is added or removed
+       * 
+ * + * string old_type = 3; + * @return This builder for chaining. + */ + public Builder clearOldType() { + oldType_ = getDefaultInstance().getOldType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Destination types, empty when the column is added or removed
+       * 
+ * + * string old_type = 3; + * @param value The bytes for oldType to set. + * @return This builder for chaining. + */ + public Builder setOldTypeBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + oldType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object newType_ = ""; + /** + * string new_type = 4; + * @return The newType. + */ + public java.lang.String getNewType() { + java.lang.Object ref = newType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string new_type = 4; + * @return The bytes for newType. + */ + public com.google.protobuf.ByteString + getNewTypeBytes() { + java.lang.Object ref = newType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string new_type = 4; + * @param value The newType to set. + * @return This builder for chaining. + */ + public Builder setNewType( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + newType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string new_type = 4; + * @return This builder for chaining. + */ + public Builder clearNewType() { + newType_ = getDefaultInstance().getNewType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string new_type = 4; + * @param value The bytes for newType to set. + * @return This builder for chaining. + */ + public Builder setNewTypeBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + newType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object safeModeBehavior_ = ""; + /** + * string safe_mode_behavior = 5; + * @return The safeModeBehavior. + */ + public java.lang.String getSafeModeBehavior() { + java.lang.Object ref = safeModeBehavior_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + safeModeBehavior_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string safe_mode_behavior = 5; + * @return The bytes for safeModeBehavior. + */ + public com.google.protobuf.ByteString + getSafeModeBehaviorBytes() { + java.lang.Object ref = safeModeBehavior_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + safeModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string safe_mode_behavior = 5; + * @param value The safeModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setSafeModeBehavior( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + safeModeBehavior_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string safe_mode_behavior = 5; + * @return This builder for chaining. + */ + public Builder clearSafeModeBehavior() { + safeModeBehavior_ = getDefaultInstance().getSafeModeBehavior(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string safe_mode_behavior = 5; + * @param value The bytes for safeModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setSafeModeBehaviorBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + safeModeBehavior_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object forcedModeBehavior_ = ""; + /** + * string forced_mode_behavior = 6; + * @return The forcedModeBehavior. + */ + public java.lang.String getForcedModeBehavior() { + java.lang.Object ref = forcedModeBehavior_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forcedModeBehavior_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string forced_mode_behavior = 6; + * @return The bytes for forcedModeBehavior. + */ + public com.google.protobuf.ByteString + getForcedModeBehaviorBytes() { + java.lang.Object ref = forcedModeBehavior_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + forcedModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string forced_mode_behavior = 6; + * @param value The forcedModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setForcedModeBehavior( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + forcedModeBehavior_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string forced_mode_behavior = 6; + * @return This builder for chaining. + */ + public Builder clearForcedModeBehavior() { + forcedModeBehavior_ = getDefaultInstance().getForcedModeBehavior(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string forced_mode_behavior = 6; + * @param value The bytes for forcedModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setForcedModeBehaviorBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + forcedModeBehavior_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List evidence_ = + java.util.Collections.emptyList(); + private void ensureEvidenceIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + evidence_ = new java.util.ArrayList(evidence_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.Evidence, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder, io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder> evidenceBuilder_; + + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public java.util.List getEvidenceList() { + if (evidenceBuilder_ == null) { + return java.util.Collections.unmodifiableList(evidence_); + } else { + return evidenceBuilder_.getMessageList(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public int getEvidenceCount() { + if (evidenceBuilder_ == null) { + return evidence_.size(); + } else { + return evidenceBuilder_.getCount(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence getEvidence(int index) { + if (evidenceBuilder_ == null) { + return evidence_.get(index); + } else { + return evidenceBuilder_.getMessage(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder setEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence value) { + if (evidenceBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureEvidenceIsMutable(); + evidence_.set(index, value); + onChanged(); + } else { + evidenceBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder setEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder builderForValue) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.set(index, builderForValue.build()); + onChanged(); + } else { + evidenceBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder addEvidence(io.cloudquery.plugin.v3.AssessTables.Evidence value) { + if (evidenceBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureEvidenceIsMutable(); + evidence_.add(value); + onChanged(); + } else { + evidenceBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder addEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence value) { + if (evidenceBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureEvidenceIsMutable(); + evidence_.add(index, value); + onChanged(); + } else { + evidenceBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder addEvidence( + io.cloudquery.plugin.v3.AssessTables.Evidence.Builder builderForValue) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.add(builderForValue.build()); + onChanged(); + } else { + evidenceBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder addEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder builderForValue) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.add(index, builderForValue.build()); + onChanged(); + } else { + evidenceBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder addAllEvidence( + java.lang.Iterable values) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, evidence_); + onChanged(); + } else { + evidenceBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder clearEvidence() { + if (evidenceBuilder_ == null) { + evidence_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + evidenceBuilder_.clear(); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public Builder removeEvidence(int index) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.remove(index); + onChanged(); + } else { + evidenceBuilder_.remove(index); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder getEvidenceBuilder( + int index) { + return internalGetEvidenceFieldBuilder().getBuilder(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( + int index) { + if (evidenceBuilder_ == null) { + return evidence_.get(index); } else { + return evidenceBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public java.util.List + getEvidenceOrBuilderList() { + if (evidenceBuilder_ != null) { + return evidenceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evidence_); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder addEvidenceBuilder() { + return internalGetEvidenceFieldBuilder().addBuilder( + io.cloudquery.plugin.v3.AssessTables.Evidence.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder addEvidenceBuilder( + int index) { + return internalGetEvidenceFieldBuilder().addBuilder( + index, io.cloudquery.plugin.v3.AssessTables.Evidence.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 7; + */ + public java.util.List + getEvidenceBuilderList() { + return internalGetEvidenceFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.Evidence, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder, io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder> + internalGetEvidenceFieldBuilder() { + if (evidenceBuilder_ == null) { + evidenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.Evidence, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder, io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder>( + evidence_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + evidence_ = null; + } + return evidenceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables.ColumnFinding) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables.ColumnFinding) + private static final io.cloudquery.plugin.v3.AssessTables.ColumnFinding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables.ColumnFinding(); + } + + public static io.cloudquery.plugin.v3.AssessTables.ColumnFinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnFinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TableFindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables.TableFinding) + com.google.protobuf.MessageOrBuilder { + + /** + * string table_name = 1; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * string table_name = 1; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The category. + */ + io.cloudquery.plugin.v3.AssessTables.Category getCategory(); + + /** + * string safe_mode_behavior = 3; + * @return The safeModeBehavior. + */ + java.lang.String getSafeModeBehavior(); + /** + * string safe_mode_behavior = 3; + * @return The bytes for safeModeBehavior. + */ + com.google.protobuf.ByteString + getSafeModeBehaviorBytes(); + + /** + * string forced_mode_behavior = 4; + * @return The forcedModeBehavior. + */ + java.lang.String getForcedModeBehavior(); + /** + * string forced_mode_behavior = 4; + * @return The bytes for forcedModeBehavior. + */ + com.google.protobuf.ByteString + getForcedModeBehaviorBytes(); + + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + java.util.List + getColumnsList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + io.cloudquery.plugin.v3.AssessTables.ColumnFinding getColumns(int index); + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + int getColumnsCount(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + java.util.List + getColumnsOrBuilderList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder getColumnsOrBuilder( + int index); + + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + java.util.List + getEvidenceList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + io.cloudquery.plugin.v3.AssessTables.Evidence getEvidence(int index); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + int getEvidenceCount(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + java.util.List + getEvidenceOrBuilderList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + 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. + */ + java.lang.String getCoverageIncompleteReason(); + /** + * string coverage_incomplete_reason = 8; + * @return The bytes for coverageIncompleteReason. + */ + com.google.protobuf.ByteString + getCoverageIncompleteReasonBytes(); + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.TableFinding} + */ + public static final class TableFinding extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables.TableFinding) + TableFindingOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "TableFinding"); + } + // Use TableFinding.newBuilder() to construct. + private TableFinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TableFinding() { + tableName_ = ""; + category_ = 0; + safeModeBehavior_ = ""; + forcedModeBehavior_ = ""; + columns_ = java.util.Collections.emptyList(); + evidence_ = java.util.Collections.emptyList(); + coverageIncompleteReason_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.TableFinding.class, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder.class); + } + + public static final int TABLE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object tableName_ = ""; + /** + * string table_name = 1; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + 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(); + tableName_ = s; + return s; + } + } + /** + * string table_name = 1; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_FIELD_NUMBER = 2; + private int category_ = 0; + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override public int getCategoryValue() { + return category_; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The category. + */ + @java.lang.Override public io.cloudquery.plugin.v3.AssessTables.Category getCategory() { + io.cloudquery.plugin.v3.AssessTables.Category result = io.cloudquery.plugin.v3.AssessTables.Category.forNumber(category_); + return result == null ? io.cloudquery.plugin.v3.AssessTables.Category.UNRECOGNIZED : result; + } + + public static final int SAFE_MODE_BEHAVIOR_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object safeModeBehavior_ = ""; + /** + * string safe_mode_behavior = 3; + * @return The safeModeBehavior. + */ + @java.lang.Override + public java.lang.String getSafeModeBehavior() { + java.lang.Object ref = safeModeBehavior_; + 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(); + safeModeBehavior_ = s; + return s; + } + } + /** + * string safe_mode_behavior = 3; + * @return The bytes for safeModeBehavior. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSafeModeBehaviorBytes() { + java.lang.Object ref = safeModeBehavior_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + safeModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCED_MODE_BEHAVIOR_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object forcedModeBehavior_ = ""; + /** + * string forced_mode_behavior = 4; + * @return The forcedModeBehavior. + */ + @java.lang.Override + public java.lang.String getForcedModeBehavior() { + java.lang.Object ref = forcedModeBehavior_; + 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(); + forcedModeBehavior_ = s; + return s; + } + } + /** + * string forced_mode_behavior = 4; + * @return The bytes for forcedModeBehavior. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getForcedModeBehaviorBytes() { + java.lang.Object ref = forcedModeBehavior_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + forcedModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List columns_; + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + @java.lang.Override + public java.util.List getColumnsList() { + return columns_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + @java.lang.Override + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding getColumns(int index) { + return columns_.get(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder getColumnsOrBuilder( + int index) { + return columns_.get(index); + } + + public static final int EVIDENCE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List evidence_; + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + @java.lang.Override + public java.util.List getEvidenceList() { + return evidence_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + @java.lang.Override + public java.util.List + getEvidenceOrBuilderList() { + return evidence_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + @java.lang.Override + public int getEvidenceCount() { + return evidence_.size(); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Evidence getEvidence(int index) { + return evidence_.get(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( + int index) { + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object coverageIncompleteReason_ = ""; + /** + * string coverage_incomplete_reason = 8; + * @return The coverageIncompleteReason. + */ + @java.lang.Override + public java.lang.String getCoverageIncompleteReason() { + java.lang.Object ref = coverageIncompleteReason_; + 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; + return s; + } + } + /** + * string coverage_incomplete_reason = 8; + * @return The bytes for coverageIncompleteReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCoverageIncompleteReasonBytes() { + java.lang.Object ref = coverageIncompleteReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + coverageIncompleteReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tableName_); + } + if (category_ != io.cloudquery.plugin.v3.AssessTables.Category.CATEGORY_UNKNOWN.getNumber()) { + output.writeEnum(2, category_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(safeModeBehavior_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, safeModeBehavior_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forcedModeBehavior_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, forcedModeBehavior_); + } + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(5, columns_.get(i)); + } + 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_); + } + getUnknownFields().writeTo(output); + } + private int computeSerializedSize_0() { + int size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tableName_); + } + if (category_ != io.cloudquery.plugin.v3.AssessTables.Category.CATEGORY_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, category_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(safeModeBehavior_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, safeModeBehavior_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forcedModeBehavior_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, forcedModeBehavior_); + } + + { + final int count = columns_.size(); + for (int i = 0; i < count; i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSizeNoTag(columns_.get(i)); + } + size += 1 * count; + } + + { + final int count = evidence_.size(); + for (int i = 0; i < count; i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSizeNoTag(evidence_.get(i)); + } + 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_); + } + return size; + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += computeSerializedSize_0(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables.TableFinding)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables.TableFinding other = (io.cloudquery.plugin.v3.AssessTables.TableFinding) obj; + + if (!getTableName() + .equals(other.getTableName())) return false; + if (category_ != other.category_) return false; + if (!getSafeModeBehavior() + .equals(other.getSafeModeBehavior())) return false; + if (!getForcedModeBehavior() + .equals(other.getForcedModeBehavior())) return false; + if (!getColumnsList() + .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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + SAFE_MODE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getSafeModeBehavior().hashCode(); + hash = (37 * hash) + FORCED_MODE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getForcedModeBehavior().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + if (getEvidenceCount() > 0) { + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.TableFinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables.TableFinding 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.TableFinding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables.TableFinding) + io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.TableFinding.class, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.TableFinding.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tableName_ = ""; + category_ = 0; + safeModeBehavior_ = ""; + forcedModeBehavior_ = ""; + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + } else { + columns_ = null; + columnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (evidenceBuilder_ == null) { + evidence_ = java.util.Collections.emptyList(); + } else { + evidence_ = null; + evidenceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + coverageIncomplete_ = false; + coverageIncompleteReason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TableFinding getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.TableFinding.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TableFinding build() { + io.cloudquery.plugin.v3.AssessTables.TableFinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TableFinding buildPartial() { + io.cloudquery.plugin.v3.AssessTables.TableFinding result = new io.cloudquery.plugin.v3.AssessTables.TableFinding(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.cloudquery.plugin.v3.AssessTables.TableFinding result) { + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + if (evidenceBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + evidence_ = java.util.Collections.unmodifiableList(evidence_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.evidence_ = evidence_; + } else { + result.evidence_ = evidenceBuilder_.build(); + } + } + + private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.TableFinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tableName_ = tableName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.safeModeBehavior_ = safeModeBehavior_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.forcedModeBehavior_ = forcedModeBehavior_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.coverageIncomplete_ = coverageIncomplete_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.coverageIncompleteReason_ = coverageIncompleteReason_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables.TableFinding) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables.TableFinding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.TableFinding other) { + if (other == io.cloudquery.plugin.v3.AssessTables.TableFinding.getDefaultInstance()) return this; + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (!other.getSafeModeBehavior().isEmpty()) { + safeModeBehavior_ = other.safeModeBehavior_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getForcedModeBehavior().isEmpty()) { + forcedModeBehavior_ = other.forcedModeBehavior_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000010); + columnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + if (evidenceBuilder_ == null) { + if (!other.evidence_.isEmpty()) { + if (evidence_.isEmpty()) { + evidence_ = other.evidence_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureEvidenceIsMutable(); + evidence_.addAll(other.evidence_); + } + onChanged(); + } + } else { + if (!other.evidence_.isEmpty()) { + if (evidenceBuilder_.isEmpty()) { + evidenceBuilder_.dispose(); + evidenceBuilder_ = null; + evidence_ = other.evidence_; + bitField0_ = (bitField0_ & ~0x00000020); + evidenceBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetEvidenceFieldBuilder() : null; + } else { + evidenceBuilder_.addAllMessages(other.evidence_); + } + } + } + if (other.getCoverageIncomplete() != false) { + setCoverageIncomplete(other.getCoverageIncomplete()); + } + if (!other.getCoverageIncompleteReason().isEmpty()) { + coverageIncompleteReason_ = other.coverageIncompleteReason_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + category_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + safeModeBehavior_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + forcedModeBehavior_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + io.cloudquery.plugin.v3.AssessTables.ColumnFinding m = + input.readMessage( + io.cloudquery.plugin.v3.AssessTables.ColumnFinding.parser(), + extensionRegistry); + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(m); + } else { + columnsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + io.cloudquery.plugin.v3.AssessTables.Evidence m = + input.readMessage( + io.cloudquery.plugin.v3.AssessTables.Evidence.parser(), + extensionRegistry); + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.add(m); + } else { + evidenceBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + coverageIncomplete_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + coverageIncompleteReason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object tableName_ = ""; + /** + * string table_name = 1; + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string table_name = 1; + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string table_name = 1; + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + tableName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string table_name = 1; + * @return This builder for chaining. + */ + public Builder clearTableName() { + tableName_ = getDefaultInstance().getTableName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string table_name = 1; + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + tableName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int category_ = 0; + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override public int getCategoryValue() { + return category_; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return The category. + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Category getCategory() { + io.cloudquery.plugin.v3.AssessTables.Category result = io.cloudquery.plugin.v3.AssessTables.Category.forNumber(category_); + return result == null ? io.cloudquery.plugin.v3.AssessTables.Category.UNRECOGNIZED : result; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @param value The category to set. + * @throws IllegalArgumentException if UNRECOGNIZED is provided. + * @return This builder for chaining. + */ + public Builder setCategory(io.cloudquery.plugin.v3.AssessTables.Category value) { + java.util.Objects.requireNonNull(value); + bitField0_ |= 0x00000002; + category_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .cloudquery.plugin.v3.AssessTables.Category category = 2; + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000002); + category_ = 0; + onChanged(); + return this; + } + + private java.lang.Object safeModeBehavior_ = ""; + /** + * string safe_mode_behavior = 3; + * @return The safeModeBehavior. + */ + public java.lang.String getSafeModeBehavior() { + java.lang.Object ref = safeModeBehavior_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + safeModeBehavior_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string safe_mode_behavior = 3; + * @return The bytes for safeModeBehavior. + */ + public com.google.protobuf.ByteString + getSafeModeBehaviorBytes() { + java.lang.Object ref = safeModeBehavior_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + safeModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string safe_mode_behavior = 3; + * @param value The safeModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setSafeModeBehavior( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + safeModeBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string safe_mode_behavior = 3; + * @return This builder for chaining. + */ + public Builder clearSafeModeBehavior() { + safeModeBehavior_ = getDefaultInstance().getSafeModeBehavior(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string safe_mode_behavior = 3; + * @param value The bytes for safeModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setSafeModeBehaviorBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + safeModeBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object forcedModeBehavior_ = ""; + /** + * string forced_mode_behavior = 4; + * @return The forcedModeBehavior. + */ + public java.lang.String getForcedModeBehavior() { + java.lang.Object ref = forcedModeBehavior_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forcedModeBehavior_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string forced_mode_behavior = 4; + * @return The bytes for forcedModeBehavior. + */ + public com.google.protobuf.ByteString + getForcedModeBehaviorBytes() { + java.lang.Object ref = forcedModeBehavior_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + forcedModeBehavior_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string forced_mode_behavior = 4; + * @param value The forcedModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setForcedModeBehavior( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + forcedModeBehavior_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string forced_mode_behavior = 4; + * @return This builder for chaining. + */ + public Builder clearForcedModeBehavior() { + forcedModeBehavior_ = getDefaultInstance().getForcedModeBehavior(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string forced_mode_behavior = 4; + * @param value The bytes for forcedModeBehavior to set. + * @return This builder for chaining. + */ + public Builder setForcedModeBehaviorBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + forcedModeBehavior_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.ColumnFinding, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder, io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder> columnsBuilder_; + + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder setColumns( + int index, io.cloudquery.plugin.v3.AssessTables.ColumnFinding value) { + if (columnsBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder setColumns( + int index, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder addColumns(io.cloudquery.plugin.v3.AssessTables.ColumnFinding value) { + if (columnsBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder addColumns( + int index, io.cloudquery.plugin.v3.AssessTables.ColumnFinding value) { + if (columnsBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder addColumns( + io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder addColumns( + int index, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder getColumnsBuilder( + int index) { + return internalGetColumnsFieldBuilder().getBuilder(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder addColumnsBuilder() { + return internalGetColumnsFieldBuilder().addBuilder( + io.cloudquery.plugin.v3.AssessTables.ColumnFinding.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder addColumnsBuilder( + int index) { + return internalGetColumnsFieldBuilder().addBuilder( + index, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.ColumnFinding columns = 5; + */ + public java.util.List + getColumnsBuilderList() { + return internalGetColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.ColumnFinding, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder, io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder> + internalGetColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.ColumnFinding, io.cloudquery.plugin.v3.AssessTables.ColumnFinding.Builder, io.cloudquery.plugin.v3.AssessTables.ColumnFindingOrBuilder>( + columns_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + private java.util.List evidence_ = + java.util.Collections.emptyList(); + private void ensureEvidenceIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + evidence_ = new java.util.ArrayList(evidence_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.Evidence, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder, io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder> evidenceBuilder_; + + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public java.util.List getEvidenceList() { + if (evidenceBuilder_ == null) { + return java.util.Collections.unmodifiableList(evidence_); + } else { + return evidenceBuilder_.getMessageList(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public int getEvidenceCount() { + if (evidenceBuilder_ == null) { + return evidence_.size(); + } else { + return evidenceBuilder_.getCount(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence getEvidence(int index) { + if (evidenceBuilder_ == null) { + return evidence_.get(index); + } else { + return evidenceBuilder_.getMessage(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder setEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence value) { + if (evidenceBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureEvidenceIsMutable(); + evidence_.set(index, value); + onChanged(); + } else { + evidenceBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder setEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder builderForValue) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.set(index, builderForValue.build()); + onChanged(); + } else { + evidenceBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder addEvidence(io.cloudquery.plugin.v3.AssessTables.Evidence value) { + if (evidenceBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureEvidenceIsMutable(); + evidence_.add(value); + onChanged(); + } else { + evidenceBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder addEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence value) { + if (evidenceBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureEvidenceIsMutable(); + evidence_.add(index, value); + onChanged(); + } else { + evidenceBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder addEvidence( + io.cloudquery.plugin.v3.AssessTables.Evidence.Builder builderForValue) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.add(builderForValue.build()); + onChanged(); + } else { + evidenceBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder addEvidence( + int index, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder builderForValue) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.add(index, builderForValue.build()); + onChanged(); + } else { + evidenceBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder addAllEvidence( + java.lang.Iterable values) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, evidence_); + onChanged(); + } else { + evidenceBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder clearEvidence() { + if (evidenceBuilder_ == null) { + evidence_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + evidenceBuilder_.clear(); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public Builder removeEvidence(int index) { + if (evidenceBuilder_ == null) { + ensureEvidenceIsMutable(); + evidence_.remove(index); + onChanged(); + } else { + evidenceBuilder_.remove(index); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder getEvidenceBuilder( + int index) { + return internalGetEvidenceFieldBuilder().getBuilder(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder getEvidenceOrBuilder( + int index) { + if (evidenceBuilder_ == null) { + return evidence_.get(index); } else { + return evidenceBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public java.util.List + getEvidenceOrBuilderList() { + if (evidenceBuilder_ != null) { + return evidenceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evidence_); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder addEvidenceBuilder() { + return internalGetEvidenceFieldBuilder().addBuilder( + io.cloudquery.plugin.v3.AssessTables.Evidence.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public io.cloudquery.plugin.v3.AssessTables.Evidence.Builder addEvidenceBuilder( + int index) { + return internalGetEvidenceFieldBuilder().addBuilder( + index, io.cloudquery.plugin.v3.AssessTables.Evidence.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.Evidence evidence = 6; + */ + public java.util.List + getEvidenceBuilderList() { + return internalGetEvidenceFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.Evidence, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder, io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder> + internalGetEvidenceFieldBuilder() { + if (evidenceBuilder_ == null) { + evidenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.Evidence, io.cloudquery.plugin.v3.AssessTables.Evidence.Builder, io.cloudquery.plugin.v3.AssessTables.EvidenceOrBuilder>( + evidence_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + evidence_ = null; + } + return evidenceBuilder_; + } + + private boolean coverageIncomplete_ ; + /** + * 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. + */ + public java.lang.String getCoverageIncompleteReason() { + java.lang.Object ref = coverageIncompleteReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + coverageIncompleteReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string coverage_incomplete_reason = 8; + * @return The bytes for coverageIncompleteReason. + */ + public com.google.protobuf.ByteString + getCoverageIncompleteReasonBytes() { + java.lang.Object ref = coverageIncompleteReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + coverageIncompleteReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string coverage_incomplete_reason = 8; + * @param value The coverageIncompleteReason to set. + * @return This builder for chaining. + */ + public Builder setCoverageIncompleteReason( + java.lang.String value) { + java.util.Objects.requireNonNull(value); + coverageIncompleteReason_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * string coverage_incomplete_reason = 8; + * @return This builder for chaining. + */ + public Builder clearCoverageIncompleteReason() { + coverageIncompleteReason_ = getDefaultInstance().getCoverageIncompleteReason(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * string coverage_incomplete_reason = 8; + * @param value The bytes for coverageIncompleteReason to set. + * @return This builder for chaining. + */ + public Builder setCoverageIncompleteReasonBytes( + com.google.protobuf.ByteString value) { + java.util.Objects.requireNonNull(value); + checkByteStringIsUtf8(value); + coverageIncompleteReason_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables.TableFinding) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables.TableFinding) + private static final io.cloudquery.plugin.v3.AssessTables.TableFinding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables.TableFinding(); + } + + public static io.cloudquery.plugin.v3.AssessTables.TableFinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableFinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TableFinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables.Request) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + java.util.List + getTablesList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + io.cloudquery.plugin.v3.AssessTables.TablePair getTables(int index); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + int getTablesCount(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + java.util.List + getTablesOrBuilderList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder getTablesOrBuilder( + int index); + + /** + * bool migrate_force = 2; + * @return The migrateForce. + */ + boolean getMigrateForce(); + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.Request} + */ + public static final class Request extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables.Request) + RequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "Request"); + } + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Request() { + tables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.Request.class, io.cloudquery.plugin.v3.AssessTables.Request.Builder.class); + } + + public static final int TABLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List tables_; + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + @java.lang.Override + public java.util.List getTablesList() { + return tables_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + @java.lang.Override + public java.util.List + getTablesOrBuilderList() { + return tables_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + @java.lang.Override + public int getTablesCount() { + return tables_.size(); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TablePair getTables(int index) { + return tables_.get(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder getTablesOrBuilder( + int index) { + return tables_.get(index); + } + + public static final int MIGRATE_FORCE_FIELD_NUMBER = 2; + private boolean migrateForce_ = false; + /** + * bool migrate_force = 2; + * @return The migrateForce. + */ + @java.lang.Override + public boolean getMigrateForce() { + return migrateForce_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tables_.size(); i++) { + output.writeMessage(1, tables_.get(i)); + } + if (migrateForce_ != false) { + output.writeBool(2, migrateForce_); + } + getUnknownFields().writeTo(output); + } + private int computeSerializedSize_0() { + int size = 0; + + { + final int count = tables_.size(); + for (int i = 0; i < count; i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSizeNoTag(tables_.get(i)); + } + size += 1 * count; + } + if (migrateForce_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, migrateForce_); + } + return size; + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += computeSerializedSize_0(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables.Request)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables.Request other = (io.cloudquery.plugin.v3.AssessTables.Request) obj; + + if (!getTablesList() + .equals(other.getTablesList())) return false; + if (getMigrateForce() + != other.getMigrateForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTablesCount() > 0) { + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTablesList().hashCode(); + } + hash = (37 * hash) + MIGRATE_FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMigrateForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables.Request parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables.Request parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.Request parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables.Request 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.Request} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables.Request) + io.cloudquery.plugin.v3.AssessTables.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.Request.class, io.cloudquery.plugin.v3.AssessTables.Request.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.Request.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + } else { + tables_ = null; + tablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + migrateForce_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Request getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.Request.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Request build() { + io.cloudquery.plugin.v3.AssessTables.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Request buildPartial() { + io.cloudquery.plugin.v3.AssessTables.Request result = new io.cloudquery.plugin.v3.AssessTables.Request(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.cloudquery.plugin.v3.AssessTables.Request result) { + if (tablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tables_ = java.util.Collections.unmodifiableList(tables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tables_ = tables_; + } else { + result.tables_ = tablesBuilder_.build(); + } + } + + private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.Request result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.migrateForce_ = migrateForce_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables.Request) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.Request other) { + if (other == io.cloudquery.plugin.v3.AssessTables.Request.getDefaultInstance()) return this; + if (tablesBuilder_ == null) { + if (!other.tables_.isEmpty()) { + if (tables_.isEmpty()) { + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTablesIsMutable(); + tables_.addAll(other.tables_); + } + onChanged(); + } + } else { + if (!other.tables_.isEmpty()) { + if (tablesBuilder_.isEmpty()) { + tablesBuilder_.dispose(); + tablesBuilder_ = null; + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000001); + tablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetTablesFieldBuilder() : null; + } else { + tablesBuilder_.addAllMessages(other.tables_); + } + } + } + if (other.getMigrateForce() != false) { + setMigrateForce(other.getMigrateForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.cloudquery.plugin.v3.AssessTables.TablePair m = + input.readMessage( + io.cloudquery.plugin.v3.AssessTables.TablePair.parser(), + extensionRegistry); + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(m); + } else { + tablesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + migrateForce_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List tables_ = + java.util.Collections.emptyList(); + private void ensureTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tables_ = new java.util.ArrayList(tables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.TablePair, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder, io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder> tablesBuilder_; + + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public java.util.List getTablesList() { + if (tablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tables_); + } else { + return tablesBuilder_.getMessageList(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public int getTablesCount() { + if (tablesBuilder_ == null) { + return tables_.size(); + } else { + return tablesBuilder_.getCount(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TablePair getTables(int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); + } else { + return tablesBuilder_.getMessage(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder setTables( + int index, io.cloudquery.plugin.v3.AssessTables.TablePair value) { + if (tablesBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureTablesIsMutable(); + tables_.set(index, value); + onChanged(); + } else { + tablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder setTables( + int index, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.set(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder addTables(io.cloudquery.plugin.v3.AssessTables.TablePair value) { + if (tablesBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureTablesIsMutable(); + tables_.add(value); + onChanged(); + } else { + tablesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder addTables( + int index, io.cloudquery.plugin.v3.AssessTables.TablePair value) { + if (tablesBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureTablesIsMutable(); + tables_.add(index, value); + onChanged(); + } else { + tablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder addTables( + io.cloudquery.plugin.v3.AssessTables.TablePair.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder addTables( + int index, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder addAllTables( + java.lang.Iterable values) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tables_); + onChanged(); + } else { + tablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder clearTables() { + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tablesBuilder_.clear(); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public Builder removeTables(int index) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.remove(index); + onChanged(); + } else { + tablesBuilder_.remove(index); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TablePair.Builder getTablesBuilder( + int index) { + return internalGetTablesFieldBuilder().getBuilder(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder getTablesOrBuilder( + int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); } else { + return tablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public java.util.List + getTablesOrBuilderList() { + if (tablesBuilder_ != null) { + return tablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tables_); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TablePair.Builder addTablesBuilder() { + return internalGetTablesFieldBuilder().addBuilder( + io.cloudquery.plugin.v3.AssessTables.TablePair.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TablePair.Builder addTablesBuilder( + int index) { + return internalGetTablesFieldBuilder().addBuilder( + index, io.cloudquery.plugin.v3.AssessTables.TablePair.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TablePair tables = 1; + */ + public java.util.List + getTablesBuilderList() { + return internalGetTablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.TablePair, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder, io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder> + internalGetTablesFieldBuilder() { + if (tablesBuilder_ == null) { + tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.TablePair, io.cloudquery.plugin.v3.AssessTables.TablePair.Builder, io.cloudquery.plugin.v3.AssessTables.TablePairOrBuilder>( + tables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tables_ = null; + } + return tablesBuilder_; + } + + private boolean migrateForce_ ; + /** + * bool migrate_force = 2; + * @return The migrateForce. + */ + @java.lang.Override + public boolean getMigrateForce() { + return migrateForce_; + } + /** + * bool migrate_force = 2; + * @param value The migrateForce to set. + * @return This builder for chaining. + */ + public Builder setMigrateForce(boolean value) { + + migrateForce_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool migrate_force = 2; + * @return This builder for chaining. + */ + public Builder clearMigrateForce() { + bitField0_ = (bitField0_ & ~0x00000002); + migrateForce_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables.Request) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables.Request) + private static final io.cloudquery.plugin.v3.AssessTables.Request DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables.Request(); + } + + public static io.cloudquery.plugin.v3.AssessTables.Request getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables.Response) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + java.util.List + getTablesList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + io.cloudquery.plugin.v3.AssessTables.TableFinding getTables(int index); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + int getTablesCount(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + java.util.List + getTablesOrBuilderList(); + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder getTablesOrBuilder( + int index); + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.Response} + */ + public static final class Response extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cloudquery.plugin.v3.AssessTables.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 36, + /* patch= */ 2, + /* suffix= */ "", + "Response"); + } + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Response() { + tables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.Response.class, io.cloudquery.plugin.v3.AssessTables.Response.Builder.class); + } + + public static final int TABLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List tables_; + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + @java.lang.Override + public java.util.List getTablesList() { + return tables_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + @java.lang.Override + public java.util.List + getTablesOrBuilderList() { + return tables_; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + @java.lang.Override + public int getTablesCount() { + return tables_.size(); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TableFinding getTables(int index) { + return tables_.get(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder getTablesOrBuilder( + int index) { + return tables_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tables_.size(); i++) { + output.writeMessage(1, tables_.get(i)); + } + getUnknownFields().writeTo(output); + } + private int computeSerializedSize_0() { + int size = 0; + + { + final int count = tables_.size(); + for (int i = 0; i < count; i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSizeNoTag(tables_.get(i)); + } + size += 1 * count; + } + return size; + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += computeSerializedSize_0(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables.Response)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables.Response other = (io.cloudquery.plugin.v3.AssessTables.Response) obj; + + if (!getTablesList() + .equals(other.getTablesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTablesCount() > 0) { + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables.Response parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables.Response parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables.Response parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables.Response 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables.Response} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables.Response) + io.cloudquery.plugin.v3.AssessTables.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.Response.class, io.cloudquery.plugin.v3.AssessTables.Response.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.Response.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + } else { + tables_ = null; + tablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Response getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.Response.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Response build() { + io.cloudquery.plugin.v3.AssessTables.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Response buildPartial() { + io.cloudquery.plugin.v3.AssessTables.Response result = new io.cloudquery.plugin.v3.AssessTables.Response(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.cloudquery.plugin.v3.AssessTables.Response result) { + if (tablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tables_ = java.util.Collections.unmodifiableList(tables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tables_ = tables_; + } else { + result.tables_ = tablesBuilder_.build(); + } + } + + private void buildPartial0(io.cloudquery.plugin.v3.AssessTables.Response result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables.Response) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables.Response)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables.Response other) { + if (other == io.cloudquery.plugin.v3.AssessTables.Response.getDefaultInstance()) return this; + if (tablesBuilder_ == null) { + if (!other.tables_.isEmpty()) { + if (tables_.isEmpty()) { + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTablesIsMutable(); + tables_.addAll(other.tables_); + } + onChanged(); + } + } else { + if (!other.tables_.isEmpty()) { + if (tablesBuilder_.isEmpty()) { + tablesBuilder_.dispose(); + tablesBuilder_ = null; + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000001); + tablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + internalGetTablesFieldBuilder() : null; + } else { + tablesBuilder_.addAllMessages(other.tables_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.cloudquery.plugin.v3.AssessTables.TableFinding m = + input.readMessage( + io.cloudquery.plugin.v3.AssessTables.TableFinding.parser(), + extensionRegistry); + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(m); + } else { + tablesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List tables_ = + java.util.Collections.emptyList(); + private void ensureTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tables_ = new java.util.ArrayList(tables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.TableFinding, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder, io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder> tablesBuilder_; + + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public java.util.List getTablesList() { + if (tablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tables_); + } else { + return tablesBuilder_.getMessageList(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public int getTablesCount() { + if (tablesBuilder_ == null) { + return tables_.size(); + } else { + return tablesBuilder_.getCount(); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TableFinding getTables(int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); + } else { + return tablesBuilder_.getMessage(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder setTables( + int index, io.cloudquery.plugin.v3.AssessTables.TableFinding value) { + if (tablesBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureTablesIsMutable(); + tables_.set(index, value); + onChanged(); + } else { + tablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder setTables( + int index, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.set(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder addTables(io.cloudquery.plugin.v3.AssessTables.TableFinding value) { + if (tablesBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureTablesIsMutable(); + tables_.add(value); + onChanged(); + } else { + tablesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder addTables( + int index, io.cloudquery.plugin.v3.AssessTables.TableFinding value) { + if (tablesBuilder_ == null) { + java.util.Objects.requireNonNull(value); + ensureTablesIsMutable(); + tables_.add(index, value); + onChanged(); + } else { + tablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder addTables( + io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder addTables( + int index, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder addAllTables( + java.lang.Iterable values) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tables_); + onChanged(); + } else { + tablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder clearTables() { + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tablesBuilder_.clear(); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public Builder removeTables(int index) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.remove(index); + onChanged(); + } else { + tablesBuilder_.remove(index); + } + return this; + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder getTablesBuilder( + int index) { + return internalGetTablesFieldBuilder().getBuilder(index); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder getTablesOrBuilder( + int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); } else { + return tablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public java.util.List + getTablesOrBuilderList() { + if (tablesBuilder_ != null) { + return tablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tables_); + } + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder addTablesBuilder() { + return internalGetTablesFieldBuilder().addBuilder( + io.cloudquery.plugin.v3.AssessTables.TableFinding.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder addTablesBuilder( + int index) { + return internalGetTablesFieldBuilder().addBuilder( + index, io.cloudquery.plugin.v3.AssessTables.TableFinding.getDefaultInstance()); + } + /** + * repeated .cloudquery.plugin.v3.AssessTables.TableFinding tables = 1; + */ + public java.util.List + getTablesBuilderList() { + return internalGetTablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.TableFinding, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder, io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder> + internalGetTablesFieldBuilder() { + if (tablesBuilder_ == null) { + tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + io.cloudquery.plugin.v3.AssessTables.TableFinding, io.cloudquery.plugin.v3.AssessTables.TableFinding.Builder, io.cloudquery.plugin.v3.AssessTables.TableFindingOrBuilder>( + tables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tables_ = null; + } + return tablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables.Response) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables.Response) + private static final io.cloudquery.plugin.v3.AssessTables.Response DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables.Response(); + } + + public static io.cloudquery.plugin.v3.AssessTables.Response getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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 { + getUnknownFields().writeTo(output); + } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.cloudquery.plugin.v3.AssessTables)) { + return super.equals(obj); + } + io.cloudquery.plugin.v3.AssessTables other = (io.cloudquery.plugin.v3.AssessTables) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.cloudquery.plugin.v3.AssessTables parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.cloudquery.plugin.v3.AssessTables parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.cloudquery.plugin.v3.AssessTables parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.cloudquery.plugin.v3.AssessTables 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cloudquery.plugin.v3.AssessTables} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cloudquery.plugin.v3.AssessTables) + io.cloudquery.plugin.v3.AssessTablesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.cloudquery.plugin.v3.AssessTables.class, io.cloudquery.plugin.v3.AssessTables.Builder.class); + } + + // Construct using io.cloudquery.plugin.v3.AssessTables.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.cloudquery.plugin.v3.PluginOuterClass.internal_static_cloudquery_plugin_v3_AssessTables_descriptor; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables getDefaultInstanceForType() { + return io.cloudquery.plugin.v3.AssessTables.getDefaultInstance(); + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables build() { + io.cloudquery.plugin.v3.AssessTables result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables buildPartial() { + io.cloudquery.plugin.v3.AssessTables result = new io.cloudquery.plugin.v3.AssessTables(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.cloudquery.plugin.v3.AssessTables) { + return mergeFrom((io.cloudquery.plugin.v3.AssessTables)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.cloudquery.plugin.v3.AssessTables other) { + if (other == io.cloudquery.plugin.v3.AssessTables.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + java.util.Objects.requireNonNull(extensionRegistry); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:cloudquery.plugin.v3.AssessTables) + } + + // @@protoc_insertion_point(class_scope:cloudquery.plugin.v3.AssessTables) + private static final io.cloudquery.plugin.v3.AssessTables DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.cloudquery.plugin.v3.AssessTables(); + } + + public static io.cloudquery.plugin.v3.AssessTables getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssessTables parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.cloudquery.plugin.v3.AssessTables getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTablesOrBuilder.java b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTablesOrBuilder.java new file mode 100644 index 0000000..891b412 --- /dev/null +++ b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/AssessTablesOrBuilder.java @@ -0,0 +1,12 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: cloudquery/plugin/v3/plugin.proto +// Protobuf Java Version: 4.36.2 + +package io.cloudquery.plugin.v3; + +@com.google.protobuf.Generated +public interface AssessTablesOrBuilder extends + // @@protoc_insertion_point(interface_extends:cloudquery.plugin.v3.AssessTables) + com.google.protobuf.MessageOrBuilder { +} 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 711e0d3..98397d1 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 @@ -271,6 +271,41 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_cloudquery_plugin_v3_TestConnection_Response_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_TablePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_Evidence_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_Request_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cloudquery_plugin_v3_AssessTables_Response_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -351,38 +386,69 @@ 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(\t2\367\010\n\006Plugin\022" + - "X\n\007GetName\022%.cloudquery.plugin.v3.GetNam" + - "e.Request\032&.cloudquery.plugin.v3.GetName" + - ".Response\022a\n\nGetVersion\022(.cloudquery.plu" + - "gin.v3.GetVersion.Request\032).cloudquery.p" + - "lugin.v3.GetVersion.Response\022j\n\rGetSpecS" + - "chema\022+.cloudquery.plugin.v3.GetSpecSche" + - "ma.Request\032,.cloudquery.plugin.v3.GetSpe" + - "cSchema.Response\022O\n\004Init\022\".cloudquery.pl" + - "ugin.v3.Init.Request\032#.cloudquery.plugin" + - ".v3.Init.Response\022^\n\tGetTables\022\'.cloudqu" + - "ery.plugin.v3.GetTables.Request\032(.cloudq" + - "uery.plugin.v3.GetTables.Response\022Q\n\004Syn" + - "c\022\".cloudquery.plugin.v3.Sync.Request\032#." + - "cloudquery.plugin.v3.Sync.Response0\001\022Q\n\004" + - "Read\022\".cloudquery.plugin.v3.Read.Request" + - "\032#.cloudquery.plugin.v3.Read.Response0\001\022" + - "T\n\005Write\022#.cloudquery.plugin.v3.Write.Re" + - "quest\032$.cloudquery.plugin.v3.Write.Respo" + - "nse(\001\022b\n\tTransform\022\'.cloudquery.plugin.v" + - "3.Transform.Request\032(.cloudquery.plugin." + - "v3.Transform.Response(\0010\001\022p\n\017TransformSc" + - "hema\022-.cloudquery.plugin.v3.TransformSch" + - "ema.Request\032..cloudquery.plugin.v3.Trans" + - "formSchema.Response\022R\n\005Close\022#.cloudquer" + - "y.plugin.v3.Close.Request\032$.cloudquery.p" + - "lugin.v3.Close.Response\022m\n\016TestConnectio" + - "n\022,.cloudquery.plugin.v3.TestConnection." + - "Request\032-.cloudquery.plugin.v3.TestConne" + - "ction.ResponseBS\n\027io.cloudquery.plugin.v" + - "3P\001Z6github.com/cloudquery/plugin-pb-go/" + - "pb/plugin/v3;pluginb\006proto3" + "\033\n\023failure_description\030\003 \001(\t\"\336\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" + + " \001(\t\032\200\002\n\rColumnFinding\022\023\n\013column_name\030\001 " + + "\001(\t\022=\n\010category\030\002 \001(\0162+.cloudquery.plugi" + + "n.v3.AssessTables.Category\022\020\n\010old_type\030\003" + + " \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" + + "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -683,6 +749,48 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_cloudquery_plugin_v3_TestConnection_Response_descriptor, new java.lang.String[] { "Success", "FailureCode", "FailureDescription", }); + internal_static_cloudquery_plugin_v3_AssessTables_descriptor = + getDescriptor().getMessageType(15); + internal_static_cloudquery_plugin_v3_AssessTables_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cloudquery_plugin_v3_AssessTables_descriptor, + new java.lang.String[] { }); + internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor = + internal_static_cloudquery_plugin_v3_AssessTables_descriptor.getNestedType(0); + internal_static_cloudquery_plugin_v3_AssessTables_TablePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cloudquery_plugin_v3_AssessTables_TablePair_descriptor, + new java.lang.String[] { "OldTable", "NewTable", }); + internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor = + internal_static_cloudquery_plugin_v3_AssessTables_descriptor.getNestedType(1); + internal_static_cloudquery_plugin_v3_AssessTables_Evidence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cloudquery_plugin_v3_AssessTables_Evidence_descriptor, + new java.lang.String[] { "SyntheticValue", "Before", "After", }); + internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor = + internal_static_cloudquery_plugin_v3_AssessTables_descriptor.getNestedType(2); + internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cloudquery_plugin_v3_AssessTables_ColumnFinding_descriptor, + new java.lang.String[] { "ColumnName", "Category", "OldType", "NewType", "SafeModeBehavior", "ForcedModeBehavior", "Evidence", }); + internal_static_cloudquery_plugin_v3_AssessTables_TableFinding_descriptor = + internal_static_cloudquery_plugin_v3_AssessTables_descriptor.getNestedType(3); + 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", }); + 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 + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cloudquery_plugin_v3_AssessTables_Request_descriptor, + new java.lang.String[] { "Tables", "MigrateForce", }); + internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor = + internal_static_cloudquery_plugin_v3_AssessTables_descriptor.getNestedType(5); + internal_static_cloudquery_plugin_v3_AssessTables_Response_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cloudquery_plugin_v3_AssessTables_Response_descriptor, + new java.lang.String[] { "Tables", }); descriptor.resolveAllFeaturesImmutable(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/Write.java b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/Write.java index 3f23d8a..2ab4f33 100644 --- a/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/Write.java +++ b/build/generated/sources/proto/main/java/io/cloudquery/plugin/v3/Write.java @@ -1056,7 +1056,7 @@ public interface MessageDeleteStaleOrBuilder extends * * bytes table = 1 [deprecated = true]; * @deprecated cloudquery.plugin.v3.Write.MessageDeleteStale.table is deprecated. - * See cloudquery/plugin/v3/plugin.proto;l=187 + * See cloudquery/plugin/v3/plugin.proto;l=190 * @return The table. */ @java.lang.Deprecated com.google.protobuf.ByteString getTable(); @@ -1155,7 +1155,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { * * bytes table = 1 [deprecated = true]; * @deprecated cloudquery.plugin.v3.Write.MessageDeleteStale.table is deprecated. - * See cloudquery/plugin/v3/plugin.proto;l=187 + * See cloudquery/plugin/v3/plugin.proto;l=190 * @return The table. */ @java.lang.Override @@ -1663,7 +1663,7 @@ public Builder mergeFrom( * * bytes table = 1 [deprecated = true]; * @deprecated cloudquery.plugin.v3.Write.MessageDeleteStale.table is deprecated. - * See cloudquery/plugin/v3/plugin.proto;l=187 + * See cloudquery/plugin/v3/plugin.proto;l=190 * @return The table. */ @java.lang.Override @@ -1677,7 +1677,7 @@ public Builder mergeFrom( * * bytes table = 1 [deprecated = true]; * @deprecated cloudquery.plugin.v3.Write.MessageDeleteStale.table is deprecated. - * See cloudquery/plugin/v3/plugin.proto;l=187 + * See cloudquery/plugin/v3/plugin.proto;l=190 * @param value The table to set. * @return This builder for chaining. */ @@ -1695,7 +1695,7 @@ public Builder mergeFrom( * * bytes table = 1 [deprecated = true]; * @deprecated cloudquery.plugin.v3.Write.MessageDeleteStale.table is deprecated. - * See cloudquery/plugin/v3/plugin.proto;l=187 + * See cloudquery/plugin/v3/plugin.proto;l=190 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTable() { diff --git a/src/main/proto/cloudquery/plugin/v3/plugin.proto b/src/main/proto/cloudquery/plugin/v3/plugin.proto index 5822eef..36a225e 100644 --- a/src/main/proto/cloudquery/plugin/v3/plugin.proto +++ b/src/main/proto/cloudquery/plugin/v3/plugin.proto @@ -35,6 +35,9 @@ service Plugin { rpc Close(Close.Request) returns (Close.Response); // Validate and test the connections used by the plugin rpc TestConnection(TestConnection.Request) returns (TestConnection.Response); + // Assess how the destination plugin would apply table schema changes, without writing anything. + // Plugins that do not support assessment return Unimplemented. + rpc AssessTables(AssessTables.Request) returns (AssessTables.Response); } message GetName { @@ -243,3 +246,53 @@ message TestConnection { string failure_description = 3; } } + +message AssessTables { + enum Category { + CATEGORY_UNKNOWN = 0; + CATEGORY_NO_CHANGE = 1; + CATEGORY_AUTOMATICALLY_MIGRATABLE = 2; + CATEGORY_MANUAL_MIGRATION_REQUIRED = 3; + CATEGORY_TABLE_REMOVED = 4; + CATEGORY_FILE_SCHEMA_CHANGED = 5; + } + message TablePair { + // marshalled arrow.Schema, empty when the table is added + bytes old_table = 1; + // marshalled arrow.Schema, empty when the table is removed + bytes new_table = 2; + } + message Evidence { + string synthetic_value = 1; + // Destination output for the synthetic value under the old and new schemas + string before = 2; + string after = 3; + } + message ColumnFinding { + string column_name = 1; + Category category = 2; + // Destination types, empty when the column is added or removed + string old_type = 3; + string new_type = 4; + string safe_mode_behavior = 5; + string forced_mode_behavior = 6; + repeated Evidence evidence = 7; + } + message TableFinding { + string table_name = 1; + Category category = 2; + string safe_mode_behavior = 3; + string forced_mode_behavior = 4; + repeated ColumnFinding columns = 5; + repeated Evidence evidence = 6; + bool coverage_incomplete = 7; + string coverage_incomplete_reason = 8; + } + message Request { + repeated TablePair tables = 1; + bool migrate_force = 2; + } + message Response { + repeated TableFinding tables = 1; + } +}