UNPKG

@yandex-cloud/nodejs-sdk

Version:
1,003 lines (1,002 loc) 102 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mysqlconfigset80 = exports.Mysqlconfig80 = exports.mysqlconfig80_BinlogTransactionDependencyTrackingToJSON = exports.mysqlconfig80_BinlogTransactionDependencyTrackingFromJSON = exports.Mysqlconfig80_BinlogTransactionDependencyTracking = exports.mysqlconfig80_LogSlowFilterTypeToJSON = exports.mysqlconfig80_LogSlowFilterTypeFromJSON = exports.Mysqlconfig80_LogSlowFilterType = exports.mysqlconfig80_LogSlowRateTypeToJSON = exports.mysqlconfig80_LogSlowRateTypeFromJSON = exports.Mysqlconfig80_LogSlowRateType = exports.mysqlconfig80_SlaveParallelTypeToJSON = exports.mysqlconfig80_SlaveParallelTypeFromJSON = exports.Mysqlconfig80_SlaveParallelType = exports.mysqlconfig80_BinlogRowImageToJSON = exports.mysqlconfig80_BinlogRowImageFromJSON = exports.Mysqlconfig80_BinlogRowImage = exports.mysqlconfig80_TransactionIsolationToJSON = exports.mysqlconfig80_TransactionIsolationFromJSON = exports.Mysqlconfig80_TransactionIsolation = exports.mysqlconfig80_AuthPluginToJSON = exports.mysqlconfig80_AuthPluginFromJSON = exports.Mysqlconfig80_AuthPlugin = exports.mysqlconfig80_SQLModeToJSON = exports.mysqlconfig80_SQLModeFromJSON = exports.Mysqlconfig80_SQLMode = 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.mysql.v1.config"; var Mysqlconfig80_SQLMode; (function (Mysqlconfig80_SQLMode) { Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["SQLMODE_UNSPECIFIED"] = 0] = "SQLMODE_UNSPECIFIED"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["ALLOW_INVALID_DATES"] = 1] = "ALLOW_INVALID_DATES"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["ANSI_QUOTES"] = 2] = "ANSI_QUOTES"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["ERROR_FOR_DIVISION_BY_ZERO"] = 3] = "ERROR_FOR_DIVISION_BY_ZERO"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["HIGH_NOT_PRECEDENCE"] = 4] = "HIGH_NOT_PRECEDENCE"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["IGNORE_SPACE"] = 5] = "IGNORE_SPACE"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_AUTO_VALUE_ON_ZERO"] = 6] = "NO_AUTO_VALUE_ON_ZERO"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_BACKSLASH_ESCAPES"] = 7] = "NO_BACKSLASH_ESCAPES"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_ENGINE_SUBSTITUTION"] = 8] = "NO_ENGINE_SUBSTITUTION"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_UNSIGNED_SUBTRACTION"] = 9] = "NO_UNSIGNED_SUBTRACTION"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_ZERO_DATE"] = 10] = "NO_ZERO_DATE"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_ZERO_IN_DATE"] = 11] = "NO_ZERO_IN_DATE"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["ONLY_FULL_GROUP_BY"] = 15] = "ONLY_FULL_GROUP_BY"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["PAD_CHAR_TO_FULL_LENGTH"] = 16] = "PAD_CHAR_TO_FULL_LENGTH"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["PIPES_AS_CONCAT"] = 17] = "PIPES_AS_CONCAT"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["REAL_AS_FLOAT"] = 18] = "REAL_AS_FLOAT"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["STRICT_ALL_TABLES"] = 19] = "STRICT_ALL_TABLES"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["STRICT_TRANS_TABLES"] = 20] = "STRICT_TRANS_TABLES"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["TIME_TRUNCATE_FRACTIONAL"] = 21] = "TIME_TRUNCATE_FRACTIONAL"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["ANSI"] = 22] = "ANSI"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["TRADITIONAL"] = 23] = "TRADITIONAL"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["NO_DIR_IN_CREATE"] = 24] = "NO_DIR_IN_CREATE"; Mysqlconfig80_SQLMode[Mysqlconfig80_SQLMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_SQLMode = exports.Mysqlconfig80_SQLMode || (exports.Mysqlconfig80_SQLMode = {})); function mysqlconfig80_SQLModeFromJSON(object) { switch (object) { case 0: case "SQLMODE_UNSPECIFIED": return Mysqlconfig80_SQLMode.SQLMODE_UNSPECIFIED; case 1: case "ALLOW_INVALID_DATES": return Mysqlconfig80_SQLMode.ALLOW_INVALID_DATES; case 2: case "ANSI_QUOTES": return Mysqlconfig80_SQLMode.ANSI_QUOTES; case 3: case "ERROR_FOR_DIVISION_BY_ZERO": return Mysqlconfig80_SQLMode.ERROR_FOR_DIVISION_BY_ZERO; case 4: case "HIGH_NOT_PRECEDENCE": return Mysqlconfig80_SQLMode.HIGH_NOT_PRECEDENCE; case 5: case "IGNORE_SPACE": return Mysqlconfig80_SQLMode.IGNORE_SPACE; case 6: case "NO_AUTO_VALUE_ON_ZERO": return Mysqlconfig80_SQLMode.NO_AUTO_VALUE_ON_ZERO; case 7: case "NO_BACKSLASH_ESCAPES": return Mysqlconfig80_SQLMode.NO_BACKSLASH_ESCAPES; case 8: case "NO_ENGINE_SUBSTITUTION": return Mysqlconfig80_SQLMode.NO_ENGINE_SUBSTITUTION; case 9: case "NO_UNSIGNED_SUBTRACTION": return Mysqlconfig80_SQLMode.NO_UNSIGNED_SUBTRACTION; case 10: case "NO_ZERO_DATE": return Mysqlconfig80_SQLMode.NO_ZERO_DATE; case 11: case "NO_ZERO_IN_DATE": return Mysqlconfig80_SQLMode.NO_ZERO_IN_DATE; case 15: case "ONLY_FULL_GROUP_BY": return Mysqlconfig80_SQLMode.ONLY_FULL_GROUP_BY; case 16: case "PAD_CHAR_TO_FULL_LENGTH": return Mysqlconfig80_SQLMode.PAD_CHAR_TO_FULL_LENGTH; case 17: case "PIPES_AS_CONCAT": return Mysqlconfig80_SQLMode.PIPES_AS_CONCAT; case 18: case "REAL_AS_FLOAT": return Mysqlconfig80_SQLMode.REAL_AS_FLOAT; case 19: case "STRICT_ALL_TABLES": return Mysqlconfig80_SQLMode.STRICT_ALL_TABLES; case 20: case "STRICT_TRANS_TABLES": return Mysqlconfig80_SQLMode.STRICT_TRANS_TABLES; case 21: case "TIME_TRUNCATE_FRACTIONAL": return Mysqlconfig80_SQLMode.TIME_TRUNCATE_FRACTIONAL; case 22: case "ANSI": return Mysqlconfig80_SQLMode.ANSI; case 23: case "TRADITIONAL": return Mysqlconfig80_SQLMode.TRADITIONAL; case 24: case "NO_DIR_IN_CREATE": return Mysqlconfig80_SQLMode.NO_DIR_IN_CREATE; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_SQLMode.UNRECOGNIZED; } } exports.mysqlconfig80_SQLModeFromJSON = mysqlconfig80_SQLModeFromJSON; function mysqlconfig80_SQLModeToJSON(object) { switch (object) { case Mysqlconfig80_SQLMode.SQLMODE_UNSPECIFIED: return "SQLMODE_UNSPECIFIED"; case Mysqlconfig80_SQLMode.ALLOW_INVALID_DATES: return "ALLOW_INVALID_DATES"; case Mysqlconfig80_SQLMode.ANSI_QUOTES: return "ANSI_QUOTES"; case Mysqlconfig80_SQLMode.ERROR_FOR_DIVISION_BY_ZERO: return "ERROR_FOR_DIVISION_BY_ZERO"; case Mysqlconfig80_SQLMode.HIGH_NOT_PRECEDENCE: return "HIGH_NOT_PRECEDENCE"; case Mysqlconfig80_SQLMode.IGNORE_SPACE: return "IGNORE_SPACE"; case Mysqlconfig80_SQLMode.NO_AUTO_VALUE_ON_ZERO: return "NO_AUTO_VALUE_ON_ZERO"; case Mysqlconfig80_SQLMode.NO_BACKSLASH_ESCAPES: return "NO_BACKSLASH_ESCAPES"; case Mysqlconfig80_SQLMode.NO_ENGINE_SUBSTITUTION: return "NO_ENGINE_SUBSTITUTION"; case Mysqlconfig80_SQLMode.NO_UNSIGNED_SUBTRACTION: return "NO_UNSIGNED_SUBTRACTION"; case Mysqlconfig80_SQLMode.NO_ZERO_DATE: return "NO_ZERO_DATE"; case Mysqlconfig80_SQLMode.NO_ZERO_IN_DATE: return "NO_ZERO_IN_DATE"; case Mysqlconfig80_SQLMode.ONLY_FULL_GROUP_BY: return "ONLY_FULL_GROUP_BY"; case Mysqlconfig80_SQLMode.PAD_CHAR_TO_FULL_LENGTH: return "PAD_CHAR_TO_FULL_LENGTH"; case Mysqlconfig80_SQLMode.PIPES_AS_CONCAT: return "PIPES_AS_CONCAT"; case Mysqlconfig80_SQLMode.REAL_AS_FLOAT: return "REAL_AS_FLOAT"; case Mysqlconfig80_SQLMode.STRICT_ALL_TABLES: return "STRICT_ALL_TABLES"; case Mysqlconfig80_SQLMode.STRICT_TRANS_TABLES: return "STRICT_TRANS_TABLES"; case Mysqlconfig80_SQLMode.TIME_TRUNCATE_FRACTIONAL: return "TIME_TRUNCATE_FRACTIONAL"; case Mysqlconfig80_SQLMode.ANSI: return "ANSI"; case Mysqlconfig80_SQLMode.TRADITIONAL: return "TRADITIONAL"; case Mysqlconfig80_SQLMode.NO_DIR_IN_CREATE: return "NO_DIR_IN_CREATE"; default: return "UNKNOWN"; } } exports.mysqlconfig80_SQLModeToJSON = mysqlconfig80_SQLModeToJSON; var Mysqlconfig80_AuthPlugin; (function (Mysqlconfig80_AuthPlugin) { Mysqlconfig80_AuthPlugin[Mysqlconfig80_AuthPlugin["AUTH_PLUGIN_UNSPECIFIED"] = 0] = "AUTH_PLUGIN_UNSPECIFIED"; /** MYSQL_NATIVE_PASSWORD - Using [Native Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/native-pluggable-authentication.html). */ Mysqlconfig80_AuthPlugin[Mysqlconfig80_AuthPlugin["MYSQL_NATIVE_PASSWORD"] = 1] = "MYSQL_NATIVE_PASSWORD"; /** CACHING_SHA2_PASSWORD - Using [Caching SHA-2 Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html). */ Mysqlconfig80_AuthPlugin[Mysqlconfig80_AuthPlugin["CACHING_SHA2_PASSWORD"] = 2] = "CACHING_SHA2_PASSWORD"; /** SHA256_PASSWORD - Using [SHA-256 Pluggable Authentication](https://dev.mysql.com/doc/refman/8.0/en/sha256-pluggable-authentication.html). */ Mysqlconfig80_AuthPlugin[Mysqlconfig80_AuthPlugin["SHA256_PASSWORD"] = 3] = "SHA256_PASSWORD"; Mysqlconfig80_AuthPlugin[Mysqlconfig80_AuthPlugin["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_AuthPlugin = exports.Mysqlconfig80_AuthPlugin || (exports.Mysqlconfig80_AuthPlugin = {})); function mysqlconfig80_AuthPluginFromJSON(object) { switch (object) { case 0: case "AUTH_PLUGIN_UNSPECIFIED": return Mysqlconfig80_AuthPlugin.AUTH_PLUGIN_UNSPECIFIED; case 1: case "MYSQL_NATIVE_PASSWORD": return Mysqlconfig80_AuthPlugin.MYSQL_NATIVE_PASSWORD; case 2: case "CACHING_SHA2_PASSWORD": return Mysqlconfig80_AuthPlugin.CACHING_SHA2_PASSWORD; case 3: case "SHA256_PASSWORD": return Mysqlconfig80_AuthPlugin.SHA256_PASSWORD; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_AuthPlugin.UNRECOGNIZED; } } exports.mysqlconfig80_AuthPluginFromJSON = mysqlconfig80_AuthPluginFromJSON; function mysqlconfig80_AuthPluginToJSON(object) { switch (object) { case Mysqlconfig80_AuthPlugin.AUTH_PLUGIN_UNSPECIFIED: return "AUTH_PLUGIN_UNSPECIFIED"; case Mysqlconfig80_AuthPlugin.MYSQL_NATIVE_PASSWORD: return "MYSQL_NATIVE_PASSWORD"; case Mysqlconfig80_AuthPlugin.CACHING_SHA2_PASSWORD: return "CACHING_SHA2_PASSWORD"; case Mysqlconfig80_AuthPlugin.SHA256_PASSWORD: return "SHA256_PASSWORD"; default: return "UNKNOWN"; } } exports.mysqlconfig80_AuthPluginToJSON = mysqlconfig80_AuthPluginToJSON; var Mysqlconfig80_TransactionIsolation; (function (Mysqlconfig80_TransactionIsolation) { Mysqlconfig80_TransactionIsolation[Mysqlconfig80_TransactionIsolation["TRANSACTION_ISOLATION_UNSPECIFIED"] = 0] = "TRANSACTION_ISOLATION_UNSPECIFIED"; Mysqlconfig80_TransactionIsolation[Mysqlconfig80_TransactionIsolation["READ_COMMITTED"] = 1] = "READ_COMMITTED"; Mysqlconfig80_TransactionIsolation[Mysqlconfig80_TransactionIsolation["REPEATABLE_READ"] = 2] = "REPEATABLE_READ"; Mysqlconfig80_TransactionIsolation[Mysqlconfig80_TransactionIsolation["SERIALIZABLE"] = 3] = "SERIALIZABLE"; Mysqlconfig80_TransactionIsolation[Mysqlconfig80_TransactionIsolation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_TransactionIsolation = exports.Mysqlconfig80_TransactionIsolation || (exports.Mysqlconfig80_TransactionIsolation = {})); function mysqlconfig80_TransactionIsolationFromJSON(object) { switch (object) { case 0: case "TRANSACTION_ISOLATION_UNSPECIFIED": return Mysqlconfig80_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED; case 1: case "READ_COMMITTED": return Mysqlconfig80_TransactionIsolation.READ_COMMITTED; case 2: case "REPEATABLE_READ": return Mysqlconfig80_TransactionIsolation.REPEATABLE_READ; case 3: case "SERIALIZABLE": return Mysqlconfig80_TransactionIsolation.SERIALIZABLE; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_TransactionIsolation.UNRECOGNIZED; } } exports.mysqlconfig80_TransactionIsolationFromJSON = mysqlconfig80_TransactionIsolationFromJSON; function mysqlconfig80_TransactionIsolationToJSON(object) { switch (object) { case Mysqlconfig80_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED: return "TRANSACTION_ISOLATION_UNSPECIFIED"; case Mysqlconfig80_TransactionIsolation.READ_COMMITTED: return "READ_COMMITTED"; case Mysqlconfig80_TransactionIsolation.REPEATABLE_READ: return "REPEATABLE_READ"; case Mysqlconfig80_TransactionIsolation.SERIALIZABLE: return "SERIALIZABLE"; default: return "UNKNOWN"; } } exports.mysqlconfig80_TransactionIsolationToJSON = mysqlconfig80_TransactionIsolationToJSON; var Mysqlconfig80_BinlogRowImage; (function (Mysqlconfig80_BinlogRowImage) { Mysqlconfig80_BinlogRowImage[Mysqlconfig80_BinlogRowImage["BINLOG_ROW_IMAGE_UNSPECIFIED"] = 0] = "BINLOG_ROW_IMAGE_UNSPECIFIED"; Mysqlconfig80_BinlogRowImage[Mysqlconfig80_BinlogRowImage["FULL"] = 1] = "FULL"; Mysqlconfig80_BinlogRowImage[Mysqlconfig80_BinlogRowImage["MINIMAL"] = 2] = "MINIMAL"; Mysqlconfig80_BinlogRowImage[Mysqlconfig80_BinlogRowImage["NOBLOB"] = 3] = "NOBLOB"; Mysqlconfig80_BinlogRowImage[Mysqlconfig80_BinlogRowImage["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_BinlogRowImage = exports.Mysqlconfig80_BinlogRowImage || (exports.Mysqlconfig80_BinlogRowImage = {})); function mysqlconfig80_BinlogRowImageFromJSON(object) { switch (object) { case 0: case "BINLOG_ROW_IMAGE_UNSPECIFIED": return Mysqlconfig80_BinlogRowImage.BINLOG_ROW_IMAGE_UNSPECIFIED; case 1: case "FULL": return Mysqlconfig80_BinlogRowImage.FULL; case 2: case "MINIMAL": return Mysqlconfig80_BinlogRowImage.MINIMAL; case 3: case "NOBLOB": return Mysqlconfig80_BinlogRowImage.NOBLOB; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_BinlogRowImage.UNRECOGNIZED; } } exports.mysqlconfig80_BinlogRowImageFromJSON = mysqlconfig80_BinlogRowImageFromJSON; function mysqlconfig80_BinlogRowImageToJSON(object) { switch (object) { case Mysqlconfig80_BinlogRowImage.BINLOG_ROW_IMAGE_UNSPECIFIED: return "BINLOG_ROW_IMAGE_UNSPECIFIED"; case Mysqlconfig80_BinlogRowImage.FULL: return "FULL"; case Mysqlconfig80_BinlogRowImage.MINIMAL: return "MINIMAL"; case Mysqlconfig80_BinlogRowImage.NOBLOB: return "NOBLOB"; default: return "UNKNOWN"; } } exports.mysqlconfig80_BinlogRowImageToJSON = mysqlconfig80_BinlogRowImageToJSON; var Mysqlconfig80_SlaveParallelType; (function (Mysqlconfig80_SlaveParallelType) { Mysqlconfig80_SlaveParallelType[Mysqlconfig80_SlaveParallelType["SLAVE_PARALLEL_TYPE_UNSPECIFIED"] = 0] = "SLAVE_PARALLEL_TYPE_UNSPECIFIED"; Mysqlconfig80_SlaveParallelType[Mysqlconfig80_SlaveParallelType["DATABASE"] = 1] = "DATABASE"; Mysqlconfig80_SlaveParallelType[Mysqlconfig80_SlaveParallelType["LOGICAL_CLOCK"] = 2] = "LOGICAL_CLOCK"; Mysqlconfig80_SlaveParallelType[Mysqlconfig80_SlaveParallelType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_SlaveParallelType = exports.Mysqlconfig80_SlaveParallelType || (exports.Mysqlconfig80_SlaveParallelType = {})); function mysqlconfig80_SlaveParallelTypeFromJSON(object) { switch (object) { case 0: case "SLAVE_PARALLEL_TYPE_UNSPECIFIED": return Mysqlconfig80_SlaveParallelType.SLAVE_PARALLEL_TYPE_UNSPECIFIED; case 1: case "DATABASE": return Mysqlconfig80_SlaveParallelType.DATABASE; case 2: case "LOGICAL_CLOCK": return Mysqlconfig80_SlaveParallelType.LOGICAL_CLOCK; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_SlaveParallelType.UNRECOGNIZED; } } exports.mysqlconfig80_SlaveParallelTypeFromJSON = mysqlconfig80_SlaveParallelTypeFromJSON; function mysqlconfig80_SlaveParallelTypeToJSON(object) { switch (object) { case Mysqlconfig80_SlaveParallelType.SLAVE_PARALLEL_TYPE_UNSPECIFIED: return "SLAVE_PARALLEL_TYPE_UNSPECIFIED"; case Mysqlconfig80_SlaveParallelType.DATABASE: return "DATABASE"; case Mysqlconfig80_SlaveParallelType.LOGICAL_CLOCK: return "LOGICAL_CLOCK"; default: return "UNKNOWN"; } } exports.mysqlconfig80_SlaveParallelTypeToJSON = mysqlconfig80_SlaveParallelTypeToJSON; var Mysqlconfig80_LogSlowRateType; (function (Mysqlconfig80_LogSlowRateType) { Mysqlconfig80_LogSlowRateType[Mysqlconfig80_LogSlowRateType["LOG_SLOW_RATE_TYPE_UNSPECIFIED"] = 0] = "LOG_SLOW_RATE_TYPE_UNSPECIFIED"; Mysqlconfig80_LogSlowRateType[Mysqlconfig80_LogSlowRateType["SESSION"] = 1] = "SESSION"; Mysqlconfig80_LogSlowRateType[Mysqlconfig80_LogSlowRateType["QUERY"] = 2] = "QUERY"; Mysqlconfig80_LogSlowRateType[Mysqlconfig80_LogSlowRateType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_LogSlowRateType = exports.Mysqlconfig80_LogSlowRateType || (exports.Mysqlconfig80_LogSlowRateType = {})); function mysqlconfig80_LogSlowRateTypeFromJSON(object) { switch (object) { case 0: case "LOG_SLOW_RATE_TYPE_UNSPECIFIED": return Mysqlconfig80_LogSlowRateType.LOG_SLOW_RATE_TYPE_UNSPECIFIED; case 1: case "SESSION": return Mysqlconfig80_LogSlowRateType.SESSION; case 2: case "QUERY": return Mysqlconfig80_LogSlowRateType.QUERY; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_LogSlowRateType.UNRECOGNIZED; } } exports.mysqlconfig80_LogSlowRateTypeFromJSON = mysqlconfig80_LogSlowRateTypeFromJSON; function mysqlconfig80_LogSlowRateTypeToJSON(object) { switch (object) { case Mysqlconfig80_LogSlowRateType.LOG_SLOW_RATE_TYPE_UNSPECIFIED: return "LOG_SLOW_RATE_TYPE_UNSPECIFIED"; case Mysqlconfig80_LogSlowRateType.SESSION: return "SESSION"; case Mysqlconfig80_LogSlowRateType.QUERY: return "QUERY"; default: return "UNKNOWN"; } } exports.mysqlconfig80_LogSlowRateTypeToJSON = mysqlconfig80_LogSlowRateTypeToJSON; var Mysqlconfig80_LogSlowFilterType; (function (Mysqlconfig80_LogSlowFilterType) { Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["LOG_SLOW_FILTER_TYPE_UNSPECIFIED"] = 0] = "LOG_SLOW_FILTER_TYPE_UNSPECIFIED"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["FULL_SCAN"] = 1] = "FULL_SCAN"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["FULL_JOIN"] = 2] = "FULL_JOIN"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["TMP_TABLE"] = 3] = "TMP_TABLE"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["TMP_TABLE_ON_DISK"] = 4] = "TMP_TABLE_ON_DISK"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["FILESORT"] = 5] = "FILESORT"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["FILESORT_ON_DISK"] = 6] = "FILESORT_ON_DISK"; Mysqlconfig80_LogSlowFilterType[Mysqlconfig80_LogSlowFilterType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_LogSlowFilterType = exports.Mysqlconfig80_LogSlowFilterType || (exports.Mysqlconfig80_LogSlowFilterType = {})); function mysqlconfig80_LogSlowFilterTypeFromJSON(object) { switch (object) { case 0: case "LOG_SLOW_FILTER_TYPE_UNSPECIFIED": return Mysqlconfig80_LogSlowFilterType.LOG_SLOW_FILTER_TYPE_UNSPECIFIED; case 1: case "FULL_SCAN": return Mysqlconfig80_LogSlowFilterType.FULL_SCAN; case 2: case "FULL_JOIN": return Mysqlconfig80_LogSlowFilterType.FULL_JOIN; case 3: case "TMP_TABLE": return Mysqlconfig80_LogSlowFilterType.TMP_TABLE; case 4: case "TMP_TABLE_ON_DISK": return Mysqlconfig80_LogSlowFilterType.TMP_TABLE_ON_DISK; case 5: case "FILESORT": return Mysqlconfig80_LogSlowFilterType.FILESORT; case 6: case "FILESORT_ON_DISK": return Mysqlconfig80_LogSlowFilterType.FILESORT_ON_DISK; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_LogSlowFilterType.UNRECOGNIZED; } } exports.mysqlconfig80_LogSlowFilterTypeFromJSON = mysqlconfig80_LogSlowFilterTypeFromJSON; function mysqlconfig80_LogSlowFilterTypeToJSON(object) { switch (object) { case Mysqlconfig80_LogSlowFilterType.LOG_SLOW_FILTER_TYPE_UNSPECIFIED: return "LOG_SLOW_FILTER_TYPE_UNSPECIFIED"; case Mysqlconfig80_LogSlowFilterType.FULL_SCAN: return "FULL_SCAN"; case Mysqlconfig80_LogSlowFilterType.FULL_JOIN: return "FULL_JOIN"; case Mysqlconfig80_LogSlowFilterType.TMP_TABLE: return "TMP_TABLE"; case Mysqlconfig80_LogSlowFilterType.TMP_TABLE_ON_DISK: return "TMP_TABLE_ON_DISK"; case Mysqlconfig80_LogSlowFilterType.FILESORT: return "FILESORT"; case Mysqlconfig80_LogSlowFilterType.FILESORT_ON_DISK: return "FILESORT_ON_DISK"; default: return "UNKNOWN"; } } exports.mysqlconfig80_LogSlowFilterTypeToJSON = mysqlconfig80_LogSlowFilterTypeToJSON; var Mysqlconfig80_BinlogTransactionDependencyTracking; (function (Mysqlconfig80_BinlogTransactionDependencyTracking) { Mysqlconfig80_BinlogTransactionDependencyTracking[Mysqlconfig80_BinlogTransactionDependencyTracking["BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED"] = 0] = "BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED"; Mysqlconfig80_BinlogTransactionDependencyTracking[Mysqlconfig80_BinlogTransactionDependencyTracking["COMMIT_ORDER"] = 1] = "COMMIT_ORDER"; Mysqlconfig80_BinlogTransactionDependencyTracking[Mysqlconfig80_BinlogTransactionDependencyTracking["WRITESET"] = 2] = "WRITESET"; Mysqlconfig80_BinlogTransactionDependencyTracking[Mysqlconfig80_BinlogTransactionDependencyTracking["WRITESET_SESSION"] = 3] = "WRITESET_SESSION"; Mysqlconfig80_BinlogTransactionDependencyTracking[Mysqlconfig80_BinlogTransactionDependencyTracking["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig80_BinlogTransactionDependencyTracking = exports.Mysqlconfig80_BinlogTransactionDependencyTracking || (exports.Mysqlconfig80_BinlogTransactionDependencyTracking = {})); function mysqlconfig80_BinlogTransactionDependencyTrackingFromJSON(object) { switch (object) { case 0: case "BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED": return Mysqlconfig80_BinlogTransactionDependencyTracking.BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED; case 1: case "COMMIT_ORDER": return Mysqlconfig80_BinlogTransactionDependencyTracking.COMMIT_ORDER; case 2: case "WRITESET": return Mysqlconfig80_BinlogTransactionDependencyTracking.WRITESET; case 3: case "WRITESET_SESSION": return Mysqlconfig80_BinlogTransactionDependencyTracking.WRITESET_SESSION; case -1: case "UNRECOGNIZED": default: return Mysqlconfig80_BinlogTransactionDependencyTracking.UNRECOGNIZED; } } exports.mysqlconfig80_BinlogTransactionDependencyTrackingFromJSON = mysqlconfig80_BinlogTransactionDependencyTrackingFromJSON; function mysqlconfig80_BinlogTransactionDependencyTrackingToJSON(object) { switch (object) { case Mysqlconfig80_BinlogTransactionDependencyTracking.BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED: return "BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED"; case Mysqlconfig80_BinlogTransactionDependencyTracking.COMMIT_ORDER: return "COMMIT_ORDER"; case Mysqlconfig80_BinlogTransactionDependencyTracking.WRITESET: return "WRITESET"; case Mysqlconfig80_BinlogTransactionDependencyTracking.WRITESET_SESSION: return "WRITESET_SESSION"; default: return "UNKNOWN"; } } exports.mysqlconfig80_BinlogTransactionDependencyTrackingToJSON = mysqlconfig80_BinlogTransactionDependencyTrackingToJSON; const baseMysqlconfig80 = { $type: "yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0", sqlMode: 0, defaultAuthenticationPlugin: 0, transactionIsolation: 0, defaultTimeZone: "", characterSetServer: "", collationServer: "", binlogRowImage: 0, slaveParallelType: 0, logSlowRateType: 0, logSlowFilter: 0, binlogTransactionDependencyTracking: 0, optimizerSwitch: "", }; exports.Mysqlconfig80 = { $type: "yandex.cloud.mdb.mysql.v1.config.MysqlConfig8_0", encode(message, writer = minimal_1.default.Writer.create()) { if (message.innodbBufferPoolSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbBufferPoolSize, }, writer.uint32(10).fork()).ldelim(); } if (message.maxConnections !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxConnections }, writer.uint32(18).fork()).ldelim(); } if (message.longQueryTime !== undefined) { wrappers_1.DoubleValue.encode({ $type: "google.protobuf.DoubleValue", value: message.longQueryTime }, writer.uint32(26).fork()).ldelim(); } if (message.generalLog !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.generalLog }, writer.uint32(34).fork()).ldelim(); } if (message.auditLog !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.auditLog }, writer.uint32(42).fork()).ldelim(); } writer.uint32(50).fork(); for (const v of message.sqlMode) { writer.int32(v); } writer.ldelim(); if (message.maxAllowedPacket !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxAllowedPacket, }, writer.uint32(58).fork()).ldelim(); } if (message.defaultAuthenticationPlugin !== 0) { writer.uint32(64).int32(message.defaultAuthenticationPlugin); } if (message.innodbFlushLogAtTrxCommit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbFlushLogAtTrxCommit, }, writer.uint32(74).fork()).ldelim(); } if (message.innodbLockWaitTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbLockWaitTimeout, }, writer.uint32(82).fork()).ldelim(); } if (message.transactionIsolation !== 0) { writer.uint32(88).int32(message.transactionIsolation); } if (message.innodbPrintAllDeadlocks !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.innodbPrintAllDeadlocks, }, writer.uint32(98).fork()).ldelim(); } if (message.netReadTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.netReadTimeout }, writer.uint32(106).fork()).ldelim(); } if (message.netWriteTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.netWriteTimeout, }, writer.uint32(114).fork()).ldelim(); } if (message.groupConcatMaxLen !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.groupConcatMaxLen, }, writer.uint32(122).fork()).ldelim(); } if (message.tmpTableSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.tmpTableSize }, writer.uint32(130).fork()).ldelim(); } if (message.maxHeapTableSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxHeapTableSize, }, writer.uint32(138).fork()).ldelim(); } if (message.defaultTimeZone !== "") { writer.uint32(146).string(message.defaultTimeZone); } if (message.characterSetServer !== "") { writer.uint32(154).string(message.characterSetServer); } if (message.collationServer !== "") { writer.uint32(162).string(message.collationServer); } if (message.innodbAdaptiveHashIndex !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.innodbAdaptiveHashIndex, }, writer.uint32(170).fork()).ldelim(); } if (message.innodbNumaInterleave !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.innodbNumaInterleave, }, writer.uint32(178).fork()).ldelim(); } if (message.innodbLogBufferSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbLogBufferSize, }, writer.uint32(186).fork()).ldelim(); } if (message.innodbLogFileSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbLogFileSize, }, writer.uint32(194).fork()).ldelim(); } if (message.innodbIoCapacity !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbIoCapacity, }, writer.uint32(202).fork()).ldelim(); } if (message.innodbIoCapacityMax !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbIoCapacityMax, }, writer.uint32(210).fork()).ldelim(); } if (message.innodbReadIoThreads !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbReadIoThreads, }, writer.uint32(218).fork()).ldelim(); } if (message.innodbWriteIoThreads !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbWriteIoThreads, }, writer.uint32(226).fork()).ldelim(); } if (message.innodbPurgeThreads !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbPurgeThreads, }, writer.uint32(234).fork()).ldelim(); } if (message.innodbThreadConcurrency !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbThreadConcurrency, }, writer.uint32(242).fork()).ldelim(); } if (message.innodbTempDataFileMaxSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbTempDataFileMaxSize, }, writer.uint32(250).fork()).ldelim(); } if (message.threadCacheSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.threadCacheSize, }, writer.uint32(258).fork()).ldelim(); } if (message.threadStack !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.threadStack }, writer.uint32(266).fork()).ldelim(); } if (message.joinBufferSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.joinBufferSize }, writer.uint32(274).fork()).ldelim(); } if (message.sortBufferSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.sortBufferSize }, writer.uint32(282).fork()).ldelim(); } if (message.tableDefinitionCache !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.tableDefinitionCache, }, writer.uint32(290).fork()).ldelim(); } if (message.tableOpenCache !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.tableOpenCache }, writer.uint32(298).fork()).ldelim(); } if (message.tableOpenCacheInstances !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.tableOpenCacheInstances, }, writer.uint32(306).fork()).ldelim(); } if (message.explicitDefaultsForTimestamp !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.explicitDefaultsForTimestamp, }, writer.uint32(314).fork()).ldelim(); } if (message.autoIncrementIncrement !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.autoIncrementIncrement, }, writer.uint32(322).fork()).ldelim(); } if (message.autoIncrementOffset !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.autoIncrementOffset, }, writer.uint32(330).fork()).ldelim(); } if (message.syncBinlog !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.syncBinlog }, writer.uint32(338).fork()).ldelim(); } if (message.binlogCacheSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.binlogCacheSize, }, writer.uint32(346).fork()).ldelim(); } if (message.binlogGroupCommitSyncDelay !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.binlogGroupCommitSyncDelay, }, writer.uint32(354).fork()).ldelim(); } if (message.binlogRowImage !== 0) { writer.uint32(360).int32(message.binlogRowImage); } if (message.binlogRowsQueryLogEvents !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.binlogRowsQueryLogEvents, }, writer.uint32(370).fork()).ldelim(); } if (message.rplSemiSyncMasterWaitForSlaveCount !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.rplSemiSyncMasterWaitForSlaveCount, }, writer.uint32(378).fork()).ldelim(); } if (message.slaveParallelType !== 0) { writer.uint32(384).int32(message.slaveParallelType); } if (message.slaveParallelWorkers !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.slaveParallelWorkers, }, writer.uint32(394).fork()).ldelim(); } if (message.regexpTimeLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.regexpTimeLimit, }, writer.uint32(402).fork()).ldelim(); } if (message.mdbPreserveBinlogBytes !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbPreserveBinlogBytes, }, writer.uint32(410).fork()).ldelim(); } if (message.interactiveTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.interactiveTimeout, }, writer.uint32(418).fork()).ldelim(); } if (message.waitTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.waitTimeout }, writer.uint32(426).fork()).ldelim(); } if (message.mdbOfflineModeEnableLag !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbOfflineModeEnableLag, }, writer.uint32(434).fork()).ldelim(); } if (message.mdbOfflineModeDisableLag !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbOfflineModeDisableLag, }, writer.uint32(442).fork()).ldelim(); } if (message.rangeOptimizerMaxMemSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.rangeOptimizerMaxMemSize, }, writer.uint32(450).fork()).ldelim(); } if (message.slowQueryLog !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.slowQueryLog }, writer.uint32(458).fork()).ldelim(); } if (message.slowQueryLogAlwaysWriteTime !== undefined) { wrappers_1.DoubleValue.encode({ $type: "google.protobuf.DoubleValue", value: message.slowQueryLogAlwaysWriteTime, }, writer.uint32(466).fork()).ldelim(); } if (message.logSlowRateType !== 0) { writer.uint32(472).int32(message.logSlowRateType); } if (message.logSlowRateLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.logSlowRateLimit, }, writer.uint32(482).fork()).ldelim(); } if (message.logSlowSpStatements !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logSlowSpStatements, }, writer.uint32(490).fork()).ldelim(); } writer.uint32(498).fork(); for (const v of message.logSlowFilter) { writer.int32(v); } writer.ldelim(); if (message.mdbPriorityChoiceMaxLag !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbPriorityChoiceMaxLag, }, writer.uint32(506).fork()).ldelim(); } if (message.innodbPageSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbPageSize }, writer.uint32(514).fork()).ldelim(); } if (message.innodbOnlineAlterLogMaxSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbOnlineAlterLogMaxSize, }, writer.uint32(522).fork()).ldelim(); } if (message.innodbFtMinTokenSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbFtMinTokenSize, }, writer.uint32(530).fork()).ldelim(); } if (message.innodbFtMaxTokenSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbFtMaxTokenSize, }, writer.uint32(538).fork()).ldelim(); } if (message.lowerCaseTableNames !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.lowerCaseTableNames, }, writer.uint32(546).fork()).ldelim(); } if (message.maxSpRecursionDepth !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxSpRecursionDepth, }, writer.uint32(554).fork()).ldelim(); } if (message.innodbCompressionLevel !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbCompressionLevel, }, writer.uint32(562).fork()).ldelim(); } if (message.binlogTransactionDependencyTracking !== 0) { writer.uint32(568).int32(message.binlogTransactionDependencyTracking); } if (message.autocommit !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.autocommit }, writer.uint32(578).fork()).ldelim(); } if (message.innodbStatusOutput !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.innodbStatusOutput, }, writer.uint32(586).fork()).ldelim(); } if (message.innodbStrictMode !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.innodbStrictMode, }, writer.uint32(594).fork()).ldelim(); } if (message.innodbPrintLockWaitTimeoutInfo !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.innodbPrintLockWaitTimeoutInfo, }, writer.uint32(602).fork()).ldelim(); } if (message.logErrorVerbosity !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.logErrorVerbosity, }, writer.uint32(610).fork()).ldelim(); } if (message.maxDigestLength !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxDigestLength, }, writer.uint32(618).fork()).ldelim(); } if (message.lockWaitTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.lockWaitTimeout, }, writer.uint32(626).fork()).ldelim(); } if (message.maxPreparedStmtCount !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxPreparedStmtCount, }, writer.uint32(634).fork()).ldelim(); } if (message.optimizerSwitch !== "") { writer.uint32(642).string(message.optimizerSwitch); } if (message.optimizerSearchDepth !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.optimizerSearchDepth, }, writer.uint32(650).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({}, baseMysqlconfig80); message.sqlMode = []; message.logSlowFilter = []; while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.innodbBufferPoolSize = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 2: message.maxConnections = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 3: message.longQueryTime = wrappers_1.DoubleValue.decode(reader, reader.uint32()).value; break; case 4: message.generalLog = wrappers_1.BoolValue.decode(reader, reader.uint32()).value; break; case 5: message.auditLog = wrappers_1.BoolValue.decode(reader, reader.uint32()).value; break; case 6: if ((tag & 7) === 2) { const end2 = reader.uint32() + reader.pos; while (reader.pos < end2) { message.sqlMode.push(reader.int32()); } } else { message.sqlMode.push(reader.int32()); } break; case 7: message.maxAllowedPacket = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 8: message.defaultAuthenticationPlugin = reader.int32(); break; case 9: message.innodbFlushLogAtTrxCommit = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 10: message.innodbLockWaitTimeout = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 11: message.transactionIsolation = reader.int32(); break; case 12: message.innodbPrintAllDeadlocks = wrappers_1.BoolValue.decode(reader, reader.uint32()).value; break; case 13: message.netReadTimeout = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 14: message.netWriteTimeout = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 15: message.groupConcatMaxLen = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 16: message.tmpTableSize = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 17: message.maxHeapTableSize = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 18: message.defaultTimeZone = reader.string(); break; case 19: message.characterSetServer = reader.string(); break; case 20: message.collationServer = reader.string(); break; case 21: message.innodbAdaptiveHashIndex = wrappers_1.BoolValue.decode(reader, reader.uint32()).value; break; case 22: message.innodbNumaInterleave = wrappers_1.BoolValue.decode(reader, reader.uint32()).value; break; case 23: message.innodbLogBufferSize = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 24: message.innodbLogFileSize = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break; case 25: message.innodbIoCapacity = wrappers_1.Int64Value.decode(reader, reader.uint32()).value; break;