@yandex-cloud/nodejs-sdk
Version:
Yandex.Cloud NodeJS SDK
904 lines (903 loc) • 85.8 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostgresqlHostConfig15 = exports.postgresqlHostConfig15_XmlOptionToJSON = exports.postgresqlHostConfig15_XmlOptionFromJSON = exports.PostgresqlHostConfig15_XmlOption = exports.postgresqlHostConfig15_XmlBinaryToJSON = exports.postgresqlHostConfig15_XmlBinaryFromJSON = exports.PostgresqlHostConfig15_XmlBinary = exports.postgresqlHostConfig15_TransactionIsolationToJSON = exports.postgresqlHostConfig15_TransactionIsolationFromJSON = exports.PostgresqlHostConfig15_TransactionIsolation = exports.postgresqlHostConfig15_LogStatementToJSON = exports.postgresqlHostConfig15_LogStatementFromJSON = exports.PostgresqlHostConfig15_LogStatement = exports.postgresqlHostConfig15_LogLevelToJSON = exports.postgresqlHostConfig15_LogLevelFromJSON = exports.PostgresqlHostConfig15_LogLevel = exports.postgresqlHostConfig15_LogErrorVerbosityToJSON = exports.postgresqlHostConfig15_LogErrorVerbosityFromJSON = exports.PostgresqlHostConfig15_LogErrorVerbosity = exports.postgresqlHostConfig15_ForceParallelModeToJSON = exports.postgresqlHostConfig15_ForceParallelModeFromJSON = exports.PostgresqlHostConfig15_ForceParallelMode = exports.postgresqlHostConfig15_ConstraintExclusionToJSON = exports.postgresqlHostConfig15_ConstraintExclusionFromJSON = exports.PostgresqlHostConfig15_ConstraintExclusion = exports.postgresqlHostConfig15_ByteaOutputToJSON = exports.postgresqlHostConfig15_ByteaOutputFromJSON = exports.PostgresqlHostConfig15_ByteaOutput = exports.postgresqlHostConfig15_BackslashQuoteToJSON = exports.postgresqlHostConfig15_BackslashQuoteFromJSON = exports.PostgresqlHostConfig15_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 PostgresqlHostConfig15_BackslashQuote;
(function (PostgresqlHostConfig15_BackslashQuote) {
PostgresqlHostConfig15_BackslashQuote[PostgresqlHostConfig15_BackslashQuote["BACKSLASH_QUOTE_UNSPECIFIED"] = 0] = "BACKSLASH_QUOTE_UNSPECIFIED";
PostgresqlHostConfig15_BackslashQuote[PostgresqlHostConfig15_BackslashQuote["BACKSLASH_QUOTE"] = 1] = "BACKSLASH_QUOTE";
PostgresqlHostConfig15_BackslashQuote[PostgresqlHostConfig15_BackslashQuote["BACKSLASH_QUOTE_ON"] = 2] = "BACKSLASH_QUOTE_ON";
PostgresqlHostConfig15_BackslashQuote[PostgresqlHostConfig15_BackslashQuote["BACKSLASH_QUOTE_OFF"] = 3] = "BACKSLASH_QUOTE_OFF";
PostgresqlHostConfig15_BackslashQuote[PostgresqlHostConfig15_BackslashQuote["BACKSLASH_QUOTE_SAFE_ENCODING"] = 4] = "BACKSLASH_QUOTE_SAFE_ENCODING";
PostgresqlHostConfig15_BackslashQuote[PostgresqlHostConfig15_BackslashQuote["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_BackslashQuote = exports.PostgresqlHostConfig15_BackslashQuote || (exports.PostgresqlHostConfig15_BackslashQuote = {}));
function postgresqlHostConfig15_BackslashQuoteFromJSON(object) {
switch (object) {
case 0:
case "BACKSLASH_QUOTE_UNSPECIFIED":
return PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_UNSPECIFIED;
case 1:
case "BACKSLASH_QUOTE":
return PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE;
case 2:
case "BACKSLASH_QUOTE_ON":
return PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_ON;
case 3:
case "BACKSLASH_QUOTE_OFF":
return PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_OFF;
case 4:
case "BACKSLASH_QUOTE_SAFE_ENCODING":
return PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_SAFE_ENCODING;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_BackslashQuote.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_BackslashQuoteFromJSON = postgresqlHostConfig15_BackslashQuoteFromJSON;
function postgresqlHostConfig15_BackslashQuoteToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_UNSPECIFIED:
return "BACKSLASH_QUOTE_UNSPECIFIED";
case PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE:
return "BACKSLASH_QUOTE";
case PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_ON:
return "BACKSLASH_QUOTE_ON";
case PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_OFF:
return "BACKSLASH_QUOTE_OFF";
case PostgresqlHostConfig15_BackslashQuote.BACKSLASH_QUOTE_SAFE_ENCODING:
return "BACKSLASH_QUOTE_SAFE_ENCODING";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_BackslashQuoteToJSON = postgresqlHostConfig15_BackslashQuoteToJSON;
var PostgresqlHostConfig15_ByteaOutput;
(function (PostgresqlHostConfig15_ByteaOutput) {
PostgresqlHostConfig15_ByteaOutput[PostgresqlHostConfig15_ByteaOutput["BYTEA_OUTPUT_UNSPECIFIED"] = 0] = "BYTEA_OUTPUT_UNSPECIFIED";
PostgresqlHostConfig15_ByteaOutput[PostgresqlHostConfig15_ByteaOutput["BYTEA_OUTPUT_HEX"] = 1] = "BYTEA_OUTPUT_HEX";
PostgresqlHostConfig15_ByteaOutput[PostgresqlHostConfig15_ByteaOutput["BYTEA_OUTPUT_ESCAPED"] = 2] = "BYTEA_OUTPUT_ESCAPED";
PostgresqlHostConfig15_ByteaOutput[PostgresqlHostConfig15_ByteaOutput["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_ByteaOutput = exports.PostgresqlHostConfig15_ByteaOutput || (exports.PostgresqlHostConfig15_ByteaOutput = {}));
function postgresqlHostConfig15_ByteaOutputFromJSON(object) {
switch (object) {
case 0:
case "BYTEA_OUTPUT_UNSPECIFIED":
return PostgresqlHostConfig15_ByteaOutput.BYTEA_OUTPUT_UNSPECIFIED;
case 1:
case "BYTEA_OUTPUT_HEX":
return PostgresqlHostConfig15_ByteaOutput.BYTEA_OUTPUT_HEX;
case 2:
case "BYTEA_OUTPUT_ESCAPED":
return PostgresqlHostConfig15_ByteaOutput.BYTEA_OUTPUT_ESCAPED;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_ByteaOutput.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_ByteaOutputFromJSON = postgresqlHostConfig15_ByteaOutputFromJSON;
function postgresqlHostConfig15_ByteaOutputToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_ByteaOutput.BYTEA_OUTPUT_UNSPECIFIED:
return "BYTEA_OUTPUT_UNSPECIFIED";
case PostgresqlHostConfig15_ByteaOutput.BYTEA_OUTPUT_HEX:
return "BYTEA_OUTPUT_HEX";
case PostgresqlHostConfig15_ByteaOutput.BYTEA_OUTPUT_ESCAPED:
return "BYTEA_OUTPUT_ESCAPED";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_ByteaOutputToJSON = postgresqlHostConfig15_ByteaOutputToJSON;
var PostgresqlHostConfig15_ConstraintExclusion;
(function (PostgresqlHostConfig15_ConstraintExclusion) {
PostgresqlHostConfig15_ConstraintExclusion[PostgresqlHostConfig15_ConstraintExclusion["CONSTRAINT_EXCLUSION_UNSPECIFIED"] = 0] = "CONSTRAINT_EXCLUSION_UNSPECIFIED";
PostgresqlHostConfig15_ConstraintExclusion[PostgresqlHostConfig15_ConstraintExclusion["CONSTRAINT_EXCLUSION_ON"] = 1] = "CONSTRAINT_EXCLUSION_ON";
PostgresqlHostConfig15_ConstraintExclusion[PostgresqlHostConfig15_ConstraintExclusion["CONSTRAINT_EXCLUSION_OFF"] = 2] = "CONSTRAINT_EXCLUSION_OFF";
PostgresqlHostConfig15_ConstraintExclusion[PostgresqlHostConfig15_ConstraintExclusion["CONSTRAINT_EXCLUSION_PARTITION"] = 3] = "CONSTRAINT_EXCLUSION_PARTITION";
PostgresqlHostConfig15_ConstraintExclusion[PostgresqlHostConfig15_ConstraintExclusion["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_ConstraintExclusion = exports.PostgresqlHostConfig15_ConstraintExclusion || (exports.PostgresqlHostConfig15_ConstraintExclusion = {}));
function postgresqlHostConfig15_ConstraintExclusionFromJSON(object) {
switch (object) {
case 0:
case "CONSTRAINT_EXCLUSION_UNSPECIFIED":
return PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_UNSPECIFIED;
case 1:
case "CONSTRAINT_EXCLUSION_ON":
return PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_ON;
case 2:
case "CONSTRAINT_EXCLUSION_OFF":
return PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_OFF;
case 3:
case "CONSTRAINT_EXCLUSION_PARTITION":
return PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_PARTITION;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_ConstraintExclusion.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_ConstraintExclusionFromJSON = postgresqlHostConfig15_ConstraintExclusionFromJSON;
function postgresqlHostConfig15_ConstraintExclusionToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_UNSPECIFIED:
return "CONSTRAINT_EXCLUSION_UNSPECIFIED";
case PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_ON:
return "CONSTRAINT_EXCLUSION_ON";
case PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_OFF:
return "CONSTRAINT_EXCLUSION_OFF";
case PostgresqlHostConfig15_ConstraintExclusion.CONSTRAINT_EXCLUSION_PARTITION:
return "CONSTRAINT_EXCLUSION_PARTITION";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_ConstraintExclusionToJSON = postgresqlHostConfig15_ConstraintExclusionToJSON;
var PostgresqlHostConfig15_ForceParallelMode;
(function (PostgresqlHostConfig15_ForceParallelMode) {
PostgresqlHostConfig15_ForceParallelMode[PostgresqlHostConfig15_ForceParallelMode["FORCE_PARALLEL_MODE_UNSPECIFIED"] = 0] = "FORCE_PARALLEL_MODE_UNSPECIFIED";
PostgresqlHostConfig15_ForceParallelMode[PostgresqlHostConfig15_ForceParallelMode["FORCE_PARALLEL_MODE_ON"] = 1] = "FORCE_PARALLEL_MODE_ON";
PostgresqlHostConfig15_ForceParallelMode[PostgresqlHostConfig15_ForceParallelMode["FORCE_PARALLEL_MODE_OFF"] = 2] = "FORCE_PARALLEL_MODE_OFF";
PostgresqlHostConfig15_ForceParallelMode[PostgresqlHostConfig15_ForceParallelMode["FORCE_PARALLEL_MODE_REGRESS"] = 3] = "FORCE_PARALLEL_MODE_REGRESS";
PostgresqlHostConfig15_ForceParallelMode[PostgresqlHostConfig15_ForceParallelMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_ForceParallelMode = exports.PostgresqlHostConfig15_ForceParallelMode || (exports.PostgresqlHostConfig15_ForceParallelMode = {}));
function postgresqlHostConfig15_ForceParallelModeFromJSON(object) {
switch (object) {
case 0:
case "FORCE_PARALLEL_MODE_UNSPECIFIED":
return PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_UNSPECIFIED;
case 1:
case "FORCE_PARALLEL_MODE_ON":
return PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_ON;
case 2:
case "FORCE_PARALLEL_MODE_OFF":
return PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_OFF;
case 3:
case "FORCE_PARALLEL_MODE_REGRESS":
return PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_REGRESS;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_ForceParallelMode.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_ForceParallelModeFromJSON = postgresqlHostConfig15_ForceParallelModeFromJSON;
function postgresqlHostConfig15_ForceParallelModeToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_UNSPECIFIED:
return "FORCE_PARALLEL_MODE_UNSPECIFIED";
case PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_ON:
return "FORCE_PARALLEL_MODE_ON";
case PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_OFF:
return "FORCE_PARALLEL_MODE_OFF";
case PostgresqlHostConfig15_ForceParallelMode.FORCE_PARALLEL_MODE_REGRESS:
return "FORCE_PARALLEL_MODE_REGRESS";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_ForceParallelModeToJSON = postgresqlHostConfig15_ForceParallelModeToJSON;
var PostgresqlHostConfig15_LogErrorVerbosity;
(function (PostgresqlHostConfig15_LogErrorVerbosity) {
PostgresqlHostConfig15_LogErrorVerbosity[PostgresqlHostConfig15_LogErrorVerbosity["LOG_ERROR_VERBOSITY_UNSPECIFIED"] = 0] = "LOG_ERROR_VERBOSITY_UNSPECIFIED";
PostgresqlHostConfig15_LogErrorVerbosity[PostgresqlHostConfig15_LogErrorVerbosity["LOG_ERROR_VERBOSITY_TERSE"] = 1] = "LOG_ERROR_VERBOSITY_TERSE";
PostgresqlHostConfig15_LogErrorVerbosity[PostgresqlHostConfig15_LogErrorVerbosity["LOG_ERROR_VERBOSITY_DEFAULT"] = 2] = "LOG_ERROR_VERBOSITY_DEFAULT";
PostgresqlHostConfig15_LogErrorVerbosity[PostgresqlHostConfig15_LogErrorVerbosity["LOG_ERROR_VERBOSITY_VERBOSE"] = 3] = "LOG_ERROR_VERBOSITY_VERBOSE";
PostgresqlHostConfig15_LogErrorVerbosity[PostgresqlHostConfig15_LogErrorVerbosity["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_LogErrorVerbosity = exports.PostgresqlHostConfig15_LogErrorVerbosity || (exports.PostgresqlHostConfig15_LogErrorVerbosity = {}));
function postgresqlHostConfig15_LogErrorVerbosityFromJSON(object) {
switch (object) {
case 0:
case "LOG_ERROR_VERBOSITY_UNSPECIFIED":
return PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_UNSPECIFIED;
case 1:
case "LOG_ERROR_VERBOSITY_TERSE":
return PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_TERSE;
case 2:
case "LOG_ERROR_VERBOSITY_DEFAULT":
return PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_DEFAULT;
case 3:
case "LOG_ERROR_VERBOSITY_VERBOSE":
return PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_VERBOSE;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_LogErrorVerbosity.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_LogErrorVerbosityFromJSON = postgresqlHostConfig15_LogErrorVerbosityFromJSON;
function postgresqlHostConfig15_LogErrorVerbosityToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_UNSPECIFIED:
return "LOG_ERROR_VERBOSITY_UNSPECIFIED";
case PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_TERSE:
return "LOG_ERROR_VERBOSITY_TERSE";
case PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_DEFAULT:
return "LOG_ERROR_VERBOSITY_DEFAULT";
case PostgresqlHostConfig15_LogErrorVerbosity.LOG_ERROR_VERBOSITY_VERBOSE:
return "LOG_ERROR_VERBOSITY_VERBOSE";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_LogErrorVerbosityToJSON = postgresqlHostConfig15_LogErrorVerbosityToJSON;
var PostgresqlHostConfig15_LogLevel;
(function (PostgresqlHostConfig15_LogLevel) {
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_DEBUG5"] = 1] = "LOG_LEVEL_DEBUG5";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_DEBUG4"] = 2] = "LOG_LEVEL_DEBUG4";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_DEBUG3"] = 3] = "LOG_LEVEL_DEBUG3";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_DEBUG2"] = 4] = "LOG_LEVEL_DEBUG2";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_DEBUG1"] = 5] = "LOG_LEVEL_DEBUG1";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_LOG"] = 6] = "LOG_LEVEL_LOG";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_NOTICE"] = 7] = "LOG_LEVEL_NOTICE";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_WARNING"] = 8] = "LOG_LEVEL_WARNING";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_ERROR"] = 9] = "LOG_LEVEL_ERROR";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_FATAL"] = 10] = "LOG_LEVEL_FATAL";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["LOG_LEVEL_PANIC"] = 11] = "LOG_LEVEL_PANIC";
PostgresqlHostConfig15_LogLevel[PostgresqlHostConfig15_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_LogLevel = exports.PostgresqlHostConfig15_LogLevel || (exports.PostgresqlHostConfig15_LogLevel = {}));
function postgresqlHostConfig15_LogLevelFromJSON(object) {
switch (object) {
case 0:
case "LOG_LEVEL_UNSPECIFIED":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_UNSPECIFIED;
case 1:
case "LOG_LEVEL_DEBUG5":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG5;
case 2:
case "LOG_LEVEL_DEBUG4":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG4;
case 3:
case "LOG_LEVEL_DEBUG3":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG3;
case 4:
case "LOG_LEVEL_DEBUG2":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG2;
case 5:
case "LOG_LEVEL_DEBUG1":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG1;
case 6:
case "LOG_LEVEL_LOG":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_LOG;
case 7:
case "LOG_LEVEL_NOTICE":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_NOTICE;
case 8:
case "LOG_LEVEL_WARNING":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_WARNING;
case 9:
case "LOG_LEVEL_ERROR":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_ERROR;
case 10:
case "LOG_LEVEL_FATAL":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_FATAL;
case 11:
case "LOG_LEVEL_PANIC":
return PostgresqlHostConfig15_LogLevel.LOG_LEVEL_PANIC;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_LogLevel.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_LogLevelFromJSON = postgresqlHostConfig15_LogLevelFromJSON;
function postgresqlHostConfig15_LogLevelToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_UNSPECIFIED:
return "LOG_LEVEL_UNSPECIFIED";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG5:
return "LOG_LEVEL_DEBUG5";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG4:
return "LOG_LEVEL_DEBUG4";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG3:
return "LOG_LEVEL_DEBUG3";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG2:
return "LOG_LEVEL_DEBUG2";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_DEBUG1:
return "LOG_LEVEL_DEBUG1";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_LOG:
return "LOG_LEVEL_LOG";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_NOTICE:
return "LOG_LEVEL_NOTICE";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_WARNING:
return "LOG_LEVEL_WARNING";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_ERROR:
return "LOG_LEVEL_ERROR";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_FATAL:
return "LOG_LEVEL_FATAL";
case PostgresqlHostConfig15_LogLevel.LOG_LEVEL_PANIC:
return "LOG_LEVEL_PANIC";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_LogLevelToJSON = postgresqlHostConfig15_LogLevelToJSON;
var PostgresqlHostConfig15_LogStatement;
(function (PostgresqlHostConfig15_LogStatement) {
PostgresqlHostConfig15_LogStatement[PostgresqlHostConfig15_LogStatement["LOG_STATEMENT_UNSPECIFIED"] = 0] = "LOG_STATEMENT_UNSPECIFIED";
PostgresqlHostConfig15_LogStatement[PostgresqlHostConfig15_LogStatement["LOG_STATEMENT_NONE"] = 1] = "LOG_STATEMENT_NONE";
PostgresqlHostConfig15_LogStatement[PostgresqlHostConfig15_LogStatement["LOG_STATEMENT_DDL"] = 2] = "LOG_STATEMENT_DDL";
PostgresqlHostConfig15_LogStatement[PostgresqlHostConfig15_LogStatement["LOG_STATEMENT_MOD"] = 3] = "LOG_STATEMENT_MOD";
PostgresqlHostConfig15_LogStatement[PostgresqlHostConfig15_LogStatement["LOG_STATEMENT_ALL"] = 4] = "LOG_STATEMENT_ALL";
PostgresqlHostConfig15_LogStatement[PostgresqlHostConfig15_LogStatement["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_LogStatement = exports.PostgresqlHostConfig15_LogStatement || (exports.PostgresqlHostConfig15_LogStatement = {}));
function postgresqlHostConfig15_LogStatementFromJSON(object) {
switch (object) {
case 0:
case "LOG_STATEMENT_UNSPECIFIED":
return PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_UNSPECIFIED;
case 1:
case "LOG_STATEMENT_NONE":
return PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_NONE;
case 2:
case "LOG_STATEMENT_DDL":
return PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_DDL;
case 3:
case "LOG_STATEMENT_MOD":
return PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_MOD;
case 4:
case "LOG_STATEMENT_ALL":
return PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_ALL;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_LogStatement.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_LogStatementFromJSON = postgresqlHostConfig15_LogStatementFromJSON;
function postgresqlHostConfig15_LogStatementToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_UNSPECIFIED:
return "LOG_STATEMENT_UNSPECIFIED";
case PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_NONE:
return "LOG_STATEMENT_NONE";
case PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_DDL:
return "LOG_STATEMENT_DDL";
case PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_MOD:
return "LOG_STATEMENT_MOD";
case PostgresqlHostConfig15_LogStatement.LOG_STATEMENT_ALL:
return "LOG_STATEMENT_ALL";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_LogStatementToJSON = postgresqlHostConfig15_LogStatementToJSON;
var PostgresqlHostConfig15_TransactionIsolation;
(function (PostgresqlHostConfig15_TransactionIsolation) {
PostgresqlHostConfig15_TransactionIsolation[PostgresqlHostConfig15_TransactionIsolation["TRANSACTION_ISOLATION_UNSPECIFIED"] = 0] = "TRANSACTION_ISOLATION_UNSPECIFIED";
PostgresqlHostConfig15_TransactionIsolation[PostgresqlHostConfig15_TransactionIsolation["TRANSACTION_ISOLATION_READ_UNCOMMITTED"] = 1] = "TRANSACTION_ISOLATION_READ_UNCOMMITTED";
PostgresqlHostConfig15_TransactionIsolation[PostgresqlHostConfig15_TransactionIsolation["TRANSACTION_ISOLATION_READ_COMMITTED"] = 2] = "TRANSACTION_ISOLATION_READ_COMMITTED";
PostgresqlHostConfig15_TransactionIsolation[PostgresqlHostConfig15_TransactionIsolation["TRANSACTION_ISOLATION_REPEATABLE_READ"] = 3] = "TRANSACTION_ISOLATION_REPEATABLE_READ";
PostgresqlHostConfig15_TransactionIsolation[PostgresqlHostConfig15_TransactionIsolation["TRANSACTION_ISOLATION_SERIALIZABLE"] = 4] = "TRANSACTION_ISOLATION_SERIALIZABLE";
PostgresqlHostConfig15_TransactionIsolation[PostgresqlHostConfig15_TransactionIsolation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_TransactionIsolation = exports.PostgresqlHostConfig15_TransactionIsolation || (exports.PostgresqlHostConfig15_TransactionIsolation = {}));
function postgresqlHostConfig15_TransactionIsolationFromJSON(object) {
switch (object) {
case 0:
case "TRANSACTION_ISOLATION_UNSPECIFIED":
return PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED;
case 1:
case "TRANSACTION_ISOLATION_READ_UNCOMMITTED":
return PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_READ_UNCOMMITTED;
case 2:
case "TRANSACTION_ISOLATION_READ_COMMITTED":
return PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_READ_COMMITTED;
case 3:
case "TRANSACTION_ISOLATION_REPEATABLE_READ":
return PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_REPEATABLE_READ;
case 4:
case "TRANSACTION_ISOLATION_SERIALIZABLE":
return PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_SERIALIZABLE;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_TransactionIsolation.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_TransactionIsolationFromJSON = postgresqlHostConfig15_TransactionIsolationFromJSON;
function postgresqlHostConfig15_TransactionIsolationToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED:
return "TRANSACTION_ISOLATION_UNSPECIFIED";
case PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_READ_UNCOMMITTED:
return "TRANSACTION_ISOLATION_READ_UNCOMMITTED";
case PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_READ_COMMITTED:
return "TRANSACTION_ISOLATION_READ_COMMITTED";
case PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_REPEATABLE_READ:
return "TRANSACTION_ISOLATION_REPEATABLE_READ";
case PostgresqlHostConfig15_TransactionIsolation.TRANSACTION_ISOLATION_SERIALIZABLE:
return "TRANSACTION_ISOLATION_SERIALIZABLE";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_TransactionIsolationToJSON = postgresqlHostConfig15_TransactionIsolationToJSON;
var PostgresqlHostConfig15_XmlBinary;
(function (PostgresqlHostConfig15_XmlBinary) {
PostgresqlHostConfig15_XmlBinary[PostgresqlHostConfig15_XmlBinary["XML_BINARY_UNSPECIFIED"] = 0] = "XML_BINARY_UNSPECIFIED";
PostgresqlHostConfig15_XmlBinary[PostgresqlHostConfig15_XmlBinary["XML_BINARY_BASE64"] = 1] = "XML_BINARY_BASE64";
PostgresqlHostConfig15_XmlBinary[PostgresqlHostConfig15_XmlBinary["XML_BINARY_HEX"] = 2] = "XML_BINARY_HEX";
PostgresqlHostConfig15_XmlBinary[PostgresqlHostConfig15_XmlBinary["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_XmlBinary = exports.PostgresqlHostConfig15_XmlBinary || (exports.PostgresqlHostConfig15_XmlBinary = {}));
function postgresqlHostConfig15_XmlBinaryFromJSON(object) {
switch (object) {
case 0:
case "XML_BINARY_UNSPECIFIED":
return PostgresqlHostConfig15_XmlBinary.XML_BINARY_UNSPECIFIED;
case 1:
case "XML_BINARY_BASE64":
return PostgresqlHostConfig15_XmlBinary.XML_BINARY_BASE64;
case 2:
case "XML_BINARY_HEX":
return PostgresqlHostConfig15_XmlBinary.XML_BINARY_HEX;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_XmlBinary.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_XmlBinaryFromJSON = postgresqlHostConfig15_XmlBinaryFromJSON;
function postgresqlHostConfig15_XmlBinaryToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_XmlBinary.XML_BINARY_UNSPECIFIED:
return "XML_BINARY_UNSPECIFIED";
case PostgresqlHostConfig15_XmlBinary.XML_BINARY_BASE64:
return "XML_BINARY_BASE64";
case PostgresqlHostConfig15_XmlBinary.XML_BINARY_HEX:
return "XML_BINARY_HEX";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_XmlBinaryToJSON = postgresqlHostConfig15_XmlBinaryToJSON;
var PostgresqlHostConfig15_XmlOption;
(function (PostgresqlHostConfig15_XmlOption) {
PostgresqlHostConfig15_XmlOption[PostgresqlHostConfig15_XmlOption["XML_OPTION_UNSPECIFIED"] = 0] = "XML_OPTION_UNSPECIFIED";
PostgresqlHostConfig15_XmlOption[PostgresqlHostConfig15_XmlOption["XML_OPTION_DOCUMENT"] = 1] = "XML_OPTION_DOCUMENT";
PostgresqlHostConfig15_XmlOption[PostgresqlHostConfig15_XmlOption["XML_OPTION_CONTENT"] = 2] = "XML_OPTION_CONTENT";
PostgresqlHostConfig15_XmlOption[PostgresqlHostConfig15_XmlOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(PostgresqlHostConfig15_XmlOption = exports.PostgresqlHostConfig15_XmlOption || (exports.PostgresqlHostConfig15_XmlOption = {}));
function postgresqlHostConfig15_XmlOptionFromJSON(object) {
switch (object) {
case 0:
case "XML_OPTION_UNSPECIFIED":
return PostgresqlHostConfig15_XmlOption.XML_OPTION_UNSPECIFIED;
case 1:
case "XML_OPTION_DOCUMENT":
return PostgresqlHostConfig15_XmlOption.XML_OPTION_DOCUMENT;
case 2:
case "XML_OPTION_CONTENT":
return PostgresqlHostConfig15_XmlOption.XML_OPTION_CONTENT;
case -1:
case "UNRECOGNIZED":
default:
return PostgresqlHostConfig15_XmlOption.UNRECOGNIZED;
}
}
exports.postgresqlHostConfig15_XmlOptionFromJSON = postgresqlHostConfig15_XmlOptionFromJSON;
function postgresqlHostConfig15_XmlOptionToJSON(object) {
switch (object) {
case PostgresqlHostConfig15_XmlOption.XML_OPTION_UNSPECIFIED:
return "XML_OPTION_UNSPECIFIED";
case PostgresqlHostConfig15_XmlOption.XML_OPTION_DOCUMENT:
return "XML_OPTION_DOCUMENT";
case PostgresqlHostConfig15_XmlOption.XML_OPTION_CONTENT:
return "XML_OPTION_CONTENT";
default:
return "UNKNOWN";
}
}
exports.postgresqlHostConfig15_XmlOptionToJSON = postgresqlHostConfig15_XmlOptionToJSON;
const basePostgresqlHostConfig15 = {
$type: "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15",
constraintExclusion: 0,
forceParallelMode: 0,
clientMinMessages: 0,
logMinMessages: 0,
logMinErrorStatement: 0,
logErrorVerbosity: 0,
logStatement: 0,
searchPath: "",
defaultTransactionIsolation: 0,
byteaOutput: 0,
xmlbinary: 0,
xmloption: 0,
backslashQuote: 0,
timezone: "",
};
exports.PostgresqlHostConfig15 = {
$type: "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15",
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.forceParallelMode !== 0) {
writer.uint32(104).int32(message.forceParallelMode);
}
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({}, basePostgresqlHostConfig15);
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;
case 9:
message.constraintExclusion = reader.int32();
break;
case 10:
message.cursorTupleFraction = wrappers_1.DoubleValue.decode(reader, reader.uint32()).value;
break;
case 11:
message.fromCollapseLimit = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;
break;
case 12:
message.joinCollapseLimit = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;
break;
case 13:
message.forceParallelMode = reader.int32();
break;
case 14:
message.clientMinMessages = reader.int32();
break;
case 15:
message.logMinMessages = reader.int32();
break;
case 16:
message.logMinErrorStatement = reader.int32();
break;
case 17:
message.logMinDurationStatement = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;
break;
case 18:
message.logCheckpoints = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
break;
case 19:
message.logConnections = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
break;
case 20:
message.logDisconnections = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
break;
case 21:
message.logDuration = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
break;
case 22:
message.logErrorVerbosity = reader.int32();
break;
case 23:
message.logLockWaits = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
break;
case 24:
message.logStatement = reader.int32();
break;
case 25:
message.logTempFiles = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;
break;
case 26:
message.searchPath = reader.string();
break;
case 27:
message.rowSecurity = wrappers_1.BoolValue.decode(reader, reader.uint32()).value;
break;
case 28:
message.defaultTransactionIsolation = reader.int32();
break;
case 29:
message.statementTimeout = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;
break;
case 30:
message.lockTimeout = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;
break;
case 31:
message.idleInTransactionSessionTimeout = wrappers_1.Int64Value.decode(reader, reader.uint32()).value;