diff --git a/generate_libpg_query.sh b/generate_libpg_query.sh
index 280cc25..aa0ed1e 100755
--- a/generate_libpg_query.sh
+++ b/generate_libpg_query.sh
@@ -8,9 +8,9 @@ LIBPG_QUERY_TEMP_DIR=$(mktemp --directory)
pushd $LIBPG_QUERY_TEMP_DIR
-wget -q https://github.com/pganalyze/libpg_query/archive/refs/tags/17-6.0.0.zip
-unzip 17-6.0.0.zip
-SOURCES_DIR=libpg_query-17-6.0.0
+wget -q https://github.com/pganalyze/libpg_query/archive/refs/tags/17-6.2.2.zip
+unzip 17-6.2.2.zip
+SOURCES_DIR=libpg_query-17-6.2.2
echo "compile linux-x86-64"
docker create \
@@ -64,7 +64,7 @@ docker cp crossbuild:/work/$SOURCES_DIR/libpg_query.dylib \
docker rm crossbuild
echo "compile darwin-aarch64"
-docker create --name crossbuild --workdir /work/$SOURCES_DIR darwin-build-support bash -c 'patch -p1 < /work/darwin.patch; make CC=aarch64-apple-darwin23.6-cc -j build_shared'
+docker create --name crossbuild --workdir /work/$SOURCES_DIR darwin-build-support bash -c 'patch -p1 < /work/darwin.patch; make CC=aarch64-apple-darwin25.1-cc -j build_shared'
docker cp $SOURCES_DIR crossbuild:/work/
docker cp $PROJECT_DIR/darwin.patch crossbuild:/work/darwin.patch
docker start -ai crossbuild
@@ -92,4 +92,4 @@ popd
chmod -R +w $LIBPG_QUERY_TEMP_DIR
rm -r $LIBPG_QUERY_TEMP_DIR
-
+echo "Done!"
diff --git a/src/main/java/com/premiumminds/sonar/postgres/protobuf/PgQuery.java b/src/main/java/com/premiumminds/sonar/postgres/protobuf/PgQuery.java
index 2661788..f43f2ba 100644
--- a/src/main/java/com/premiumminds/sonar/postgres/protobuf/PgQuery.java
+++ b/src/main/java/com/premiumminds/sonar/postgres/protobuf/PgQuery.java
@@ -1375,6 +1375,31 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_pg_query_ScanToken_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_pg_query_SummaryResult_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_pg_query_SummaryResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_pg_query_SummaryResult_Table_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_pg_query_SummaryResult_Table_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_pg_query_SummaryResult_AliasesEntry_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_pg_query_SummaryResult_AliasesEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_pg_query_SummaryResult_Function_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_pg_query_SummaryResult_Function_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_pg_query_SummaryResult_FilterColumn_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_pg_query_SummaryResult_FilterColumn_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -3322,7 +3347,25 @@ public static void registerAllExtensions(
"\001(\0162\026.pg_query.DropBehaviorR\010behavior\"t\n" +
"\tScanToken\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\022\036" +
"\n\005token\030\004 \001(\0162\017.pg_query.Token\022+\n\014keywor" +
- "d_kind\030\005 \001(\0162\025.pg_query.KeywordKind*\233\001\n\013" +
+ "d_kind\030\005 \001(\0162\025.pg_query.KeywordKind\"\315\005\n\r" +
+ "SummaryResult\022-\n\006tables\030\001 \003(\0132\035.pg_query" +
+ ".SummaryResult.Table\0225\n\007aliases\030\002 \003(\0132$." +
+ "pg_query.SummaryResult.AliasesEntry\022\021\n\tc" +
+ "te_names\030\003 \003(\t\0223\n\tfunctions\030\004 \003(\0132 .pg_q" +
+ "uery.SummaryResult.Function\022<\n\016filter_co" +
+ "lumns\030\005 \003(\0132$.pg_query.SummaryResult.Fil" +
+ "terColumn\022\027\n\017statement_types\030\006 \003(\t\022\027\n\017tr" +
+ "uncated_query\030\007 \001(\t\032p\n\005Table\022\014\n\004name\030\001 \001" +
+ "(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 " +
+ "\001(\t\0220\n\007context\030\004 \001(\0162\037.pg_query.SummaryR" +
+ "esult.Context\032.\n\014AliasesEntry\022\013\n\003key\030\001 \001" +
+ "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032v\n\010Function\022\014\n\004nam" +
+ "e\030\001 \001(\t\022\025\n\rfunction_name\030\002 \001(\t\022\023\n\013schema" +
+ "_name\030\003 \001(\t\0220\n\007context\030\004 \001(\0162\037.pg_query." +
+ "SummaryResult.Context\032G\n\014FilterColumn\022\023\n" +
+ "\013schema_name\030\001 \001(\t\022\022\n\ntable_name\030\002 \001(\t\022\016" +
+ "\n\006column\030\003 \001(\t\";\n\007Context\022\010\n\004None\020\000\022\n\n\006S" +
+ "elect\020\001\022\007\n\003DML\020\002\022\007\n\003DDL\020\003\022\010\n\004Call\020\004*\233\001\n\013" +
"QuerySource\022\032\n\026QUERY_SOURCE_UNDEFINED\020\000\022" +
"\021\n\rQSRC_ORIGINAL\020\001\022\017\n\013QSRC_PARSER\020\002\022\025\n\021Q" +
"SRC_INSTEAD_RULE\020\003\022\032\n\026QSRC_QUAL_INSTEAD_" +
@@ -3365,7 +3408,7 @@ public static void registerAllExtensions(
"RATEGY_LIST\020\001\022\034\n\030PARTITION_STRATEGY_RANG" +
"E\020\002\022\033\n\027PARTITION_STRATEGY_HASH\020\003*\254\001\n\027Par" +
"titionRangeDatumKind\022(\n$PARTITION_RANGE_" +
- "DATUM_KIND_UNDEFINED\020\000\022\"\n\036PARTITION_RANG" +
+ "DATUM_KIND_UNDEFINED\020\000\022\"\n\036PARTITION_RANG",
"E_DATUM_MINVALUE\020\001\022\037\n\033PARTITION_RANGE_DA" +
"TUM_VALUE\020\002\022\"\n\036PARTITION_RANGE_DATUM_MAX" +
"VALUE\020\003*\275\001\n\007RTEKind\022\025\n\021RTEKIND_UNDEFINED" +
@@ -3383,7 +3426,7 @@ public static void registerAllExtensions(
"ROUPING_SET_SIMPLE\020\002\022\027\n\023GROUPING_SET_ROL" +
"LUP\020\003\022\025\n\021GROUPING_SET_CUBE\020\004\022\025\n\021GROUPING" +
"_SET_SETS\020\005*|\n\016CTEMaterialize\022\034\n\030CTEMATE" +
- "RIALIZE_UNDEFINED\020\000\022\031\n\025CTEMaterializeDef",
+ "RIALIZE_UNDEFINED\020\000\022\031\n\025CTEMaterializeDef" +
"ault\020\001\022\030\n\024CTEMaterializeAlways\020\002\022\027\n\023CTEM" +
"aterializeNever\020\003*e\n\nJsonQuotes\022\031\n\025JSON_" +
"QUOTES_UNDEFINED\020\000\022\024\n\020JS_QUOTES_UNSPEC\020\001" +
@@ -3765,7 +3808,7 @@ public static void registerAllExtensions(
"\n\005LIMIT\020\376\003\022\013\n\006LISTEN\020\377\003\022\t\n\004LOAD\020\200\004\022\n\n\005LO" +
"CAL\020\201\004\022\016\n\tLOCALTIME\020\202\004\022\023\n\016LOCALTIMESTAMP" +
"\020\203\004\022\r\n\010LOCATION\020\204\004\022\013\n\006LOCK_P\020\205\004\022\013\n\006LOCKE" +
- "D\020\206\004\022\013\n\006LOGGED\020\207\004\022\014\n\007MAPPING\020\210\004\022\n\n\005MATCH" +
+ "D\020\206\004\022\013\n\006LOGGED\020\207\004\022\014\n\007MAPPING\020\210\004\022\n\n\005MATCH",
"\020\211\004\022\014\n\007MATCHED\020\212\004\022\021\n\014MATERIALIZED\020\213\004\022\r\n\010" +
"MAXVALUE\020\214\004\022\n\n\005MERGE\020\215\004\022\021\n\014MERGE_ACTION\020" +
"\216\004\022\013\n\006METHOD\020\217\004\022\r\n\010MINUTE_P\020\220\004\022\r\n\010MINVAL" +
@@ -3783,7 +3826,7 @@ public static void registerAllExtensions(
"\265\004\022\t\n\004ONLY\020\266\004\022\r\n\010OPERATOR\020\267\004\022\013\n\006OPTION\020\270" +
"\004\022\014\n\007OPTIONS\020\271\004\022\007\n\002OR\020\272\004\022\n\n\005ORDER\020\273\004\022\017\n\n" +
"ORDINALITY\020\274\004\022\013\n\006OTHERS\020\275\004\022\n\n\005OUT_P\020\276\004\022\014" +
- "\n\007OUTER_P\020\277\004\022\t\n\004OVER\020\300\004\022\r\n\010OVERLAPS\020\301\004\022\014",
+ "\n\007OUTER_P\020\277\004\022\t\n\004OVER\020\300\004\022\r\n\010OVERLAPS\020\301\004\022\014" +
"\n\007OVERLAY\020\302\004\022\017\n\nOVERRIDING\020\303\004\022\n\n\005OWNED\020\304" +
"\004\022\n\n\005OWNER\020\305\004\022\r\n\010PARALLEL\020\306\004\022\016\n\tPARAMETE" +
"R\020\307\004\022\013\n\006PARSER\020\310\004\022\014\n\007PARTIAL\020\311\004\022\016\n\tPARTI" +
@@ -5495,6 +5538,36 @@ public static void registerAllExtensions(
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pg_query_ScanToken_descriptor,
new java.lang.String[] { "Start", "End", "Token", "KeywordKind", });
+ internal_static_pg_query_SummaryResult_descriptor =
+ getDescriptor().getMessageTypes().get(272);
+ internal_static_pg_query_SummaryResult_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_pg_query_SummaryResult_descriptor,
+ new java.lang.String[] { "Tables", "Aliases", "CteNames", "Functions", "FilterColumns", "StatementTypes", "TruncatedQuery", });
+ internal_static_pg_query_SummaryResult_Table_descriptor =
+ internal_static_pg_query_SummaryResult_descriptor.getNestedTypes().get(0);
+ internal_static_pg_query_SummaryResult_Table_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_pg_query_SummaryResult_Table_descriptor,
+ new java.lang.String[] { "Name", "SchemaName", "TableName", "Context", });
+ internal_static_pg_query_SummaryResult_AliasesEntry_descriptor =
+ internal_static_pg_query_SummaryResult_descriptor.getNestedTypes().get(1);
+ internal_static_pg_query_SummaryResult_AliasesEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_pg_query_SummaryResult_AliasesEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_pg_query_SummaryResult_Function_descriptor =
+ internal_static_pg_query_SummaryResult_descriptor.getNestedTypes().get(2);
+ internal_static_pg_query_SummaryResult_Function_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_pg_query_SummaryResult_Function_descriptor,
+ new java.lang.String[] { "Name", "FunctionName", "SchemaName", "Context", });
+ internal_static_pg_query_SummaryResult_FilterColumn_descriptor =
+ internal_static_pg_query_SummaryResult_descriptor.getNestedTypes().get(3);
+ internal_static_pg_query_SummaryResult_FilterColumn_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_pg_query_SummaryResult_FilterColumn_descriptor,
+ new java.lang.String[] { "SchemaName", "TableName", "Column", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/src/main/java/com/premiumminds/sonar/postgres/protobuf/SummaryResult.java b/src/main/java/com/premiumminds/sonar/postgres/protobuf/SummaryResult.java
new file mode 100644
index 0000000..f33c1f5
--- /dev/null
+++ b/src/main/java/com/premiumminds/sonar/postgres/protobuf/SummaryResult.java
@@ -0,0 +1,5340 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: pg_query.proto
+
+// Protobuf Java Version: 3.25.1
+package com.premiumminds.sonar.postgres.protobuf;
+
+/**
+ *
+ * protobuf-c doesn't support optional fields, so any optional strings
+ * are just an empty string if it should be the equivalent of None/nil.
+ *
+ * These fields have `// optional` at the end of the line.
+ *
+ * Upstream issue: https://github.com/protobuf-c/protobuf-c/issues/476
+ *
+ *
+ * Protobuf type {@code pg_query.SummaryResult}
+ */
+public final class SummaryResult extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pg_query.SummaryResult)
+ SummaryResultOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use SummaryResult.newBuilder() to construct.
+ private SummaryResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SummaryResult() {
+ tables_ = java.util.Collections.emptyList();
+ cteNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ functions_ = java.util.Collections.emptyList();
+ filterColumns_ = java.util.Collections.emptyList();
+ statementTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ truncatedQuery_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SummaryResult();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 2:
+ return internalGetAliases();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code pg_query.SummaryResult.Context}
+ */
+ public enum Context
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * None = 0;
+ */
+ None(0),
+ /**
+ * Select = 1;
+ */
+ Select(1),
+ /**
+ * DML = 2;
+ */
+ DML(2),
+ /**
+ * DDL = 3;
+ */
+ DDL(3),
+ /**
+ * Call = 4;
+ */
+ Call(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * None = 0;
+ */
+ public static final int None_VALUE = 0;
+ /**
+ * Select = 1;
+ */
+ public static final int Select_VALUE = 1;
+ /**
+ * DML = 2;
+ */
+ public static final int DML_VALUE = 2;
+ /**
+ * DDL = 3;
+ */
+ public static final int DDL_VALUE = 3;
+ /**
+ * Call = 4;
+ */
+ public static final int Call_VALUE = 4;
+
+
+ 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 Context 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 Context forNumber(int value) {
+ switch (value) {
+ case 0: return None;
+ case 1: return Select;
+ case 2: return DML;
+ case 3: return DDL;
+ case 4: return Call;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Context> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Context findValueByNumber(int number) {
+ return Context.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().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.SummaryResult.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Context[] VALUES = values();
+
+ public static Context 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 Context(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:pg_query.SummaryResult.Context)
+ }
+
+ public interface TableOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pg_query.SummaryResult.Table)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string schema_name = 2;
+ * @return The schemaName.
+ */
+ java.lang.String getSchemaName();
+ /**
+ * string schema_name = 2;
+ * @return The bytes for schemaName.
+ */
+ com.google.protobuf.ByteString
+ getSchemaNameBytes();
+
+ /**
+ * string table_name = 3;
+ * @return The tableName.
+ */
+ java.lang.String getTableName();
+ /**
+ * string table_name = 3;
+ * @return The bytes for tableName.
+ */
+ com.google.protobuf.ByteString
+ getTableNameBytes();
+
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The enum numeric value on the wire for context.
+ */
+ int getContextValue();
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The context.
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context getContext();
+ }
+ /**
+ * Protobuf type {@code pg_query.SummaryResult.Table}
+ */
+ public static final class Table extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pg_query.SummaryResult.Table)
+ TableOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Table.newBuilder() to construct.
+ private Table(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Table() {
+ name_ = "";
+ schemaName_ = "";
+ tableName_ = "";
+ context_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Table();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Table_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Table_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaName_ = "";
+ /**
+ * string schema_name = 2;
+ * @return The schemaName.
+ */
+ @java.lang.Override
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ 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();
+ schemaName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string schema_name = 2;
+ * @return The bytes for schemaName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_NAME_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableName_ = "";
+ /**
+ * string table_name = 3;
+ * @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 = 3;
+ * @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 CONTEXT_FIELD_NUMBER = 4;
+ private int context_ = 0;
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The enum numeric value on the wire for context.
+ */
+ @java.lang.Override public int getContextValue() {
+ return context_;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The context.
+ */
+ @java.lang.Override public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context getContext() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context result = com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.forNumber(context_);
+ return result == null ? com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
+ }
+ if (context_ != com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.None.getNumber()) {
+ output.writeEnum(4, context_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
+ }
+ if (context_ != com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.None.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, context_);
+ }
+ 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table)) {
+ return super.equals(obj);
+ }
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table other = (com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getSchemaName()
+ .equals(other.getSchemaName())) return false;
+ if (!getTableName()
+ .equals(other.getTableName())) return false;
+ if (context_ != other.context_) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + context_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pg_query.SummaryResult.Table}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pg_query.SummaryResult.Table)
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Table_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Table_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder.class);
+ }
+
+ // Construct using com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ schemaName_ = "";
+ tableName_ = "";
+ context_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Table_descriptor;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table getDefaultInstanceForType() {
+ return com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table build() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table buildPartial() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table result = new com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.schemaName_ = schemaName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.tableName_ = tableName_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.context_ = context_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table) {
+ return mergeFrom((com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table other) {
+ if (other == com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getSchemaName().isEmpty()) {
+ schemaName_ = other.schemaName_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getTableName().isEmpty()) {
+ tableName_ = other.tableName_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.context_ != 0) {
+ setContextValue(other.getContextValue());
+ }
+ 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 {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ schemaName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ tableName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32: {
+ context_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ 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 name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object schemaName_ = "";
+ /**
+ * string schema_name = 2;
+ * @return The schemaName.
+ */
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string schema_name = 2;
+ * @return The bytes for schemaName.
+ */
+ public com.google.protobuf.ByteString
+ getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string schema_name = 2;
+ * @param value The schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ schemaName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string schema_name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSchemaName() {
+ schemaName_ = getDefaultInstance().getSchemaName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string schema_name = 2;
+ * @param value The bytes for schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ schemaName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableName_ = "";
+ /**
+ * string table_name = 3;
+ * @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 = 3;
+ * @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 = 3;
+ * @param value The tableName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ tableName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string table_name = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTableName() {
+ tableName_ = getDefaultInstance().getTableName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string table_name = 3;
+ * @param value The bytes for tableName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ tableName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int context_ = 0;
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The enum numeric value on the wire for context.
+ */
+ @java.lang.Override public int getContextValue() {
+ return context_;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @param value The enum numeric value on the wire for context to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContextValue(int value) {
+ context_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The context.
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context getContext() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context result = com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.forNumber(context_);
+ return result == null ? com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.UNRECOGNIZED : result;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @param value The context to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContext(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ context_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearContext() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ context_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pg_query.SummaryResult.Table)
+ }
+
+ // @@protoc_insertion_point(class_scope:pg_query.SummaryResult.Table)
+ private static final com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table();
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Table 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface FunctionOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pg_query.SummaryResult.Function)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string function_name = 2;
+ * @return The functionName.
+ */
+ java.lang.String getFunctionName();
+ /**
+ * string function_name = 2;
+ * @return The bytes for functionName.
+ */
+ com.google.protobuf.ByteString
+ getFunctionNameBytes();
+
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return The schemaName.
+ */
+ java.lang.String getSchemaName();
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return The bytes for schemaName.
+ */
+ com.google.protobuf.ByteString
+ getSchemaNameBytes();
+
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The enum numeric value on the wire for context.
+ */
+ int getContextValue();
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The context.
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context getContext();
+ }
+ /**
+ * Protobuf type {@code pg_query.SummaryResult.Function}
+ */
+ public static final class Function extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pg_query.SummaryResult.Function)
+ FunctionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Function.newBuilder() to construct.
+ private Function(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Function() {
+ name_ = "";
+ functionName_ = "";
+ schemaName_ = "";
+ context_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Function();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Function_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Function_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FUNCTION_NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object functionName_ = "";
+ /**
+ * string function_name = 2;
+ * @return The functionName.
+ */
+ @java.lang.Override
+ public java.lang.String getFunctionName() {
+ java.lang.Object ref = functionName_;
+ 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();
+ functionName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string function_name = 2;
+ * @return The bytes for functionName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFunctionNameBytes() {
+ java.lang.Object ref = functionName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ functionName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCHEMA_NAME_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaName_ = "";
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return The schemaName.
+ */
+ @java.lang.Override
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ 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();
+ schemaName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return The bytes for schemaName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTEXT_FIELD_NUMBER = 4;
+ private int context_ = 0;
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The enum numeric value on the wire for context.
+ */
+ @java.lang.Override public int getContextValue() {
+ return context_;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The context.
+ */
+ @java.lang.Override public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context getContext() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context result = com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.forNumber(context_);
+ return result == null ? com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaName_);
+ }
+ if (context_ != com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.None.getNumber()) {
+ output.writeEnum(4, context_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, functionName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaName_);
+ }
+ if (context_ != com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.None.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, context_);
+ }
+ 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function)) {
+ return super.equals(obj);
+ }
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function other = (com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getFunctionName()
+ .equals(other.getFunctionName())) return false;
+ if (!getSchemaName()
+ .equals(other.getSchemaName())) return false;
+ if (context_ != other.context_) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFunctionName().hashCode();
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + context_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pg_query.SummaryResult.Function}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pg_query.SummaryResult.Function)
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Function_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Function_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder.class);
+ }
+
+ // Construct using com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ functionName_ = "";
+ schemaName_ = "";
+ context_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_Function_descriptor;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function getDefaultInstanceForType() {
+ return com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function build() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function buildPartial() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function result = new com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.functionName_ = functionName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.schemaName_ = schemaName_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.context_ = context_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function) {
+ return mergeFrom((com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function other) {
+ if (other == com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getFunctionName().isEmpty()) {
+ functionName_ = other.functionName_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getSchemaName().isEmpty()) {
+ schemaName_ = other.schemaName_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.context_ != 0) {
+ setContextValue(other.getContextValue());
+ }
+ 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 {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ functionName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ schemaName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32: {
+ context_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ 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 name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object functionName_ = "";
+ /**
+ * string function_name = 2;
+ * @return The functionName.
+ */
+ public java.lang.String getFunctionName() {
+ java.lang.Object ref = functionName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ functionName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string function_name = 2;
+ * @return The bytes for functionName.
+ */
+ public com.google.protobuf.ByteString
+ getFunctionNameBytes() {
+ java.lang.Object ref = functionName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ functionName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string function_name = 2;
+ * @param value The functionName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFunctionName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ functionName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string function_name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearFunctionName() {
+ functionName_ = getDefaultInstance().getFunctionName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string function_name = 2;
+ * @param value The bytes for functionName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFunctionNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ functionName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object schemaName_ = "";
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return The schemaName.
+ */
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return The bytes for schemaName.
+ */
+ public com.google.protobuf.ByteString
+ getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @param value The schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ schemaName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSchemaName() {
+ schemaName_ = getDefaultInstance().getSchemaName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 3;
+ * @param value The bytes for schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ schemaName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int context_ = 0;
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The enum numeric value on the wire for context.
+ */
+ @java.lang.Override public int getContextValue() {
+ return context_;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @param value The enum numeric value on the wire for context to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContextValue(int value) {
+ context_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return The context.
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context getContext() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context result = com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.forNumber(context_);
+ return result == null ? com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context.UNRECOGNIZED : result;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @param value The context to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContext(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Context value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ context_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .pg_query.SummaryResult.Context context = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearContext() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ context_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pg_query.SummaryResult.Function)
+ }
+
+ // @@protoc_insertion_point(class_scope:pg_query.SummaryResult.Function)
+ private static final com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function();
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Function 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface FilterColumnOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pg_query.SummaryResult.FilterColumn)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return The schemaName.
+ */
+ java.lang.String getSchemaName();
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return The bytes for schemaName.
+ */
+ com.google.protobuf.ByteString
+ getSchemaNameBytes();
+
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @return The tableName.
+ */
+ java.lang.String getTableName();
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @return The bytes for tableName.
+ */
+ com.google.protobuf.ByteString
+ getTableNameBytes();
+
+ /**
+ * string column = 3;
+ * @return The column.
+ */
+ java.lang.String getColumn();
+ /**
+ * string column = 3;
+ * @return The bytes for column.
+ */
+ com.google.protobuf.ByteString
+ getColumnBytes();
+ }
+ /**
+ * Protobuf type {@code pg_query.SummaryResult.FilterColumn}
+ */
+ public static final class FilterColumn extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pg_query.SummaryResult.FilterColumn)
+ FilterColumnOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use FilterColumn.newBuilder() to construct.
+ private FilterColumn(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private FilterColumn() {
+ schemaName_ = "";
+ tableName_ = "";
+ column_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new FilterColumn();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_FilterColumn_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_FilterColumn_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder.class);
+ }
+
+ public static final int SCHEMA_NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaName_ = "";
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return The schemaName.
+ */
+ @java.lang.Override
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ 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();
+ schemaName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return The bytes for schemaName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableName_ = "";
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @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;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @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 COLUMN_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object column_ = "";
+ /**
+ * string column = 3;
+ * @return The column.
+ */
+ @java.lang.Override
+ public java.lang.String getColumn() {
+ java.lang.Object ref = column_;
+ 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();
+ column_ = s;
+ return s;
+ }
+ }
+ /**
+ * string column = 3;
+ * @return The bytes for column.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getColumnBytes() {
+ java.lang.Object ref = column_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ column_ = 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.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, column_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, column_);
+ }
+ 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn)) {
+ return super.equals(obj);
+ }
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn other = (com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn) obj;
+
+ if (!getSchemaName()
+ .equals(other.getSchemaName())) return false;
+ if (!getTableName()
+ .equals(other.getTableName())) return false;
+ if (!getColumn()
+ .equals(other.getColumn())) 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) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ hash = (37 * hash) + COLUMN_FIELD_NUMBER;
+ hash = (53 * hash) + getColumn().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pg_query.SummaryResult.FilterColumn}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pg_query.SummaryResult.FilterColumn)
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_FilterColumn_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_FilterColumn_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder.class);
+ }
+
+ // Construct using com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ schemaName_ = "";
+ tableName_ = "";
+ column_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_FilterColumn_descriptor;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn getDefaultInstanceForType() {
+ return com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn build() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn buildPartial() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn result = new com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.schemaName_ = schemaName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.tableName_ = tableName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.column_ = column_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn) {
+ return mergeFrom((com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn other) {
+ if (other == com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.getDefaultInstance()) return this;
+ if (!other.getSchemaName().isEmpty()) {
+ schemaName_ = other.schemaName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getTableName().isEmpty()) {
+ tableName_ = other.tableName_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getColumn().isEmpty()) {
+ column_ = other.column_;
+ 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 {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ schemaName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ tableName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ column_ = 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 schemaName_ = "";
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return The schemaName.
+ */
+ public java.lang.String getSchemaName() {
+ java.lang.Object ref = schemaName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return The bytes for schemaName.
+ */
+ public com.google.protobuf.ByteString
+ getSchemaNameBytes() {
+ java.lang.Object ref = schemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ schemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @param value The schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ schemaName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSchemaName() {
+ schemaName_ = getDefaultInstance().getSchemaName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string schema_name = 1;
+ * @param value The bytes for schemaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSchemaNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ schemaName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableName_ = "";
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @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;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @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;
+ }
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @param value The tableName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ tableName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearTableName() {
+ tableName_ = getDefaultInstance().getTableName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional
+ *
+ *
+ * string table_name = 2;
+ * @param value The bytes for tableName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ tableName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object column_ = "";
+ /**
+ * string column = 3;
+ * @return The column.
+ */
+ public java.lang.String getColumn() {
+ java.lang.Object ref = column_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ column_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string column = 3;
+ * @return The bytes for column.
+ */
+ public com.google.protobuf.ByteString
+ getColumnBytes() {
+ java.lang.Object ref = column_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ column_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string column = 3;
+ * @param value The column to set.
+ * @return This builder for chaining.
+ */
+ public Builder setColumn(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ column_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string column = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearColumn() {
+ column_ = getDefaultInstance().getColumn();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string column = 3;
+ * @param value The bytes for column to set.
+ * @return This builder for chaining.
+ */
+ public Builder setColumnBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ column_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pg_query.SummaryResult.FilterColumn)
+ }
+
+ // @@protoc_insertion_point(class_scope:pg_query.SummaryResult.FilterColumn)
+ private static final com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn();
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public FilterColumn 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public static final int TABLES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List tables_;
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ @java.lang.Override
+ public java.util.List getTablesList() {
+ return tables_;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder>
+ getTablesOrBuilderList() {
+ return tables_;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ @java.lang.Override
+ public int getTablesCount() {
+ return tables_.size();
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table getTables(int index) {
+ return tables_.get(index);
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder getTablesOrBuilder(
+ int index) {
+ return tables_.get(index);
+ }
+
+ public static final int ALIASES_FIELD_NUMBER = 2;
+ private static final class AliasesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .newDefaultInstance(
+ com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_AliasesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> aliases_;
+ private com.google.protobuf.MapField
+ internalGetAliases() {
+ if (aliases_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ AliasesDefaultEntryHolder.defaultEntry);
+ }
+ return aliases_;
+ }
+ public int getAliasesCount() {
+ return internalGetAliases().getMap().size();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public boolean containsAliases(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetAliases().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAliasesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getAliases() {
+ return getAliasesMap();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public java.util.Map getAliasesMap() {
+ return internalGetAliases().getMap();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getAliasesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetAliases().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public java.lang.String getAliasesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetAliases().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int CTE_NAMES_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList cteNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string cte_names = 3;
+ * @return A list containing the cteNames.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getCteNamesList() {
+ return cteNames_;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @return The count of cteNames.
+ */
+ public int getCteNamesCount() {
+ return cteNames_.size();
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index of the element to return.
+ * @return The cteNames at the given index.
+ */
+ public java.lang.String getCteNames(int index) {
+ return cteNames_.get(index);
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the cteNames at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getCteNamesBytes(int index) {
+ return cteNames_.getByteString(index);
+ }
+
+ public static final int FUNCTIONS_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private java.util.List functions_;
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ @java.lang.Override
+ public java.util.List getFunctionsList() {
+ return functions_;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder>
+ getFunctionsOrBuilderList() {
+ return functions_;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ @java.lang.Override
+ public int getFunctionsCount() {
+ return functions_.size();
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function getFunctions(int index) {
+ return functions_.get(index);
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder getFunctionsOrBuilder(
+ int index) {
+ return functions_.get(index);
+ }
+
+ public static final int FILTER_COLUMNS_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private java.util.List filterColumns_;
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ @java.lang.Override
+ public java.util.List getFilterColumnsList() {
+ return filterColumns_;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ @java.lang.Override
+ public java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder>
+ getFilterColumnsOrBuilderList() {
+ return filterColumns_;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ @java.lang.Override
+ public int getFilterColumnsCount() {
+ return filterColumns_.size();
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn getFilterColumns(int index) {
+ return filterColumns_.get(index);
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder getFilterColumnsOrBuilder(
+ int index) {
+ return filterColumns_.get(index);
+ }
+
+ public static final int STATEMENT_TYPES_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList statementTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string statement_types = 6;
+ * @return A list containing the statementTypes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getStatementTypesList() {
+ return statementTypes_;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @return The count of statementTypes.
+ */
+ public int getStatementTypesCount() {
+ return statementTypes_.size();
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index of the element to return.
+ * @return The statementTypes at the given index.
+ */
+ public java.lang.String getStatementTypes(int index) {
+ return statementTypes_.get(index);
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index of the value to return.
+ * @return The bytes of the statementTypes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getStatementTypesBytes(int index) {
+ return statementTypes_.getByteString(index);
+ }
+
+ public static final int TRUNCATED_QUERY_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object truncatedQuery_ = "";
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return The truncatedQuery.
+ */
+ @java.lang.Override
+ public java.lang.String getTruncatedQuery() {
+ java.lang.Object ref = truncatedQuery_;
+ 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();
+ truncatedQuery_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return The bytes for truncatedQuery.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTruncatedQueryBytes() {
+ java.lang.Object ref = truncatedQuery_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ truncatedQuery_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < tables_.size(); i++) {
+ output.writeMessage(1, tables_.get(i));
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAliases(),
+ AliasesDefaultEntryHolder.defaultEntry,
+ 2);
+ for (int i = 0; i < cteNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cteNames_.getRaw(i));
+ }
+ for (int i = 0; i < functions_.size(); i++) {
+ output.writeMessage(4, functions_.get(i));
+ }
+ for (int i = 0; i < filterColumns_.size(); i++) {
+ output.writeMessage(5, filterColumns_.get(i));
+ }
+ for (int i = 0; i < statementTypes_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, statementTypes_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truncatedQuery_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, truncatedQuery_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < tables_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, tables_.get(i));
+ }
+ for (java.util.Map.Entry entry
+ : internalGetAliases().getMap().entrySet()) {
+ com.google.protobuf.MapEntry
+ aliases__ = AliasesDefaultEntryHolder.defaultEntry.newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, aliases__);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < cteNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(cteNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCteNamesList().size();
+ }
+ for (int i = 0; i < functions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, functions_.get(i));
+ }
+ for (int i = 0; i < filterColumns_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, filterColumns_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < statementTypes_.size(); i++) {
+ dataSize += computeStringSizeNoTag(statementTypes_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getStatementTypesList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truncatedQuery_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, truncatedQuery_);
+ }
+ 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult)) {
+ return super.equals(obj);
+ }
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult other = (com.premiumminds.sonar.postgres.protobuf.SummaryResult) obj;
+
+ if (!getTablesList()
+ .equals(other.getTablesList())) return false;
+ if (!internalGetAliases().equals(
+ other.internalGetAliases())) return false;
+ if (!getCteNamesList()
+ .equals(other.getCteNamesList())) return false;
+ if (!getFunctionsList()
+ .equals(other.getFunctionsList())) return false;
+ if (!getFilterColumnsList()
+ .equals(other.getFilterColumnsList())) return false;
+ if (!getStatementTypesList()
+ .equals(other.getStatementTypesList())) return false;
+ if (!getTruncatedQuery()
+ .equals(other.getTruncatedQuery())) 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();
+ }
+ if (!internalGetAliases().getMap().isEmpty()) {
+ hash = (37 * hash) + ALIASES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetAliases().hashCode();
+ }
+ if (getCteNamesCount() > 0) {
+ hash = (37 * hash) + CTE_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getCteNamesList().hashCode();
+ }
+ if (getFunctionsCount() > 0) {
+ hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getFunctionsList().hashCode();
+ }
+ if (getFilterColumnsCount() > 0) {
+ hash = (37 * hash) + FILTER_COLUMNS_FIELD_NUMBER;
+ hash = (53 * hash) + getFilterColumnsList().hashCode();
+ }
+ if (getStatementTypesCount() > 0) {
+ hash = (37 * hash) + STATEMENT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + getStatementTypesList().hashCode();
+ }
+ hash = (37 * hash) + TRUNCATED_QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getTruncatedQuery().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.premiumminds.sonar.postgres.protobuf.SummaryResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ * protobuf-c doesn't support optional fields, so any optional strings
+ * are just an empty string if it should be the equivalent of None/nil.
+ *
+ * These fields have `// optional` at the end of the line.
+ *
+ * Upstream issue: https://github.com/protobuf-c/protobuf-c/issues/476
+ *
+ *
+ * Protobuf type {@code pg_query.SummaryResult}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pg_query.SummaryResult)
+ com.premiumminds.sonar.postgres.protobuf.SummaryResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 2:
+ return internalGetAliases();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 2:
+ return internalGetMutableAliases();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.class, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Builder.class);
+ }
+
+ // Construct using com.premiumminds.sonar.postgres.protobuf.SummaryResult.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.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);
+ internalGetMutableAliases().clear();
+ cteNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ if (functionsBuilder_ == null) {
+ functions_ = java.util.Collections.emptyList();
+ } else {
+ functions_ = null;
+ functionsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000008);
+ if (filterColumnsBuilder_ == null) {
+ filterColumns_ = java.util.Collections.emptyList();
+ } else {
+ filterColumns_ = null;
+ filterColumnsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000010);
+ statementTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ truncatedQuery_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.premiumminds.sonar.postgres.protobuf.PgQuery.internal_static_pg_query_SummaryResult_descriptor;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult getDefaultInstanceForType() {
+ return com.premiumminds.sonar.postgres.protobuf.SummaryResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult build() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult buildPartial() {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult result = new com.premiumminds.sonar.postgres.protobuf.SummaryResult(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.premiumminds.sonar.postgres.protobuf.SummaryResult 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();
+ }
+ if (functionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ functions_ = java.util.Collections.unmodifiableList(functions_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.functions_ = functions_;
+ } else {
+ result.functions_ = functionsBuilder_.build();
+ }
+ if (filterColumnsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
+ filterColumns_ = java.util.Collections.unmodifiableList(filterColumns_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.filterColumns_ = filterColumns_;
+ } else {
+ result.filterColumns_ = filterColumnsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.premiumminds.sonar.postgres.protobuf.SummaryResult result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.aliases_ = internalGetAliases();
+ result.aliases_.makeImmutable();
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ cteNames_.makeImmutable();
+ result.cteNames_ = cteNames_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ statementTypes_.makeImmutable();
+ result.statementTypes_ = statementTypes_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.truncatedQuery_ = truncatedQuery_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.premiumminds.sonar.postgres.protobuf.SummaryResult) {
+ return mergeFrom((com.premiumminds.sonar.postgres.protobuf.SummaryResult)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.premiumminds.sonar.postgres.protobuf.SummaryResult other) {
+ if (other == com.premiumminds.sonar.postgres.protobuf.SummaryResult.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.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getTablesFieldBuilder() : null;
+ } else {
+ tablesBuilder_.addAllMessages(other.tables_);
+ }
+ }
+ }
+ internalGetMutableAliases().mergeFrom(
+ other.internalGetAliases());
+ bitField0_ |= 0x00000002;
+ if (!other.cteNames_.isEmpty()) {
+ if (cteNames_.isEmpty()) {
+ cteNames_ = other.cteNames_;
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureCteNamesIsMutable();
+ cteNames_.addAll(other.cteNames_);
+ }
+ onChanged();
+ }
+ if (functionsBuilder_ == null) {
+ if (!other.functions_.isEmpty()) {
+ if (functions_.isEmpty()) {
+ functions_ = other.functions_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureFunctionsIsMutable();
+ functions_.addAll(other.functions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.functions_.isEmpty()) {
+ if (functionsBuilder_.isEmpty()) {
+ functionsBuilder_.dispose();
+ functionsBuilder_ = null;
+ functions_ = other.functions_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ functionsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getFunctionsFieldBuilder() : null;
+ } else {
+ functionsBuilder_.addAllMessages(other.functions_);
+ }
+ }
+ }
+ if (filterColumnsBuilder_ == null) {
+ if (!other.filterColumns_.isEmpty()) {
+ if (filterColumns_.isEmpty()) {
+ filterColumns_ = other.filterColumns_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ ensureFilterColumnsIsMutable();
+ filterColumns_.addAll(other.filterColumns_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.filterColumns_.isEmpty()) {
+ if (filterColumnsBuilder_.isEmpty()) {
+ filterColumnsBuilder_.dispose();
+ filterColumnsBuilder_ = null;
+ filterColumns_ = other.filterColumns_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ filterColumnsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getFilterColumnsFieldBuilder() : null;
+ } else {
+ filterColumnsBuilder_.addAllMessages(other.filterColumns_);
+ }
+ }
+ }
+ if (!other.statementTypes_.isEmpty()) {
+ if (statementTypes_.isEmpty()) {
+ statementTypes_ = other.statementTypes_;
+ bitField0_ |= 0x00000020;
+ } else {
+ ensureStatementTypesIsMutable();
+ statementTypes_.addAll(other.statementTypes_);
+ }
+ onChanged();
+ }
+ if (!other.getTruncatedQuery().isEmpty()) {
+ truncatedQuery_ = other.truncatedQuery_;
+ bitField0_ |= 0x00000040;
+ 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 {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table m =
+ input.readMessage(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.parser(),
+ extensionRegistry);
+ if (tablesBuilder_ == null) {
+ ensureTablesIsMutable();
+ tables_.add(m);
+ } else {
+ tablesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 18: {
+ com.google.protobuf.MapEntry
+ aliases__ = input.readMessage(
+ AliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+ internalGetMutableAliases().getMutableMap().put(
+ aliases__.getKey(), aliases__.getValue());
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureCteNamesIsMutable();
+ cteNames_.add(s);
+ break;
+ } // case 26
+ case 34: {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function m =
+ input.readMessage(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.parser(),
+ extensionRegistry);
+ if (functionsBuilder_ == null) {
+ ensureFunctionsIsMutable();
+ functions_.add(m);
+ } else {
+ functionsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 34
+ case 42: {
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn m =
+ input.readMessage(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.parser(),
+ extensionRegistry);
+ if (filterColumnsBuilder_ == null) {
+ ensureFilterColumnsIsMutable();
+ filterColumns_.add(m);
+ } else {
+ filterColumnsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 42
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureStatementTypesIsMutable();
+ statementTypes_.add(s);
+ break;
+ } // case 50
+ case 58: {
+ truncatedQuery_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ 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.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.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder> tablesBuilder_;
+
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public java.util.List getTablesList() {
+ if (tablesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(tables_);
+ } else {
+ return tablesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public int getTablesCount() {
+ if (tablesBuilder_ == null) {
+ return tables_.size();
+ } else {
+ return tablesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table getTables(int index) {
+ if (tablesBuilder_ == null) {
+ return tables_.get(index);
+ } else {
+ return tablesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder setTables(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table value) {
+ if (tablesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTablesIsMutable();
+ tables_.set(index, value);
+ onChanged();
+ } else {
+ tablesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder setTables(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder builderForValue) {
+ if (tablesBuilder_ == null) {
+ ensureTablesIsMutable();
+ tables_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ tablesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder addTables(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table value) {
+ if (tablesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTablesIsMutable();
+ tables_.add(value);
+ onChanged();
+ } else {
+ tablesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder addTables(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table value) {
+ if (tablesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTablesIsMutable();
+ tables_.add(index, value);
+ onChanged();
+ } else {
+ tablesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder addTables(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder builderForValue) {
+ if (tablesBuilder_ == null) {
+ ensureTablesIsMutable();
+ tables_.add(builderForValue.build());
+ onChanged();
+ } else {
+ tablesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder addTables(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder builderForValue) {
+ if (tablesBuilder_ == null) {
+ ensureTablesIsMutable();
+ tables_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ tablesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder addAllTables(
+ java.lang.Iterable extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table> values) {
+ if (tablesBuilder_ == null) {
+ ensureTablesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tables_);
+ onChanged();
+ } else {
+ tablesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder clearTables() {
+ if (tablesBuilder_ == null) {
+ tables_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ tablesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public Builder removeTables(int index) {
+ if (tablesBuilder_ == null) {
+ ensureTablesIsMutable();
+ tables_.remove(index);
+ onChanged();
+ } else {
+ tablesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder getTablesBuilder(
+ int index) {
+ return getTablesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder getTablesOrBuilder(
+ int index) {
+ if (tablesBuilder_ == null) {
+ return tables_.get(index); } else {
+ return tablesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder>
+ getTablesOrBuilderList() {
+ if (tablesBuilder_ != null) {
+ return tablesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tables_);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder addTablesBuilder() {
+ return getTablesFieldBuilder().addBuilder(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.getDefaultInstance());
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder addTablesBuilder(
+ int index) {
+ return getTablesFieldBuilder().addBuilder(
+ index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.getDefaultInstance());
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ public java.util.List
+ getTablesBuilderList() {
+ return getTablesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder>
+ getTablesFieldBuilder() {
+ if (tablesBuilder_ == null) {
+ tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder>(
+ tables_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ tables_ = null;
+ }
+ return tablesBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> aliases_;
+ private com.google.protobuf.MapField
+ internalGetAliases() {
+ if (aliases_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ AliasesDefaultEntryHolder.defaultEntry);
+ }
+ return aliases_;
+ }
+ private com.google.protobuf.MapField
+ internalGetMutableAliases() {
+ if (aliases_ == null) {
+ aliases_ = com.google.protobuf.MapField.newMapField(
+ AliasesDefaultEntryHolder.defaultEntry);
+ }
+ if (!aliases_.isMutable()) {
+ aliases_ = aliases_.copy();
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return aliases_;
+ }
+ public int getAliasesCount() {
+ return internalGetAliases().getMap().size();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public boolean containsAliases(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetAliases().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAliasesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getAliases() {
+ return getAliasesMap();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public java.util.Map getAliasesMap() {
+ return internalGetAliases().getMap();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getAliasesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetAliases().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ @java.lang.Override
+ public java.lang.String getAliasesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetAliases().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+ public Builder clearAliases() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ internalGetMutableAliases().getMutableMap()
+ .clear();
+ return this;
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ public Builder removeAliases(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableAliases().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map
+ getMutableAliases() {
+ bitField0_ |= 0x00000002;
+ return internalGetMutableAliases().getMutableMap();
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ public Builder putAliases(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableAliases().getMutableMap()
+ .put(key, value);
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ public Builder putAllAliases(
+ java.util.Map values) {
+ internalGetMutableAliases().getMutableMap()
+ .putAll(values);
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList cteNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureCteNamesIsMutable() {
+ if (!cteNames_.isModifiable()) {
+ cteNames_ = new com.google.protobuf.LazyStringArrayList(cteNames_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @return A list containing the cteNames.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getCteNamesList() {
+ cteNames_.makeImmutable();
+ return cteNames_;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @return The count of cteNames.
+ */
+ public int getCteNamesCount() {
+ return cteNames_.size();
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index of the element to return.
+ * @return The cteNames at the given index.
+ */
+ public java.lang.String getCteNames(int index) {
+ return cteNames_.get(index);
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the cteNames at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getCteNamesBytes(int index) {
+ return cteNames_.getByteString(index);
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index to set the value at.
+ * @param value The cteNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCteNames(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureCteNamesIsMutable();
+ cteNames_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param value The cteNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCteNames(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureCteNamesIsMutable();
+ cteNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param values The cteNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllCteNames(
+ java.lang.Iterable values) {
+ ensureCteNamesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, cteNames_);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCteNames() {
+ cteNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cte_names = 3;
+ * @param value The bytes of the cteNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCteNamesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureCteNamesIsMutable();
+ cteNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List functions_ =
+ java.util.Collections.emptyList();
+ private void ensureFunctionsIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ functions_ = new java.util.ArrayList(functions_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder> functionsBuilder_;
+
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public java.util.List getFunctionsList() {
+ if (functionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(functions_);
+ } else {
+ return functionsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public int getFunctionsCount() {
+ if (functionsBuilder_ == null) {
+ return functions_.size();
+ } else {
+ return functionsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function getFunctions(int index) {
+ if (functionsBuilder_ == null) {
+ return functions_.get(index);
+ } else {
+ return functionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder setFunctions(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function value) {
+ if (functionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFunctionsIsMutable();
+ functions_.set(index, value);
+ onChanged();
+ } else {
+ functionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder setFunctions(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder builderForValue) {
+ if (functionsBuilder_ == null) {
+ ensureFunctionsIsMutable();
+ functions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ functionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder addFunctions(com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function value) {
+ if (functionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFunctionsIsMutable();
+ functions_.add(value);
+ onChanged();
+ } else {
+ functionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder addFunctions(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function value) {
+ if (functionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFunctionsIsMutable();
+ functions_.add(index, value);
+ onChanged();
+ } else {
+ functionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder addFunctions(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder builderForValue) {
+ if (functionsBuilder_ == null) {
+ ensureFunctionsIsMutable();
+ functions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ functionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder addFunctions(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder builderForValue) {
+ if (functionsBuilder_ == null) {
+ ensureFunctionsIsMutable();
+ functions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ functionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder addAllFunctions(
+ java.lang.Iterable extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function> values) {
+ if (functionsBuilder_ == null) {
+ ensureFunctionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, functions_);
+ onChanged();
+ } else {
+ functionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder clearFunctions() {
+ if (functionsBuilder_ == null) {
+ functions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ functionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public Builder removeFunctions(int index) {
+ if (functionsBuilder_ == null) {
+ ensureFunctionsIsMutable();
+ functions_.remove(index);
+ onChanged();
+ } else {
+ functionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder getFunctionsBuilder(
+ int index) {
+ return getFunctionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder getFunctionsOrBuilder(
+ int index) {
+ if (functionsBuilder_ == null) {
+ return functions_.get(index); } else {
+ return functionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder>
+ getFunctionsOrBuilderList() {
+ if (functionsBuilder_ != null) {
+ return functionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(functions_);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder addFunctionsBuilder() {
+ return getFunctionsFieldBuilder().addBuilder(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.getDefaultInstance());
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder addFunctionsBuilder(
+ int index) {
+ return getFunctionsFieldBuilder().addBuilder(
+ index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.getDefaultInstance());
+ }
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ public java.util.List
+ getFunctionsBuilderList() {
+ return getFunctionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder>
+ getFunctionsFieldBuilder() {
+ if (functionsBuilder_ == null) {
+ functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function, com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder>(
+ functions_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ functions_ = null;
+ }
+ return functionsBuilder_;
+ }
+
+ private java.util.List filterColumns_ =
+ java.util.Collections.emptyList();
+ private void ensureFilterColumnsIsMutable() {
+ if (!((bitField0_ & 0x00000010) != 0)) {
+ filterColumns_ = new java.util.ArrayList(filterColumns_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder> filterColumnsBuilder_;
+
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public java.util.List getFilterColumnsList() {
+ if (filterColumnsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(filterColumns_);
+ } else {
+ return filterColumnsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public int getFilterColumnsCount() {
+ if (filterColumnsBuilder_ == null) {
+ return filterColumns_.size();
+ } else {
+ return filterColumnsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn getFilterColumns(int index) {
+ if (filterColumnsBuilder_ == null) {
+ return filterColumns_.get(index);
+ } else {
+ return filterColumnsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder setFilterColumns(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn value) {
+ if (filterColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFilterColumnsIsMutable();
+ filterColumns_.set(index, value);
+ onChanged();
+ } else {
+ filterColumnsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder setFilterColumns(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder builderForValue) {
+ if (filterColumnsBuilder_ == null) {
+ ensureFilterColumnsIsMutable();
+ filterColumns_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ filterColumnsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder addFilterColumns(com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn value) {
+ if (filterColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFilterColumnsIsMutable();
+ filterColumns_.add(value);
+ onChanged();
+ } else {
+ filterColumnsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder addFilterColumns(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn value) {
+ if (filterColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFilterColumnsIsMutable();
+ filterColumns_.add(index, value);
+ onChanged();
+ } else {
+ filterColumnsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder addFilterColumns(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder builderForValue) {
+ if (filterColumnsBuilder_ == null) {
+ ensureFilterColumnsIsMutable();
+ filterColumns_.add(builderForValue.build());
+ onChanged();
+ } else {
+ filterColumnsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder addFilterColumns(
+ int index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder builderForValue) {
+ if (filterColumnsBuilder_ == null) {
+ ensureFilterColumnsIsMutable();
+ filterColumns_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ filterColumnsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder addAllFilterColumns(
+ java.lang.Iterable extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn> values) {
+ if (filterColumnsBuilder_ == null) {
+ ensureFilterColumnsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, filterColumns_);
+ onChanged();
+ } else {
+ filterColumnsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder clearFilterColumns() {
+ if (filterColumnsBuilder_ == null) {
+ filterColumns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ filterColumnsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public Builder removeFilterColumns(int index) {
+ if (filterColumnsBuilder_ == null) {
+ ensureFilterColumnsIsMutable();
+ filterColumns_.remove(index);
+ onChanged();
+ } else {
+ filterColumnsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder getFilterColumnsBuilder(
+ int index) {
+ return getFilterColumnsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder getFilterColumnsOrBuilder(
+ int index) {
+ if (filterColumnsBuilder_ == null) {
+ return filterColumns_.get(index); } else {
+ return filterColumnsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder>
+ getFilterColumnsOrBuilderList() {
+ if (filterColumnsBuilder_ != null) {
+ return filterColumnsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(filterColumns_);
+ }
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder addFilterColumnsBuilder() {
+ return getFilterColumnsFieldBuilder().addBuilder(
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.getDefaultInstance());
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder addFilterColumnsBuilder(
+ int index) {
+ return getFilterColumnsFieldBuilder().addBuilder(
+ index, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.getDefaultInstance());
+ }
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ public java.util.List
+ getFilterColumnsBuilderList() {
+ return getFilterColumnsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder>
+ getFilterColumnsFieldBuilder() {
+ if (filterColumnsBuilder_ == null) {
+ filterColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn.Builder, com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder>(
+ filterColumns_,
+ ((bitField0_ & 0x00000010) != 0),
+ getParentForChildren(),
+ isClean());
+ filterColumns_ = null;
+ }
+ return filterColumnsBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringArrayList statementTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureStatementTypesIsMutable() {
+ if (!statementTypes_.isModifiable()) {
+ statementTypes_ = new com.google.protobuf.LazyStringArrayList(statementTypes_);
+ }
+ bitField0_ |= 0x00000020;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @return A list containing the statementTypes.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getStatementTypesList() {
+ statementTypes_.makeImmutable();
+ return statementTypes_;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @return The count of statementTypes.
+ */
+ public int getStatementTypesCount() {
+ return statementTypes_.size();
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index of the element to return.
+ * @return The statementTypes at the given index.
+ */
+ public java.lang.String getStatementTypes(int index) {
+ return statementTypes_.get(index);
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index of the value to return.
+ * @return The bytes of the statementTypes at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getStatementTypesBytes(int index) {
+ return statementTypes_.getByteString(index);
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index to set the value at.
+ * @param value The statementTypes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatementTypes(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureStatementTypesIsMutable();
+ statementTypes_.set(index, value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param value The statementTypes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addStatementTypes(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureStatementTypesIsMutable();
+ statementTypes_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param values The statementTypes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllStatementTypes(
+ java.lang.Iterable values) {
+ ensureStatementTypesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, statementTypes_);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearStatementTypes() {
+ statementTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string statement_types = 6;
+ * @param value The bytes of the statementTypes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addStatementTypesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureStatementTypesIsMutable();
+ statementTypes_.add(value);
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object truncatedQuery_ = "";
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return The truncatedQuery.
+ */
+ public java.lang.String getTruncatedQuery() {
+ java.lang.Object ref = truncatedQuery_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ truncatedQuery_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return The bytes for truncatedQuery.
+ */
+ public com.google.protobuf.ByteString
+ getTruncatedQueryBytes() {
+ java.lang.Object ref = truncatedQuery_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ truncatedQuery_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @param value The truncatedQuery to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTruncatedQuery(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ truncatedQuery_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearTruncatedQuery() {
+ truncatedQuery_ = getDefaultInstance().getTruncatedQuery();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @param value The bytes for truncatedQuery to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTruncatedQueryBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ truncatedQuery_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pg_query.SummaryResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:pg_query.SummaryResult)
+ private static final com.premiumminds.sonar.postgres.protobuf.SummaryResult DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.premiumminds.sonar.postgres.protobuf.SummaryResult();
+ }
+
+ public static com.premiumminds.sonar.postgres.protobuf.SummaryResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SummaryResult 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 com.premiumminds.sonar.postgres.protobuf.SummaryResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/src/main/java/com/premiumminds/sonar/postgres/protobuf/SummaryResultOrBuilder.java b/src/main/java/com/premiumminds/sonar/postgres/protobuf/SummaryResultOrBuilder.java
new file mode 100644
index 0000000..7a91d06
--- /dev/null
+++ b/src/main/java/com/premiumminds/sonar/postgres/protobuf/SummaryResultOrBuilder.java
@@ -0,0 +1,206 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: pg_query.proto
+
+// Protobuf Java Version: 3.25.1
+package com.premiumminds.sonar.postgres.protobuf;
+
+public interface SummaryResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pg_query.SummaryResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ java.util.List
+ getTablesList();
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Table getTables(int index);
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ int getTablesCount();
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder>
+ getTablesOrBuilderList();
+ /**
+ * repeated .pg_query.SummaryResult.Table tables = 1;
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.TableOrBuilder getTablesOrBuilder(
+ int index);
+
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ int getAliasesCount();
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ boolean containsAliases(
+ java.lang.String key);
+ /**
+ * Use {@link #getAliasesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ getAliases();
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ java.util.Map
+ getAliasesMap();
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ /* nullable */
+java.lang.String getAliasesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ *
+ * The value here is the table name (i.e. schema.table or just table).
+ *
+ *
+ * map<string, string> aliases = 2;
+ */
+ java.lang.String getAliasesOrThrow(
+ java.lang.String key);
+
+ /**
+ * repeated string cte_names = 3;
+ * @return A list containing the cteNames.
+ */
+ java.util.List
+ getCteNamesList();
+ /**
+ * repeated string cte_names = 3;
+ * @return The count of cteNames.
+ */
+ int getCteNamesCount();
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index of the element to return.
+ * @return The cteNames at the given index.
+ */
+ java.lang.String getCteNames(int index);
+ /**
+ * repeated string cte_names = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the cteNames at the given index.
+ */
+ com.google.protobuf.ByteString
+ getCteNamesBytes(int index);
+
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ java.util.List
+ getFunctionsList();
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.Function getFunctions(int index);
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ int getFunctionsCount();
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder>
+ getFunctionsOrBuilderList();
+ /**
+ * repeated .pg_query.SummaryResult.Function functions = 4;
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FunctionOrBuilder getFunctionsOrBuilder(
+ int index);
+
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ java.util.List
+ getFilterColumnsList();
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumn getFilterColumns(int index);
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ int getFilterColumnsCount();
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ java.util.List extends com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder>
+ getFilterColumnsOrBuilderList();
+ /**
+ * repeated .pg_query.SummaryResult.FilterColumn filter_columns = 5;
+ */
+ com.premiumminds.sonar.postgres.protobuf.SummaryResult.FilterColumnOrBuilder getFilterColumnsOrBuilder(
+ int index);
+
+ /**
+ * repeated string statement_types = 6;
+ * @return A list containing the statementTypes.
+ */
+ java.util.List
+ getStatementTypesList();
+ /**
+ * repeated string statement_types = 6;
+ * @return The count of statementTypes.
+ */
+ int getStatementTypesCount();
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index of the element to return.
+ * @return The statementTypes at the given index.
+ */
+ java.lang.String getStatementTypes(int index);
+ /**
+ * repeated string statement_types = 6;
+ * @param index The index of the value to return.
+ * @return The bytes of the statementTypes at the given index.
+ */
+ com.google.protobuf.ByteString
+ getStatementTypesBytes(int index);
+
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return The truncatedQuery.
+ */
+ java.lang.String getTruncatedQuery();
+ /**
+ *
+ * optional, empty if truncation limit is -1
+ *
+ *
+ * string truncated_query = 7;
+ * @return The bytes for truncatedQuery.
+ */
+ com.google.protobuf.ByteString
+ getTruncatedQueryBytes();
+}
diff --git a/src/main/resources/darwin-aarch64/liblibpg_query.so.dylib b/src/main/resources/darwin-aarch64/liblibpg_query.so.dylib
index b7d058d..1613bb4 100755
Binary files a/src/main/resources/darwin-aarch64/liblibpg_query.so.dylib and b/src/main/resources/darwin-aarch64/liblibpg_query.so.dylib differ
diff --git a/src/main/resources/darwin-x86-64/liblibpg_query.so.dylib b/src/main/resources/darwin-x86-64/liblibpg_query.so.dylib
index 67d5dcf..4045b4b 100755
Binary files a/src/main/resources/darwin-x86-64/liblibpg_query.so.dylib and b/src/main/resources/darwin-x86-64/liblibpg_query.so.dylib differ
diff --git a/src/main/resources/linux-aarch64/libpg_query.so b/src/main/resources/linux-aarch64/libpg_query.so
index dc00a20..ced739f 100755
Binary files a/src/main/resources/linux-aarch64/libpg_query.so and b/src/main/resources/linux-aarch64/libpg_query.so differ
diff --git a/src/main/resources/linux-x86-64/libpg_query.so b/src/main/resources/linux-x86-64/libpg_query.so
index 3a7cacf..97ef8f1 100755
Binary files a/src/main/resources/linux-x86-64/libpg_query.so and b/src/main/resources/linux-x86-64/libpg_query.so differ
diff --git a/src/main/resources/win32-x86-64/libpg_query.so.dll b/src/main/resources/win32-x86-64/libpg_query.so.dll
index 5541100..b49d559 100755
Binary files a/src/main/resources/win32-x86-64/libpg_query.so.dll and b/src/main/resources/win32-x86-64/libpg_query.so.dll differ
diff --git a/src/test/java/com/premiumminds/sonar/postgres/libpg_query/PGQueryLibraryTest.java b/src/test/java/com/premiumminds/sonar/postgres/libpg_query/PGQueryLibraryTest.java
index 39cdaeb..9465876 100644
--- a/src/test/java/com/premiumminds/sonar/postgres/libpg_query/PGQueryLibraryTest.java
+++ b/src/test/java/com/premiumminds/sonar/postgres/libpg_query/PGQueryLibraryTest.java
@@ -25,7 +25,7 @@ void pg_query_parse() {
final PgQueryParseResult.ByValue result = PGQueryLibrary.INSTANCE.pg_query_parse(query);
assertNull(result.error);
- assertEquals("{\"version\":170000,\"stmts\":[{\"stmt\":{\"SelectStmt\":{\"targetList\":[{\"ResTarget\":{\"val\":{\"ColumnRef\":{\"fields\":[{\"String\":{\"sval\":\"bar\"}}],\"location\":7}},\"location\":7}}],\"fromClause\":[{\"RangeVar\":{\"relname\":\"foo\",\"inh\":true,\"relpersistence\":\"p\",\"location\":16}}],\"limitOption\":\"LIMIT_OPTION_DEFAULT\",\"op\":\"SETOP_NONE\"}},\"stmt_len\":19}]}",
+ assertEquals("{\"version\":170007,\"stmts\":[{\"stmt\":{\"SelectStmt\":{\"targetList\":[{\"ResTarget\":{\"val\":{\"ColumnRef\":{\"fields\":[{\"String\":{\"sval\":\"bar\"}}],\"location\":7}},\"location\":7}}],\"fromClause\":[{\"RangeVar\":{\"relname\":\"foo\",\"inh\":true,\"relpersistence\":\"p\",\"location\":16}}],\"limitOption\":\"LIMIT_OPTION_DEFAULT\",\"op\":\"SETOP_NONE\"}},\"stmt_len\":19}]}",
result.parse_tree.getString(0));
PGQueryLibrary.INSTANCE.pg_query_free_parse_result(result);