UNPKG

@yandex-cloud/nodejs-sdk

Version:
886 lines (885 loc) 89 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostgresqlHostConfig16 = exports.postgresqlHostConfig16_XmlOptionToJSON = exports.postgresqlHostConfig16_XmlOptionFromJSON = exports.PostgresqlHostConfig16_XmlOption = exports.postgresqlHostConfig16_XmlBinaryToJSON = exports.postgresqlHostConfig16_XmlBinaryFromJSON = exports.PostgresqlHostConfig16_XmlBinary = exports.postgresqlHostConfig16_TransactionIsolationToJSON = exports.postgresqlHostConfig16_TransactionIsolationFromJSON = exports.PostgresqlHostConfig16_TransactionIsolation = exports.postgresqlHostConfig16_LogStatementToJSON = exports.postgresqlHostConfig16_LogStatementFromJSON = exports.PostgresqlHostConfig16_LogStatement = exports.postgresqlHostConfig16_LogLevelToJSON = exports.postgresqlHostConfig16_LogLevelFromJSON = exports.PostgresqlHostConfig16_LogLevel = exports.postgresqlHostConfig16_LogErrorVerbosityToJSON = exports.postgresqlHostConfig16_LogErrorVerbosityFromJSON = exports.PostgresqlHostConfig16_LogErrorVerbosity = exports.postgresqlHostConfig16_ForceParallelModeToJSON = exports.postgresqlHostConfig16_ForceParallelModeFromJSON = exports.PostgresqlHostConfig16_ForceParallelMode = exports.postgresqlHostConfig16_DebugParallelQueryToJSON = exports.postgresqlHostConfig16_DebugParallelQueryFromJSON = exports.PostgresqlHostConfig16_DebugParallelQuery = exports.postgresqlHostConfig16_ConstraintExclusionToJSON = exports.postgresqlHostConfig16_ConstraintExclusionFromJSON = exports.PostgresqlHostConfig16_ConstraintExclusion = exports.postgresqlHostConfig16_ByteaOutputToJSON = exports.postgresqlHostConfig16_ByteaOutputFromJSON = exports.PostgresqlHostConfig16_ByteaOutput = exports.postgresqlHostConfig16_BackslashQuoteToJSON = exports.postgresqlHostConfig16_BackslashQuoteFromJSON = exports.PostgresqlHostConfig16_BackslashQuote = exports.protobufPackage = void 0; /* eslint-disable */ const typeRegistry_1 = require("../../../../../../typeRegistry"); const long_1 = __importDefault(require("long")); const minimal_1 = __importDefault(require("protobufjs/minimal")); const wrappers_1 = require("../../../../../../google/protobuf/wrappers"); exports.protobufPackage = "yandex.cloud.mdb.postgresql.v1.config"; var PostgresqlHostConfig16_BackslashQuote; (function (PostgresqlHostConfig16_BackslashQuote) { PostgresqlHostConfig16_BackslashQuote[PostgresqlHostConfig16_BackslashQuote["BACKSLASH_QUOTE_UNSPECIFIED"] = 0] = "BACKSLASH_QUOTE_UNSPECIFIED"; PostgresqlHostConfig16_BackslashQuote[PostgresqlHostConfig16_BackslashQuote["BACKSLASH_QUOTE"] = 1] = "BACKSLASH_QUOTE"; PostgresqlHostConfig16_BackslashQuote[PostgresqlHostConfig16_BackslashQuote["BACKSLASH_QUOTE_ON"] = 2] = "BACKSLASH_QUOTE_ON"; PostgresqlHostConfig16_BackslashQuote[PostgresqlHostConfig16_BackslashQuote["BACKSLASH_QUOTE_OFF"] = 3] = "BACKSLASH_QUOTE_OFF"; PostgresqlHostConfig16_BackslashQuote[PostgresqlHostConfig16_BackslashQuote["BACKSLASH_QUOTE_SAFE_ENCODING"] = 4] = "BACKSLASH_QUOTE_SAFE_ENCODING"; PostgresqlHostConfig16_BackslashQuote[PostgresqlHostConfig16_BackslashQuote["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_BackslashQuote = exports.PostgresqlHostConfig16_BackslashQuote || (exports.PostgresqlHostConfig16_BackslashQuote = {})); function postgresqlHostConfig16_BackslashQuoteFromJSON(object) { switch (object) { case 0: case "BACKSLASH_QUOTE_UNSPECIFIED": return PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_UNSPECIFIED; case 1: case "BACKSLASH_QUOTE": return PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE; case 2: case "BACKSLASH_QUOTE_ON": return PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_ON; case 3: case "BACKSLASH_QUOTE_OFF": return PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_OFF; case 4: case "BACKSLASH_QUOTE_SAFE_ENCODING": return PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_SAFE_ENCODING; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_BackslashQuote.UNRECOGNIZED; } } exports.postgresqlHostConfig16_BackslashQuoteFromJSON = postgresqlHostConfig16_BackslashQuoteFromJSON; function postgresqlHostConfig16_BackslashQuoteToJSON(object) { switch (object) { case PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_UNSPECIFIED: return "BACKSLASH_QUOTE_UNSPECIFIED"; case PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE: return "BACKSLASH_QUOTE"; case PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_ON: return "BACKSLASH_QUOTE_ON"; case PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_OFF: return "BACKSLASH_QUOTE_OFF"; case PostgresqlHostConfig16_BackslashQuote.BACKSLASH_QUOTE_SAFE_ENCODING: return "BACKSLASH_QUOTE_SAFE_ENCODING"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_BackslashQuoteToJSON = postgresqlHostConfig16_BackslashQuoteToJSON; var PostgresqlHostConfig16_ByteaOutput; (function (PostgresqlHostConfig16_ByteaOutput) { PostgresqlHostConfig16_ByteaOutput[PostgresqlHostConfig16_ByteaOutput["BYTEA_OUTPUT_UNSPECIFIED"] = 0] = "BYTEA_OUTPUT_UNSPECIFIED"; PostgresqlHostConfig16_ByteaOutput[PostgresqlHostConfig16_ByteaOutput["BYTEA_OUTPUT_HEX"] = 1] = "BYTEA_OUTPUT_HEX"; PostgresqlHostConfig16_ByteaOutput[PostgresqlHostConfig16_ByteaOutput["BYTEA_OUTPUT_ESCAPED"] = 2] = "BYTEA_OUTPUT_ESCAPED"; PostgresqlHostConfig16_ByteaOutput[PostgresqlHostConfig16_ByteaOutput["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_ByteaOutput = exports.PostgresqlHostConfig16_ByteaOutput || (exports.PostgresqlHostConfig16_ByteaOutput = {})); function postgresqlHostConfig16_ByteaOutputFromJSON(object) { switch (object) { case 0: case "BYTEA_OUTPUT_UNSPECIFIED": return PostgresqlHostConfig16_ByteaOutput.BYTEA_OUTPUT_UNSPECIFIED; case 1: case "BYTEA_OUTPUT_HEX": return PostgresqlHostConfig16_ByteaOutput.BYTEA_OUTPUT_HEX; case 2: case "BYTEA_OUTPUT_ESCAPED": return PostgresqlHostConfig16_ByteaOutput.BYTEA_OUTPUT_ESCAPED; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_ByteaOutput.UNRECOGNIZED; } } exports.postgresqlHostConfig16_ByteaOutputFromJSON = postgresqlHostConfig16_ByteaOutputFromJSON; function postgresqlHostConfig16_ByteaOutputToJSON(object) { switch (object) { case PostgresqlHostConfig16_ByteaOutput.BYTEA_OUTPUT_UNSPECIFIED: return "BYTEA_OUTPUT_UNSPECIFIED"; case PostgresqlHostConfig16_ByteaOutput.BYTEA_OUTPUT_HEX: return "BYTEA_OUTPUT_HEX"; case PostgresqlHostConfig16_ByteaOutput.BYTEA_OUTPUT_ESCAPED: return "BYTEA_OUTPUT_ESCAPED"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_ByteaOutputToJSON = postgresqlHostConfig16_ByteaOutputToJSON; var PostgresqlHostConfig16_ConstraintExclusion; (function (PostgresqlHostConfig16_ConstraintExclusion) { PostgresqlHostConfig16_ConstraintExclusion[PostgresqlHostConfig16_ConstraintExclusion["CONSTRAINT_EXCLUSION_UNSPECIFIED"] = 0] = "CONSTRAINT_EXCLUSION_UNSPECIFIED"; PostgresqlHostConfig16_ConstraintExclusion[PostgresqlHostConfig16_ConstraintExclusion["CONSTRAINT_EXCLUSION_ON"] = 1] = "CONSTRAINT_EXCLUSION_ON"; PostgresqlHostConfig16_ConstraintExclusion[PostgresqlHostConfig16_ConstraintExclusion["CONSTRAINT_EXCLUSION_OFF"] = 2] = "CONSTRAINT_EXCLUSION_OFF"; PostgresqlHostConfig16_ConstraintExclusion[PostgresqlHostConfig16_ConstraintExclusion["CONSTRAINT_EXCLUSION_PARTITION"] = 3] = "CONSTRAINT_EXCLUSION_PARTITION"; PostgresqlHostConfig16_ConstraintExclusion[PostgresqlHostConfig16_ConstraintExclusion["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_ConstraintExclusion = exports.PostgresqlHostConfig16_ConstraintExclusion || (exports.PostgresqlHostConfig16_ConstraintExclusion = {})); function postgresqlHostConfig16_ConstraintExclusionFromJSON(object) { switch (object) { case 0: case "CONSTRAINT_EXCLUSION_UNSPECIFIED": return PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_UNSPECIFIED; case 1: case "CONSTRAINT_EXCLUSION_ON": return PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_ON; case 2: case "CONSTRAINT_EXCLUSION_OFF": return PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_OFF; case 3: case "CONSTRAINT_EXCLUSION_PARTITION": return PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_PARTITION; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_ConstraintExclusion.UNRECOGNIZED; } } exports.postgresqlHostConfig16_ConstraintExclusionFromJSON = postgresqlHostConfig16_ConstraintExclusionFromJSON; function postgresqlHostConfig16_ConstraintExclusionToJSON(object) { switch (object) { case PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_UNSPECIFIED: return "CONSTRAINT_EXCLUSION_UNSPECIFIED"; case PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_ON: return "CONSTRAINT_EXCLUSION_ON"; case PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_OFF: return "CONSTRAINT_EXCLUSION_OFF"; case PostgresqlHostConfig16_ConstraintExclusion.CONSTRAINT_EXCLUSION_PARTITION: return "CONSTRAINT_EXCLUSION_PARTITION"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_ConstraintExclusionToJSON = postgresqlHostConfig16_ConstraintExclusionToJSON; var PostgresqlHostConfig16_DebugParallelQuery; (function (PostgresqlHostConfig16_DebugParallelQuery) { PostgresqlHostConfig16_DebugParallelQuery[PostgresqlHostConfig16_DebugParallelQuery["DEBUG_PARALLEL_QUERY_UNSPECIFIED"] = 0] = "DEBUG_PARALLEL_QUERY_UNSPECIFIED"; PostgresqlHostConfig16_DebugParallelQuery[PostgresqlHostConfig16_DebugParallelQuery["DEBUG_PARALLEL_QUERY_ON"] = 1] = "DEBUG_PARALLEL_QUERY_ON"; PostgresqlHostConfig16_DebugParallelQuery[PostgresqlHostConfig16_DebugParallelQuery["DEBUG_PARALLEL_QUERY_OFF"] = 2] = "DEBUG_PARALLEL_QUERY_OFF"; PostgresqlHostConfig16_DebugParallelQuery[PostgresqlHostConfig16_DebugParallelQuery["DEBUG_PARALLEL_QUERY_REGRESS"] = 3] = "DEBUG_PARALLEL_QUERY_REGRESS"; PostgresqlHostConfig16_DebugParallelQuery[PostgresqlHostConfig16_DebugParallelQuery["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_DebugParallelQuery = exports.PostgresqlHostConfig16_DebugParallelQuery || (exports.PostgresqlHostConfig16_DebugParallelQuery = {})); function postgresqlHostConfig16_DebugParallelQueryFromJSON(object) { switch (object) { case 0: case "DEBUG_PARALLEL_QUERY_UNSPECIFIED": return PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_UNSPECIFIED; case 1: case "DEBUG_PARALLEL_QUERY_ON": return PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_ON; case 2: case "DEBUG_PARALLEL_QUERY_OFF": return PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_OFF; case 3: case "DEBUG_PARALLEL_QUERY_REGRESS": return PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_REGRESS; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_DebugParallelQuery.UNRECOGNIZED; } } exports.postgresqlHostConfig16_DebugParallelQueryFromJSON = postgresqlHostConfig16_DebugParallelQueryFromJSON; function postgresqlHostConfig16_DebugParallelQueryToJSON(object) { switch (object) { case PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_UNSPECIFIED: return "DEBUG_PARALLEL_QUERY_UNSPECIFIED"; case PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_ON: return "DEBUG_PARALLEL_QUERY_ON"; case PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_OFF: return "DEBUG_PARALLEL_QUERY_OFF"; case PostgresqlHostConfig16_DebugParallelQuery.DEBUG_PARALLEL_QUERY_REGRESS: return "DEBUG_PARALLEL_QUERY_REGRESS"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_DebugParallelQueryToJSON = postgresqlHostConfig16_DebugParallelQueryToJSON; var PostgresqlHostConfig16_ForceParallelMode; (function (PostgresqlHostConfig16_ForceParallelMode) { PostgresqlHostConfig16_ForceParallelMode[PostgresqlHostConfig16_ForceParallelMode["FORCE_PARALLEL_MODE_UNSPECIFIED"] = 0] = "FORCE_PARALLEL_MODE_UNSPECIFIED"; PostgresqlHostConfig16_ForceParallelMode[PostgresqlHostConfig16_ForceParallelMode["FORCE_PARALLEL_MODE_ON"] = 1] = "FORCE_PARALLEL_MODE_ON"; PostgresqlHostConfig16_ForceParallelMode[PostgresqlHostConfig16_ForceParallelMode["FORCE_PARALLEL_MODE_OFF"] = 2] = "FORCE_PARALLEL_MODE_OFF"; PostgresqlHostConfig16_ForceParallelMode[PostgresqlHostConfig16_ForceParallelMode["FORCE_PARALLEL_MODE_REGRESS"] = 3] = "FORCE_PARALLEL_MODE_REGRESS"; PostgresqlHostConfig16_ForceParallelMode[PostgresqlHostConfig16_ForceParallelMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_ForceParallelMode = exports.PostgresqlHostConfig16_ForceParallelMode || (exports.PostgresqlHostConfig16_ForceParallelMode = {})); function postgresqlHostConfig16_ForceParallelModeFromJSON(object) { switch (object) { case 0: case "FORCE_PARALLEL_MODE_UNSPECIFIED": return PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_UNSPECIFIED; case 1: case "FORCE_PARALLEL_MODE_ON": return PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_ON; case 2: case "FORCE_PARALLEL_MODE_OFF": return PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_OFF; case 3: case "FORCE_PARALLEL_MODE_REGRESS": return PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_REGRESS; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_ForceParallelMode.UNRECOGNIZED; } } exports.postgresqlHostConfig16_ForceParallelModeFromJSON = postgresqlHostConfig16_ForceParallelModeFromJSON; function postgresqlHostConfig16_ForceParallelModeToJSON(object) { switch (object) { case PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_UNSPECIFIED: return "FORCE_PARALLEL_MODE_UNSPECIFIED"; case PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_ON: return "FORCE_PARALLEL_MODE_ON"; case PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_OFF: return "FORCE_PARALLEL_MODE_OFF"; case PostgresqlHostConfig16_ForceParallelMode.FORCE_PARALLEL_MODE_REGRESS: return "FORCE_PARALLEL_MODE_REGRESS"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_ForceParallelModeToJSON = postgresqlHostConfig16_ForceParallelModeToJSON; var PostgresqlHostConfig16_LogErrorVerbosity; (function (PostgresqlHostConfig16_LogErrorVerbosity) { PostgresqlHostConfig16_LogErrorVerbosity[PostgresqlHostConfig16_LogErrorVerbosity["LOG_ERROR_VERBOSITY_UNSPECIFIED"] = 0] = "LOG_ERROR_VERBOSITY_UNSPECIFIED"; PostgresqlHostConfig16_LogErrorVerbosity[PostgresqlHostConfig16_LogErrorVerbosity["LOG_ERROR_VERBOSITY_TERSE"] = 1] = "LOG_ERROR_VERBOSITY_TERSE"; PostgresqlHostConfig16_LogErrorVerbosity[PostgresqlHostConfig16_LogErrorVerbosity["LOG_ERROR_VERBOSITY_DEFAULT"] = 2] = "LOG_ERROR_VERBOSITY_DEFAULT"; PostgresqlHostConfig16_LogErrorVerbosity[PostgresqlHostConfig16_LogErrorVerbosity["LOG_ERROR_VERBOSITY_VERBOSE"] = 3] = "LOG_ERROR_VERBOSITY_VERBOSE"; PostgresqlHostConfig16_LogErrorVerbosity[PostgresqlHostConfig16_LogErrorVerbosity["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_LogErrorVerbosity = exports.PostgresqlHostConfig16_LogErrorVerbosity || (exports.PostgresqlHostConfig16_LogErrorVerbosity = {})); function postgresqlHostConfig16_LogErrorVerbosityFromJSON(object) { switch (object) { case 0: case "LOG_ERROR_VERBOSITY_UNSPECIFIED": return PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_UNSPECIFIED; case 1: case "LOG_ERROR_VERBOSITY_TERSE": return PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_TERSE; case 2: case "LOG_ERROR_VERBOSITY_DEFAULT": return PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_DEFAULT; case 3: case "LOG_ERROR_VERBOSITY_VERBOSE": return PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_VERBOSE; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_LogErrorVerbosity.UNRECOGNIZED; } } exports.postgresqlHostConfig16_LogErrorVerbosityFromJSON = postgresqlHostConfig16_LogErrorVerbosityFromJSON; function postgresqlHostConfig16_LogErrorVerbosityToJSON(object) { switch (object) { case PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_UNSPECIFIED: return "LOG_ERROR_VERBOSITY_UNSPECIFIED"; case PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_TERSE: return "LOG_ERROR_VERBOSITY_TERSE"; case PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_DEFAULT: return "LOG_ERROR_VERBOSITY_DEFAULT"; case PostgresqlHostConfig16_LogErrorVerbosity.LOG_ERROR_VERBOSITY_VERBOSE: return "LOG_ERROR_VERBOSITY_VERBOSE"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_LogErrorVerbosityToJSON = postgresqlHostConfig16_LogErrorVerbosityToJSON; var PostgresqlHostConfig16_LogLevel; (function (PostgresqlHostConfig16_LogLevel) { PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_DEBUG5"] = 1] = "LOG_LEVEL_DEBUG5"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_DEBUG4"] = 2] = "LOG_LEVEL_DEBUG4"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_DEBUG3"] = 3] = "LOG_LEVEL_DEBUG3"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_DEBUG2"] = 4] = "LOG_LEVEL_DEBUG2"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_DEBUG1"] = 5] = "LOG_LEVEL_DEBUG1"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_INFO"] = 12] = "LOG_LEVEL_INFO"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_LOG"] = 6] = "LOG_LEVEL_LOG"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_NOTICE"] = 7] = "LOG_LEVEL_NOTICE"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_WARNING"] = 8] = "LOG_LEVEL_WARNING"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_ERROR"] = 9] = "LOG_LEVEL_ERROR"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_FATAL"] = 10] = "LOG_LEVEL_FATAL"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["LOG_LEVEL_PANIC"] = 11] = "LOG_LEVEL_PANIC"; PostgresqlHostConfig16_LogLevel[PostgresqlHostConfig16_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_LogLevel = exports.PostgresqlHostConfig16_LogLevel || (exports.PostgresqlHostConfig16_LogLevel = {})); function postgresqlHostConfig16_LogLevelFromJSON(object) { switch (object) { case 0: case "LOG_LEVEL_UNSPECIFIED": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_UNSPECIFIED; case 1: case "LOG_LEVEL_DEBUG5": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG5; case 2: case "LOG_LEVEL_DEBUG4": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG4; case 3: case "LOG_LEVEL_DEBUG3": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG3; case 4: case "LOG_LEVEL_DEBUG2": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG2; case 5: case "LOG_LEVEL_DEBUG1": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG1; case 12: case "LOG_LEVEL_INFO": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_INFO; case 6: case "LOG_LEVEL_LOG": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_LOG; case 7: case "LOG_LEVEL_NOTICE": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_NOTICE; case 8: case "LOG_LEVEL_WARNING": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_WARNING; case 9: case "LOG_LEVEL_ERROR": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_ERROR; case 10: case "LOG_LEVEL_FATAL": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_FATAL; case 11: case "LOG_LEVEL_PANIC": return PostgresqlHostConfig16_LogLevel.LOG_LEVEL_PANIC; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_LogLevel.UNRECOGNIZED; } } exports.postgresqlHostConfig16_LogLevelFromJSON = postgresqlHostConfig16_LogLevelFromJSON; function postgresqlHostConfig16_LogLevelToJSON(object) { switch (object) { case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_UNSPECIFIED: return "LOG_LEVEL_UNSPECIFIED"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG5: return "LOG_LEVEL_DEBUG5"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG4: return "LOG_LEVEL_DEBUG4"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG3: return "LOG_LEVEL_DEBUG3"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG2: return "LOG_LEVEL_DEBUG2"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_DEBUG1: return "LOG_LEVEL_DEBUG1"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_INFO: return "LOG_LEVEL_INFO"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_LOG: return "LOG_LEVEL_LOG"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_NOTICE: return "LOG_LEVEL_NOTICE"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_WARNING: return "LOG_LEVEL_WARNING"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_ERROR: return "LOG_LEVEL_ERROR"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_FATAL: return "LOG_LEVEL_FATAL"; case PostgresqlHostConfig16_LogLevel.LOG_LEVEL_PANIC: return "LOG_LEVEL_PANIC"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_LogLevelToJSON = postgresqlHostConfig16_LogLevelToJSON; var PostgresqlHostConfig16_LogStatement; (function (PostgresqlHostConfig16_LogStatement) { PostgresqlHostConfig16_LogStatement[PostgresqlHostConfig16_LogStatement["LOG_STATEMENT_UNSPECIFIED"] = 0] = "LOG_STATEMENT_UNSPECIFIED"; PostgresqlHostConfig16_LogStatement[PostgresqlHostConfig16_LogStatement["LOG_STATEMENT_NONE"] = 1] = "LOG_STATEMENT_NONE"; PostgresqlHostConfig16_LogStatement[PostgresqlHostConfig16_LogStatement["LOG_STATEMENT_DDL"] = 2] = "LOG_STATEMENT_DDL"; PostgresqlHostConfig16_LogStatement[PostgresqlHostConfig16_LogStatement["LOG_STATEMENT_MOD"] = 3] = "LOG_STATEMENT_MOD"; PostgresqlHostConfig16_LogStatement[PostgresqlHostConfig16_LogStatement["LOG_STATEMENT_ALL"] = 4] = "LOG_STATEMENT_ALL"; PostgresqlHostConfig16_LogStatement[PostgresqlHostConfig16_LogStatement["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_LogStatement = exports.PostgresqlHostConfig16_LogStatement || (exports.PostgresqlHostConfig16_LogStatement = {})); function postgresqlHostConfig16_LogStatementFromJSON(object) { switch (object) { case 0: case "LOG_STATEMENT_UNSPECIFIED": return PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_UNSPECIFIED; case 1: case "LOG_STATEMENT_NONE": return PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_NONE; case 2: case "LOG_STATEMENT_DDL": return PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_DDL; case 3: case "LOG_STATEMENT_MOD": return PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_MOD; case 4: case "LOG_STATEMENT_ALL": return PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_ALL; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_LogStatement.UNRECOGNIZED; } } exports.postgresqlHostConfig16_LogStatementFromJSON = postgresqlHostConfig16_LogStatementFromJSON; function postgresqlHostConfig16_LogStatementToJSON(object) { switch (object) { case PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_UNSPECIFIED: return "LOG_STATEMENT_UNSPECIFIED"; case PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_NONE: return "LOG_STATEMENT_NONE"; case PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_DDL: return "LOG_STATEMENT_DDL"; case PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_MOD: return "LOG_STATEMENT_MOD"; case PostgresqlHostConfig16_LogStatement.LOG_STATEMENT_ALL: return "LOG_STATEMENT_ALL"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_LogStatementToJSON = postgresqlHostConfig16_LogStatementToJSON; var PostgresqlHostConfig16_TransactionIsolation; (function (PostgresqlHostConfig16_TransactionIsolation) { PostgresqlHostConfig16_TransactionIsolation[PostgresqlHostConfig16_TransactionIsolation["TRANSACTION_ISOLATION_UNSPECIFIED"] = 0] = "TRANSACTION_ISOLATION_UNSPECIFIED"; PostgresqlHostConfig16_TransactionIsolation[PostgresqlHostConfig16_TransactionIsolation["TRANSACTION_ISOLATION_READ_UNCOMMITTED"] = 1] = "TRANSACTION_ISOLATION_READ_UNCOMMITTED"; PostgresqlHostConfig16_TransactionIsolation[PostgresqlHostConfig16_TransactionIsolation["TRANSACTION_ISOLATION_READ_COMMITTED"] = 2] = "TRANSACTION_ISOLATION_READ_COMMITTED"; PostgresqlHostConfig16_TransactionIsolation[PostgresqlHostConfig16_TransactionIsolation["TRANSACTION_ISOLATION_REPEATABLE_READ"] = 3] = "TRANSACTION_ISOLATION_REPEATABLE_READ"; PostgresqlHostConfig16_TransactionIsolation[PostgresqlHostConfig16_TransactionIsolation["TRANSACTION_ISOLATION_SERIALIZABLE"] = 4] = "TRANSACTION_ISOLATION_SERIALIZABLE"; PostgresqlHostConfig16_TransactionIsolation[PostgresqlHostConfig16_TransactionIsolation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_TransactionIsolation = exports.PostgresqlHostConfig16_TransactionIsolation || (exports.PostgresqlHostConfig16_TransactionIsolation = {})); function postgresqlHostConfig16_TransactionIsolationFromJSON(object) { switch (object) { case 0: case "TRANSACTION_ISOLATION_UNSPECIFIED": return PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED; case 1: case "TRANSACTION_ISOLATION_READ_UNCOMMITTED": return PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_READ_UNCOMMITTED; case 2: case "TRANSACTION_ISOLATION_READ_COMMITTED": return PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_READ_COMMITTED; case 3: case "TRANSACTION_ISOLATION_REPEATABLE_READ": return PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_REPEATABLE_READ; case 4: case "TRANSACTION_ISOLATION_SERIALIZABLE": return PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_SERIALIZABLE; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_TransactionIsolation.UNRECOGNIZED; } } exports.postgresqlHostConfig16_TransactionIsolationFromJSON = postgresqlHostConfig16_TransactionIsolationFromJSON; function postgresqlHostConfig16_TransactionIsolationToJSON(object) { switch (object) { case PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED: return "TRANSACTION_ISOLATION_UNSPECIFIED"; case PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_READ_UNCOMMITTED: return "TRANSACTION_ISOLATION_READ_UNCOMMITTED"; case PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_READ_COMMITTED: return "TRANSACTION_ISOLATION_READ_COMMITTED"; case PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_REPEATABLE_READ: return "TRANSACTION_ISOLATION_REPEATABLE_READ"; case PostgresqlHostConfig16_TransactionIsolation.TRANSACTION_ISOLATION_SERIALIZABLE: return "TRANSACTION_ISOLATION_SERIALIZABLE"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_TransactionIsolationToJSON = postgresqlHostConfig16_TransactionIsolationToJSON; var PostgresqlHostConfig16_XmlBinary; (function (PostgresqlHostConfig16_XmlBinary) { PostgresqlHostConfig16_XmlBinary[PostgresqlHostConfig16_XmlBinary["XML_BINARY_UNSPECIFIED"] = 0] = "XML_BINARY_UNSPECIFIED"; PostgresqlHostConfig16_XmlBinary[PostgresqlHostConfig16_XmlBinary["XML_BINARY_BASE64"] = 1] = "XML_BINARY_BASE64"; PostgresqlHostConfig16_XmlBinary[PostgresqlHostConfig16_XmlBinary["XML_BINARY_HEX"] = 2] = "XML_BINARY_HEX"; PostgresqlHostConfig16_XmlBinary[PostgresqlHostConfig16_XmlBinary["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_XmlBinary = exports.PostgresqlHostConfig16_XmlBinary || (exports.PostgresqlHostConfig16_XmlBinary = {})); function postgresqlHostConfig16_XmlBinaryFromJSON(object) { switch (object) { case 0: case "XML_BINARY_UNSPECIFIED": return PostgresqlHostConfig16_XmlBinary.XML_BINARY_UNSPECIFIED; case 1: case "XML_BINARY_BASE64": return PostgresqlHostConfig16_XmlBinary.XML_BINARY_BASE64; case 2: case "XML_BINARY_HEX": return PostgresqlHostConfig16_XmlBinary.XML_BINARY_HEX; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_XmlBinary.UNRECOGNIZED; } } exports.postgresqlHostConfig16_XmlBinaryFromJSON = postgresqlHostConfig16_XmlBinaryFromJSON; function postgresqlHostConfig16_XmlBinaryToJSON(object) { switch (object) { case PostgresqlHostConfig16_XmlBinary.XML_BINARY_UNSPECIFIED: return "XML_BINARY_UNSPECIFIED"; case PostgresqlHostConfig16_XmlBinary.XML_BINARY_BASE64: return "XML_BINARY_BASE64"; case PostgresqlHostConfig16_XmlBinary.XML_BINARY_HEX: return "XML_BINARY_HEX"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_XmlBinaryToJSON = postgresqlHostConfig16_XmlBinaryToJSON; var PostgresqlHostConfig16_XmlOption; (function (PostgresqlHostConfig16_XmlOption) { PostgresqlHostConfig16_XmlOption[PostgresqlHostConfig16_XmlOption["XML_OPTION_UNSPECIFIED"] = 0] = "XML_OPTION_UNSPECIFIED"; PostgresqlHostConfig16_XmlOption[PostgresqlHostConfig16_XmlOption["XML_OPTION_DOCUMENT"] = 1] = "XML_OPTION_DOCUMENT"; PostgresqlHostConfig16_XmlOption[PostgresqlHostConfig16_XmlOption["XML_OPTION_CONTENT"] = 2] = "XML_OPTION_CONTENT"; PostgresqlHostConfig16_XmlOption[PostgresqlHostConfig16_XmlOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(PostgresqlHostConfig16_XmlOption = exports.PostgresqlHostConfig16_XmlOption || (exports.PostgresqlHostConfig16_XmlOption = {})); function postgresqlHostConfig16_XmlOptionFromJSON(object) { switch (object) { case 0: case "XML_OPTION_UNSPECIFIED": return PostgresqlHostConfig16_XmlOption.XML_OPTION_UNSPECIFIED; case 1: case "XML_OPTION_DOCUMENT": return PostgresqlHostConfig16_XmlOption.XML_OPTION_DOCUMENT; case 2: case "XML_OPTION_CONTENT": return PostgresqlHostConfig16_XmlOption.XML_OPTION_CONTENT; case -1: case "UNRECOGNIZED": default: return PostgresqlHostConfig16_XmlOption.UNRECOGNIZED; } } exports.postgresqlHostConfig16_XmlOptionFromJSON = postgresqlHostConfig16_XmlOptionFromJSON; function postgresqlHostConfig16_XmlOptionToJSON(object) { switch (object) { case PostgresqlHostConfig16_XmlOption.XML_OPTION_UNSPECIFIED: return "XML_OPTION_UNSPECIFIED"; case PostgresqlHostConfig16_XmlOption.XML_OPTION_DOCUMENT: return "XML_OPTION_DOCUMENT"; case PostgresqlHostConfig16_XmlOption.XML_OPTION_CONTENT: return "XML_OPTION_CONTENT"; default: return "UNKNOWN"; } } exports.postgresqlHostConfig16_XmlOptionToJSON = postgresqlHostConfig16_XmlOptionToJSON; const basePostgresqlHostConfig16 = { $type: "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig16", constraintExclusion: 0, debugParallelQuery: 0, clientMinMessages: 0, logMinMessages: 0, logMinErrorStatement: 0, logErrorVerbosity: 0, logStatement: 0, searchPath: "", defaultTransactionIsolation: 0, byteaOutput: 0, xmlbinary: 0, xmloption: 0, backslashQuote: 0, timezone: "", }; exports.PostgresqlHostConfig16 = { $type: "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig16", encode(message, writer = minimal_1.default.Writer.create()) { if (message.recoveryMinApplyDelay !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.recoveryMinApplyDelay, }, writer.uint32(10).fork()).ldelim(); } if (message.sharedBuffers !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.sharedBuffers }, writer.uint32(18).fork()).ldelim(); } if (message.tempBuffers !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.tempBuffers }, writer.uint32(26).fork()).ldelim(); } if (message.workMem !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.workMem }, writer.uint32(34).fork()).ldelim(); } if (message.tempFileLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.tempFileLimit }, writer.uint32(42).fork()).ldelim(); } if (message.backendFlushAfter !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.backendFlushAfter, }, writer.uint32(50).fork()).ldelim(); } if (message.oldSnapshotThreshold !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.oldSnapshotThreshold, }, writer.uint32(58).fork()).ldelim(); } if (message.maxStandbyStreamingDelay !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxStandbyStreamingDelay, }, writer.uint32(66).fork()).ldelim(); } if (message.constraintExclusion !== 0) { writer.uint32(72).int32(message.constraintExclusion); } if (message.cursorTupleFraction !== undefined) { wrappers_1.DoubleValue.encode({ $type: "google.protobuf.DoubleValue", value: message.cursorTupleFraction, }, writer.uint32(82).fork()).ldelim(); } if (message.fromCollapseLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.fromCollapseLimit, }, writer.uint32(90).fork()).ldelim(); } if (message.joinCollapseLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.joinCollapseLimit, }, writer.uint32(98).fork()).ldelim(); } if (message.debugParallelQuery !== 0) { writer.uint32(104).int32(message.debugParallelQuery); } if (message.clientMinMessages !== 0) { writer.uint32(112).int32(message.clientMinMessages); } if (message.logMinMessages !== 0) { writer.uint32(120).int32(message.logMinMessages); } if (message.logMinErrorStatement !== 0) { writer.uint32(128).int32(message.logMinErrorStatement); } if (message.logMinDurationStatement !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.logMinDurationStatement, }, writer.uint32(138).fork()).ldelim(); } if (message.logCheckpoints !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logCheckpoints }, writer.uint32(146).fork()).ldelim(); } if (message.logConnections !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logConnections }, writer.uint32(154).fork()).ldelim(); } if (message.logDisconnections !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logDisconnections, }, writer.uint32(162).fork()).ldelim(); } if (message.logDuration !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logDuration }, writer.uint32(170).fork()).ldelim(); } if (message.logErrorVerbosity !== 0) { writer.uint32(176).int32(message.logErrorVerbosity); } if (message.logLockWaits !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logLockWaits }, writer.uint32(186).fork()).ldelim(); } if (message.logStatement !== 0) { writer.uint32(192).int32(message.logStatement); } if (message.logTempFiles !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.logTempFiles }, writer.uint32(202).fork()).ldelim(); } if (message.searchPath !== "") { writer.uint32(210).string(message.searchPath); } if (message.rowSecurity !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.rowSecurity }, writer.uint32(218).fork()).ldelim(); } if (message.defaultTransactionIsolation !== 0) { writer.uint32(224).int32(message.defaultTransactionIsolation); } if (message.statementTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.statementTimeout, }, writer.uint32(234).fork()).ldelim(); } if (message.lockTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.lockTimeout }, writer.uint32(242).fork()).ldelim(); } if (message.idleInTransactionSessionTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.idleInTransactionSessionTimeout, }, writer.uint32(250).fork()).ldelim(); } if (message.byteaOutput !== 0) { writer.uint32(256).int32(message.byteaOutput); } if (message.xmlbinary !== 0) { writer.uint32(264).int32(message.xmlbinary); } if (message.xmloption !== 0) { writer.uint32(272).int32(message.xmloption); } if (message.ginPendingListLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.ginPendingListLimit, }, writer.uint32(282).fork()).ldelim(); } if (message.deadlockTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.deadlockTimeout, }, writer.uint32(290).fork()).ldelim(); } if (message.maxLocksPerTransaction !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxLocksPerTransaction, }, writer.uint32(298).fork()).ldelim(); } if (message.maxPredLocksPerTransaction !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxPredLocksPerTransaction, }, writer.uint32(306).fork()).ldelim(); } if (message.arrayNulls !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.arrayNulls }, writer.uint32(314).fork()).ldelim(); } if (message.backslashQuote !== 0) { writer.uint32(320).int32(message.backslashQuote); } if (message.defaultWithOids !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.defaultWithOids }, writer.uint32(330).fork()).ldelim(); } if (message.escapeStringWarning !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.escapeStringWarning, }, writer.uint32(338).fork()).ldelim(); } if (message.loCompatPrivileges !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.loCompatPrivileges, }, writer.uint32(346).fork()).ldelim(); } if (message.quoteAllIdentifiers !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.quoteAllIdentifiers, }, writer.uint32(362).fork()).ldelim(); } if (message.standardConformingStrings !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.standardConformingStrings, }, writer.uint32(370).fork()).ldelim(); } if (message.synchronizeSeqscans !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.synchronizeSeqscans, }, writer.uint32(378).fork()).ldelim(); } if (message.transformNullEquals !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.transformNullEquals, }, writer.uint32(386).fork()).ldelim(); } if (message.exitOnError !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.exitOnError }, writer.uint32(394).fork()).ldelim(); } if (message.seqPageCost !== undefined) { wrappers_1.DoubleValue.encode({ $type: "google.protobuf.DoubleValue", value: message.seqPageCost }, writer.uint32(402).fork()).ldelim(); } if (message.randomPageCost !== undefined) { wrappers_1.DoubleValue.encode({ $type: "google.protobuf.DoubleValue", value: message.randomPageCost, }, writer.uint32(410).fork()).ldelim(); } if (message.enableBitmapscan !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableBitmapscan, }, writer.uint32(434).fork()).ldelim(); } if (message.enableHashagg !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableHashagg }, writer.uint32(442).fork()).ldelim(); } if (message.enableHashjoin !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableHashjoin }, writer.uint32(450).fork()).ldelim(); } if (message.enableIndexscan !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableIndexscan }, writer.uint32(458).fork()).ldelim(); } if (message.enableIndexonlyscan !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableIndexonlyscan, }, writer.uint32(466).fork()).ldelim(); } if (message.enableMaterial !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableMaterial }, writer.uint32(474).fork()).ldelim(); } if (message.enableMergejoin !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableMergejoin }, writer.uint32(482).fork()).ldelim(); } if (message.enableNestloop !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableNestloop }, writer.uint32(490).fork()).ldelim(); } if (message.enableSeqscan !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableSeqscan }, writer.uint32(498).fork()).ldelim(); } if (message.enableSort !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableSort }, writer.uint32(506).fork()).ldelim(); } if (message.enableTidscan !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.enableTidscan }, writer.uint32(514).fork()).ldelim(); } if (message.maxParallelWorkers !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxParallelWorkers, }, writer.uint32(522).fork()).ldelim(); } if (message.maxParallelWorkersPerGather !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxParallelWorkersPerGather, }, writer.uint32(530).fork()).ldelim(); } if (message.timezone !== "") { writer.uint32(538).string(message.timezone); } if (message.effectiveIoConcurrency !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.effectiveIoConcurrency, }, writer.uint32(546).fork()).ldelim(); } if (message.effectiveCacheSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.effectiveCacheSize, }, writer.uint32(554).fork()).ldelim(); } return writer; }, decode(input, length) { const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = Object.assign({}, basePostgresqlHostConfig16); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.recoveryMinApplyDelay = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 2: message.sharedBuffers = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 3: message.tempBuffers = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 4: message.workMem = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 5: message.tempFileLimit = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 6: message.backendFlushAfter = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 7: message.oldSnapshotThreshold = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 8: message.maxStandbyStreamingDelay = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break;