UNPKG

@yandex-cloud/nodejs-sdk

Version:
1,011 lines 108 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mysqlconfigset57 = exports.Mysqlconfig57 = exports.mysqlconfig57_BinlogTransactionDependencyTrackingToJSON = exports.mysqlconfig57_BinlogTransactionDependencyTrackingFromJSON = exports.Mysqlconfig57_BinlogTransactionDependencyTracking = exports.mysqlconfig57_LogSlowFilterTypeToJSON = exports.mysqlconfig57_LogSlowFilterTypeFromJSON = exports.Mysqlconfig57_LogSlowFilterType = exports.mysqlconfig57_LogSlowRateTypeToJSON = exports.mysqlconfig57_LogSlowRateTypeFromJSON = exports.Mysqlconfig57_LogSlowRateType = exports.mysqlconfig57_SlaveParallelTypeToJSON = exports.mysqlconfig57_SlaveParallelTypeFromJSON = exports.Mysqlconfig57_SlaveParallelType = exports.mysqlconfig57_BinlogRowImageToJSON = exports.mysqlconfig57_BinlogRowImageFromJSON = exports.Mysqlconfig57_BinlogRowImage = exports.mysqlconfig57_TransactionIsolationToJSON = exports.mysqlconfig57_TransactionIsolationFromJSON = exports.Mysqlconfig57_TransactionIsolation = exports.mysqlconfig57_AuthPluginToJSON = exports.mysqlconfig57_AuthPluginFromJSON = exports.Mysqlconfig57_AuthPlugin = exports.mysqlconfig57_SQLModeToJSON = exports.mysqlconfig57_SQLModeFromJSON = exports.Mysqlconfig57_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 Mysqlconfig57_SQLMode; (function (Mysqlconfig57_SQLMode) { Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["SQLMODE_UNSPECIFIED"] = 0] = "SQLMODE_UNSPECIFIED"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["ALLOW_INVALID_DATES"] = 1] = "ALLOW_INVALID_DATES"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["ANSI_QUOTES"] = 2] = "ANSI_QUOTES"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["ERROR_FOR_DIVISION_BY_ZERO"] = 3] = "ERROR_FOR_DIVISION_BY_ZERO"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["HIGH_NOT_PRECEDENCE"] = 4] = "HIGH_NOT_PRECEDENCE"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["IGNORE_SPACE"] = 5] = "IGNORE_SPACE"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_AUTO_VALUE_ON_ZERO"] = 6] = "NO_AUTO_VALUE_ON_ZERO"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_BACKSLASH_ESCAPES"] = 7] = "NO_BACKSLASH_ESCAPES"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_ENGINE_SUBSTITUTION"] = 8] = "NO_ENGINE_SUBSTITUTION"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_UNSIGNED_SUBTRACTION"] = 9] = "NO_UNSIGNED_SUBTRACTION"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_ZERO_DATE"] = 10] = "NO_ZERO_DATE"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_ZERO_IN_DATE"] = 11] = "NO_ZERO_IN_DATE"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_FIELD_OPTIONS"] = 12] = "NO_FIELD_OPTIONS"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_KEY_OPTIONS"] = 13] = "NO_KEY_OPTIONS"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_TABLE_OPTIONS"] = 14] = "NO_TABLE_OPTIONS"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["ONLY_FULL_GROUP_BY"] = 15] = "ONLY_FULL_GROUP_BY"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["PAD_CHAR_TO_FULL_LENGTH"] = 16] = "PAD_CHAR_TO_FULL_LENGTH"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["PIPES_AS_CONCAT"] = 17] = "PIPES_AS_CONCAT"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["REAL_AS_FLOAT"] = 18] = "REAL_AS_FLOAT"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["STRICT_ALL_TABLES"] = 19] = "STRICT_ALL_TABLES"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["STRICT_TRANS_TABLES"] = 20] = "STRICT_TRANS_TABLES"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["ANSI"] = 21] = "ANSI"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["TRADITIONAL"] = 22] = "TRADITIONAL"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["DB2"] = 23] = "DB2"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["MAXDB"] = 24] = "MAXDB"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["MSSQL"] = 25] = "MSSQL"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["MYSQL323"] = 26] = "MYSQL323"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["MYSQL40"] = 27] = "MYSQL40"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["ORACLE"] = 28] = "ORACLE"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["POSTGRESQL"] = 29] = "POSTGRESQL"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_AUTO_CREATE_USER"] = 30] = "NO_AUTO_CREATE_USER"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["NO_DIR_IN_CREATE"] = 31] = "NO_DIR_IN_CREATE"; Mysqlconfig57_SQLMode[Mysqlconfig57_SQLMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_SQLMode = exports.Mysqlconfig57_SQLMode || (exports.Mysqlconfig57_SQLMode = {})); function mysqlconfig57_SQLModeFromJSON(object) { switch (object) { case 0: case "SQLMODE_UNSPECIFIED": return Mysqlconfig57_SQLMode.SQLMODE_UNSPECIFIED; case 1: case "ALLOW_INVALID_DATES": return Mysqlconfig57_SQLMode.ALLOW_INVALID_DATES; case 2: case "ANSI_QUOTES": return Mysqlconfig57_SQLMode.ANSI_QUOTES; case 3: case "ERROR_FOR_DIVISION_BY_ZERO": return Mysqlconfig57_SQLMode.ERROR_FOR_DIVISION_BY_ZERO; case 4: case "HIGH_NOT_PRECEDENCE": return Mysqlconfig57_SQLMode.HIGH_NOT_PRECEDENCE; case 5: case "IGNORE_SPACE": return Mysqlconfig57_SQLMode.IGNORE_SPACE; case 6: case "NO_AUTO_VALUE_ON_ZERO": return Mysqlconfig57_SQLMode.NO_AUTO_VALUE_ON_ZERO; case 7: case "NO_BACKSLASH_ESCAPES": return Mysqlconfig57_SQLMode.NO_BACKSLASH_ESCAPES; case 8: case "NO_ENGINE_SUBSTITUTION": return Mysqlconfig57_SQLMode.NO_ENGINE_SUBSTITUTION; case 9: case "NO_UNSIGNED_SUBTRACTION": return Mysqlconfig57_SQLMode.NO_UNSIGNED_SUBTRACTION; case 10: case "NO_ZERO_DATE": return Mysqlconfig57_SQLMode.NO_ZERO_DATE; case 11: case "NO_ZERO_IN_DATE": return Mysqlconfig57_SQLMode.NO_ZERO_IN_DATE; case 12: case "NO_FIELD_OPTIONS": return Mysqlconfig57_SQLMode.NO_FIELD_OPTIONS; case 13: case "NO_KEY_OPTIONS": return Mysqlconfig57_SQLMode.NO_KEY_OPTIONS; case 14: case "NO_TABLE_OPTIONS": return Mysqlconfig57_SQLMode.NO_TABLE_OPTIONS; case 15: case "ONLY_FULL_GROUP_BY": return Mysqlconfig57_SQLMode.ONLY_FULL_GROUP_BY; case 16: case "PAD_CHAR_TO_FULL_LENGTH": return Mysqlconfig57_SQLMode.PAD_CHAR_TO_FULL_LENGTH; case 17: case "PIPES_AS_CONCAT": return Mysqlconfig57_SQLMode.PIPES_AS_CONCAT; case 18: case "REAL_AS_FLOAT": return Mysqlconfig57_SQLMode.REAL_AS_FLOAT; case 19: case "STRICT_ALL_TABLES": return Mysqlconfig57_SQLMode.STRICT_ALL_TABLES; case 20: case "STRICT_TRANS_TABLES": return Mysqlconfig57_SQLMode.STRICT_TRANS_TABLES; case 21: case "ANSI": return Mysqlconfig57_SQLMode.ANSI; case 22: case "TRADITIONAL": return Mysqlconfig57_SQLMode.TRADITIONAL; case 23: case "DB2": return Mysqlconfig57_SQLMode.DB2; case 24: case "MAXDB": return Mysqlconfig57_SQLMode.MAXDB; case 25: case "MSSQL": return Mysqlconfig57_SQLMode.MSSQL; case 26: case "MYSQL323": return Mysqlconfig57_SQLMode.MYSQL323; case 27: case "MYSQL40": return Mysqlconfig57_SQLMode.MYSQL40; case 28: case "ORACLE": return Mysqlconfig57_SQLMode.ORACLE; case 29: case "POSTGRESQL": return Mysqlconfig57_SQLMode.POSTGRESQL; case 30: case "NO_AUTO_CREATE_USER": return Mysqlconfig57_SQLMode.NO_AUTO_CREATE_USER; case 31: case "NO_DIR_IN_CREATE": return Mysqlconfig57_SQLMode.NO_DIR_IN_CREATE; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_SQLMode.UNRECOGNIZED; } } exports.mysqlconfig57_SQLModeFromJSON = mysqlconfig57_SQLModeFromJSON; function mysqlconfig57_SQLModeToJSON(object) { switch (object) { case Mysqlconfig57_SQLMode.SQLMODE_UNSPECIFIED: return "SQLMODE_UNSPECIFIED"; case Mysqlconfig57_SQLMode.ALLOW_INVALID_DATES: return "ALLOW_INVALID_DATES"; case Mysqlconfig57_SQLMode.ANSI_QUOTES: return "ANSI_QUOTES"; case Mysqlconfig57_SQLMode.ERROR_FOR_DIVISION_BY_ZERO: return "ERROR_FOR_DIVISION_BY_ZERO"; case Mysqlconfig57_SQLMode.HIGH_NOT_PRECEDENCE: return "HIGH_NOT_PRECEDENCE"; case Mysqlconfig57_SQLMode.IGNORE_SPACE: return "IGNORE_SPACE"; case Mysqlconfig57_SQLMode.NO_AUTO_VALUE_ON_ZERO: return "NO_AUTO_VALUE_ON_ZERO"; case Mysqlconfig57_SQLMode.NO_BACKSLASH_ESCAPES: return "NO_BACKSLASH_ESCAPES"; case Mysqlconfig57_SQLMode.NO_ENGINE_SUBSTITUTION: return "NO_ENGINE_SUBSTITUTION"; case Mysqlconfig57_SQLMode.NO_UNSIGNED_SUBTRACTION: return "NO_UNSIGNED_SUBTRACTION"; case Mysqlconfig57_SQLMode.NO_ZERO_DATE: return "NO_ZERO_DATE"; case Mysqlconfig57_SQLMode.NO_ZERO_IN_DATE: return "NO_ZERO_IN_DATE"; case Mysqlconfig57_SQLMode.NO_FIELD_OPTIONS: return "NO_FIELD_OPTIONS"; case Mysqlconfig57_SQLMode.NO_KEY_OPTIONS: return "NO_KEY_OPTIONS"; case Mysqlconfig57_SQLMode.NO_TABLE_OPTIONS: return "NO_TABLE_OPTIONS"; case Mysqlconfig57_SQLMode.ONLY_FULL_GROUP_BY: return "ONLY_FULL_GROUP_BY"; case Mysqlconfig57_SQLMode.PAD_CHAR_TO_FULL_LENGTH: return "PAD_CHAR_TO_FULL_LENGTH"; case Mysqlconfig57_SQLMode.PIPES_AS_CONCAT: return "PIPES_AS_CONCAT"; case Mysqlconfig57_SQLMode.REAL_AS_FLOAT: return "REAL_AS_FLOAT"; case Mysqlconfig57_SQLMode.STRICT_ALL_TABLES: return "STRICT_ALL_TABLES"; case Mysqlconfig57_SQLMode.STRICT_TRANS_TABLES: return "STRICT_TRANS_TABLES"; case Mysqlconfig57_SQLMode.ANSI: return "ANSI"; case Mysqlconfig57_SQLMode.TRADITIONAL: return "TRADITIONAL"; case Mysqlconfig57_SQLMode.DB2: return "DB2"; case Mysqlconfig57_SQLMode.MAXDB: return "MAXDB"; case Mysqlconfig57_SQLMode.MSSQL: return "MSSQL"; case Mysqlconfig57_SQLMode.MYSQL323: return "MYSQL323"; case Mysqlconfig57_SQLMode.MYSQL40: return "MYSQL40"; case Mysqlconfig57_SQLMode.ORACLE: return "ORACLE"; case Mysqlconfig57_SQLMode.POSTGRESQL: return "POSTGRESQL"; case Mysqlconfig57_SQLMode.NO_AUTO_CREATE_USER: return "NO_AUTO_CREATE_USER"; case Mysqlconfig57_SQLMode.NO_DIR_IN_CREATE: return "NO_DIR_IN_CREATE"; default: return "UNKNOWN"; } } exports.mysqlconfig57_SQLModeToJSON = mysqlconfig57_SQLModeToJSON; var Mysqlconfig57_AuthPlugin; (function (Mysqlconfig57_AuthPlugin) { Mysqlconfig57_AuthPlugin[Mysqlconfig57_AuthPlugin["AUTH_PLUGIN_UNSPECIFIED"] = 0] = "AUTH_PLUGIN_UNSPECIFIED"; /** MYSQL_NATIVE_PASSWORD - Using [Native Pluggable Authentication](https://dev.mysql.com/doc/refman/5.7/en/native-pluggable-authentication.html). */ Mysqlconfig57_AuthPlugin[Mysqlconfig57_AuthPlugin["MYSQL_NATIVE_PASSWORD"] = 1] = "MYSQL_NATIVE_PASSWORD"; /** @deprecated */ Mysqlconfig57_AuthPlugin[Mysqlconfig57_AuthPlugin["CACHING_SHA2_PASSWORD"] = 2] = "CACHING_SHA2_PASSWORD"; /** SHA256_PASSWORD - Using [SHA-256 Pluggable Authentication](https://dev.mysql.com/doc/refman/5.7/en/sha256-pluggable-authentication.html). */ Mysqlconfig57_AuthPlugin[Mysqlconfig57_AuthPlugin["SHA256_PASSWORD"] = 3] = "SHA256_PASSWORD"; Mysqlconfig57_AuthPlugin[Mysqlconfig57_AuthPlugin["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_AuthPlugin = exports.Mysqlconfig57_AuthPlugin || (exports.Mysqlconfig57_AuthPlugin = {})); function mysqlconfig57_AuthPluginFromJSON(object) { switch (object) { case 0: case "AUTH_PLUGIN_UNSPECIFIED": return Mysqlconfig57_AuthPlugin.AUTH_PLUGIN_UNSPECIFIED; case 1: case "MYSQL_NATIVE_PASSWORD": return Mysqlconfig57_AuthPlugin.MYSQL_NATIVE_PASSWORD; case 2: case "CACHING_SHA2_PASSWORD": return Mysqlconfig57_AuthPlugin.CACHING_SHA2_PASSWORD; case 3: case "SHA256_PASSWORD": return Mysqlconfig57_AuthPlugin.SHA256_PASSWORD; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_AuthPlugin.UNRECOGNIZED; } } exports.mysqlconfig57_AuthPluginFromJSON = mysqlconfig57_AuthPluginFromJSON; function mysqlconfig57_AuthPluginToJSON(object) { switch (object) { case Mysqlconfig57_AuthPlugin.AUTH_PLUGIN_UNSPECIFIED: return "AUTH_PLUGIN_UNSPECIFIED"; case Mysqlconfig57_AuthPlugin.MYSQL_NATIVE_PASSWORD: return "MYSQL_NATIVE_PASSWORD"; case Mysqlconfig57_AuthPlugin.CACHING_SHA2_PASSWORD: return "CACHING_SHA2_PASSWORD"; case Mysqlconfig57_AuthPlugin.SHA256_PASSWORD: return "SHA256_PASSWORD"; default: return "UNKNOWN"; } } exports.mysqlconfig57_AuthPluginToJSON = mysqlconfig57_AuthPluginToJSON; var Mysqlconfig57_TransactionIsolation; (function (Mysqlconfig57_TransactionIsolation) { Mysqlconfig57_TransactionIsolation[Mysqlconfig57_TransactionIsolation["TRANSACTION_ISOLATION_UNSPECIFIED"] = 0] = "TRANSACTION_ISOLATION_UNSPECIFIED"; Mysqlconfig57_TransactionIsolation[Mysqlconfig57_TransactionIsolation["READ_COMMITTED"] = 1] = "READ_COMMITTED"; Mysqlconfig57_TransactionIsolation[Mysqlconfig57_TransactionIsolation["REPEATABLE_READ"] = 2] = "REPEATABLE_READ"; Mysqlconfig57_TransactionIsolation[Mysqlconfig57_TransactionIsolation["SERIALIZABLE"] = 3] = "SERIALIZABLE"; Mysqlconfig57_TransactionIsolation[Mysqlconfig57_TransactionIsolation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_TransactionIsolation = exports.Mysqlconfig57_TransactionIsolation || (exports.Mysqlconfig57_TransactionIsolation = {})); function mysqlconfig57_TransactionIsolationFromJSON(object) { switch (object) { case 0: case "TRANSACTION_ISOLATION_UNSPECIFIED": return Mysqlconfig57_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED; case 1: case "READ_COMMITTED": return Mysqlconfig57_TransactionIsolation.READ_COMMITTED; case 2: case "REPEATABLE_READ": return Mysqlconfig57_TransactionIsolation.REPEATABLE_READ; case 3: case "SERIALIZABLE": return Mysqlconfig57_TransactionIsolation.SERIALIZABLE; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_TransactionIsolation.UNRECOGNIZED; } } exports.mysqlconfig57_TransactionIsolationFromJSON = mysqlconfig57_TransactionIsolationFromJSON; function mysqlconfig57_TransactionIsolationToJSON(object) { switch (object) { case Mysqlconfig57_TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED: return "TRANSACTION_ISOLATION_UNSPECIFIED"; case Mysqlconfig57_TransactionIsolation.READ_COMMITTED: return "READ_COMMITTED"; case Mysqlconfig57_TransactionIsolation.REPEATABLE_READ: return "REPEATABLE_READ"; case Mysqlconfig57_TransactionIsolation.SERIALIZABLE: return "SERIALIZABLE"; default: return "UNKNOWN"; } } exports.mysqlconfig57_TransactionIsolationToJSON = mysqlconfig57_TransactionIsolationToJSON; var Mysqlconfig57_BinlogRowImage; (function (Mysqlconfig57_BinlogRowImage) { Mysqlconfig57_BinlogRowImage[Mysqlconfig57_BinlogRowImage["BINLOG_ROW_IMAGE_UNSPECIFIED"] = 0] = "BINLOG_ROW_IMAGE_UNSPECIFIED"; Mysqlconfig57_BinlogRowImage[Mysqlconfig57_BinlogRowImage["FULL"] = 1] = "FULL"; Mysqlconfig57_BinlogRowImage[Mysqlconfig57_BinlogRowImage["MINIMAL"] = 2] = "MINIMAL"; Mysqlconfig57_BinlogRowImage[Mysqlconfig57_BinlogRowImage["NOBLOB"] = 3] = "NOBLOB"; Mysqlconfig57_BinlogRowImage[Mysqlconfig57_BinlogRowImage["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_BinlogRowImage = exports.Mysqlconfig57_BinlogRowImage || (exports.Mysqlconfig57_BinlogRowImage = {})); function mysqlconfig57_BinlogRowImageFromJSON(object) { switch (object) { case 0: case "BINLOG_ROW_IMAGE_UNSPECIFIED": return Mysqlconfig57_BinlogRowImage.BINLOG_ROW_IMAGE_UNSPECIFIED; case 1: case "FULL": return Mysqlconfig57_BinlogRowImage.FULL; case 2: case "MINIMAL": return Mysqlconfig57_BinlogRowImage.MINIMAL; case 3: case "NOBLOB": return Mysqlconfig57_BinlogRowImage.NOBLOB; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_BinlogRowImage.UNRECOGNIZED; } } exports.mysqlconfig57_BinlogRowImageFromJSON = mysqlconfig57_BinlogRowImageFromJSON; function mysqlconfig57_BinlogRowImageToJSON(object) { switch (object) { case Mysqlconfig57_BinlogRowImage.BINLOG_ROW_IMAGE_UNSPECIFIED: return "BINLOG_ROW_IMAGE_UNSPECIFIED"; case Mysqlconfig57_BinlogRowImage.FULL: return "FULL"; case Mysqlconfig57_BinlogRowImage.MINIMAL: return "MINIMAL"; case Mysqlconfig57_BinlogRowImage.NOBLOB: return "NOBLOB"; default: return "UNKNOWN"; } } exports.mysqlconfig57_BinlogRowImageToJSON = mysqlconfig57_BinlogRowImageToJSON; var Mysqlconfig57_SlaveParallelType; (function (Mysqlconfig57_SlaveParallelType) { Mysqlconfig57_SlaveParallelType[Mysqlconfig57_SlaveParallelType["SLAVE_PARALLEL_TYPE_UNSPECIFIED"] = 0] = "SLAVE_PARALLEL_TYPE_UNSPECIFIED"; Mysqlconfig57_SlaveParallelType[Mysqlconfig57_SlaveParallelType["DATABASE"] = 1] = "DATABASE"; Mysqlconfig57_SlaveParallelType[Mysqlconfig57_SlaveParallelType["LOGICAL_CLOCK"] = 2] = "LOGICAL_CLOCK"; Mysqlconfig57_SlaveParallelType[Mysqlconfig57_SlaveParallelType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_SlaveParallelType = exports.Mysqlconfig57_SlaveParallelType || (exports.Mysqlconfig57_SlaveParallelType = {})); function mysqlconfig57_SlaveParallelTypeFromJSON(object) { switch (object) { case 0: case "SLAVE_PARALLEL_TYPE_UNSPECIFIED": return Mysqlconfig57_SlaveParallelType.SLAVE_PARALLEL_TYPE_UNSPECIFIED; case 1: case "DATABASE": return Mysqlconfig57_SlaveParallelType.DATABASE; case 2: case "LOGICAL_CLOCK": return Mysqlconfig57_SlaveParallelType.LOGICAL_CLOCK; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_SlaveParallelType.UNRECOGNIZED; } } exports.mysqlconfig57_SlaveParallelTypeFromJSON = mysqlconfig57_SlaveParallelTypeFromJSON; function mysqlconfig57_SlaveParallelTypeToJSON(object) { switch (object) { case Mysqlconfig57_SlaveParallelType.SLAVE_PARALLEL_TYPE_UNSPECIFIED: return "SLAVE_PARALLEL_TYPE_UNSPECIFIED"; case Mysqlconfig57_SlaveParallelType.DATABASE: return "DATABASE"; case Mysqlconfig57_SlaveParallelType.LOGICAL_CLOCK: return "LOGICAL_CLOCK"; default: return "UNKNOWN"; } } exports.mysqlconfig57_SlaveParallelTypeToJSON = mysqlconfig57_SlaveParallelTypeToJSON; var Mysqlconfig57_LogSlowRateType; (function (Mysqlconfig57_LogSlowRateType) { Mysqlconfig57_LogSlowRateType[Mysqlconfig57_LogSlowRateType["LOG_SLOW_RATE_TYPE_UNSPECIFIED"] = 0] = "LOG_SLOW_RATE_TYPE_UNSPECIFIED"; Mysqlconfig57_LogSlowRateType[Mysqlconfig57_LogSlowRateType["SESSION"] = 1] = "SESSION"; Mysqlconfig57_LogSlowRateType[Mysqlconfig57_LogSlowRateType["QUERY"] = 2] = "QUERY"; Mysqlconfig57_LogSlowRateType[Mysqlconfig57_LogSlowRateType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_LogSlowRateType = exports.Mysqlconfig57_LogSlowRateType || (exports.Mysqlconfig57_LogSlowRateType = {})); function mysqlconfig57_LogSlowRateTypeFromJSON(object) { switch (object) { case 0: case "LOG_SLOW_RATE_TYPE_UNSPECIFIED": return Mysqlconfig57_LogSlowRateType.LOG_SLOW_RATE_TYPE_UNSPECIFIED; case 1: case "SESSION": return Mysqlconfig57_LogSlowRateType.SESSION; case 2: case "QUERY": return Mysqlconfig57_LogSlowRateType.QUERY; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_LogSlowRateType.UNRECOGNIZED; } } exports.mysqlconfig57_LogSlowRateTypeFromJSON = mysqlconfig57_LogSlowRateTypeFromJSON; function mysqlconfig57_LogSlowRateTypeToJSON(object) { switch (object) { case Mysqlconfig57_LogSlowRateType.LOG_SLOW_RATE_TYPE_UNSPECIFIED: return "LOG_SLOW_RATE_TYPE_UNSPECIFIED"; case Mysqlconfig57_LogSlowRateType.SESSION: return "SESSION"; case Mysqlconfig57_LogSlowRateType.QUERY: return "QUERY"; default: return "UNKNOWN"; } } exports.mysqlconfig57_LogSlowRateTypeToJSON = mysqlconfig57_LogSlowRateTypeToJSON; var Mysqlconfig57_LogSlowFilterType; (function (Mysqlconfig57_LogSlowFilterType) { Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["LOG_SLOW_FILTER_TYPE_UNSPECIFIED"] = 0] = "LOG_SLOW_FILTER_TYPE_UNSPECIFIED"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["FULL_SCAN"] = 1] = "FULL_SCAN"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["FULL_JOIN"] = 2] = "FULL_JOIN"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["TMP_TABLE"] = 3] = "TMP_TABLE"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["TMP_TABLE_ON_DISK"] = 4] = "TMP_TABLE_ON_DISK"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["FILESORT"] = 5] = "FILESORT"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["FILESORT_ON_DISK"] = 6] = "FILESORT_ON_DISK"; Mysqlconfig57_LogSlowFilterType[Mysqlconfig57_LogSlowFilterType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_LogSlowFilterType = exports.Mysqlconfig57_LogSlowFilterType || (exports.Mysqlconfig57_LogSlowFilterType = {})); function mysqlconfig57_LogSlowFilterTypeFromJSON(object) { switch (object) { case 0: case "LOG_SLOW_FILTER_TYPE_UNSPECIFIED": return Mysqlconfig57_LogSlowFilterType.LOG_SLOW_FILTER_TYPE_UNSPECIFIED; case 1: case "FULL_SCAN": return Mysqlconfig57_LogSlowFilterType.FULL_SCAN; case 2: case "FULL_JOIN": return Mysqlconfig57_LogSlowFilterType.FULL_JOIN; case 3: case "TMP_TABLE": return Mysqlconfig57_LogSlowFilterType.TMP_TABLE; case 4: case "TMP_TABLE_ON_DISK": return Mysqlconfig57_LogSlowFilterType.TMP_TABLE_ON_DISK; case 5: case "FILESORT": return Mysqlconfig57_LogSlowFilterType.FILESORT; case 6: case "FILESORT_ON_DISK": return Mysqlconfig57_LogSlowFilterType.FILESORT_ON_DISK; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_LogSlowFilterType.UNRECOGNIZED; } } exports.mysqlconfig57_LogSlowFilterTypeFromJSON = mysqlconfig57_LogSlowFilterTypeFromJSON; function mysqlconfig57_LogSlowFilterTypeToJSON(object) { switch (object) { case Mysqlconfig57_LogSlowFilterType.LOG_SLOW_FILTER_TYPE_UNSPECIFIED: return "LOG_SLOW_FILTER_TYPE_UNSPECIFIED"; case Mysqlconfig57_LogSlowFilterType.FULL_SCAN: return "FULL_SCAN"; case Mysqlconfig57_LogSlowFilterType.FULL_JOIN: return "FULL_JOIN"; case Mysqlconfig57_LogSlowFilterType.TMP_TABLE: return "TMP_TABLE"; case Mysqlconfig57_LogSlowFilterType.TMP_TABLE_ON_DISK: return "TMP_TABLE_ON_DISK"; case Mysqlconfig57_LogSlowFilterType.FILESORT: return "FILESORT"; case Mysqlconfig57_LogSlowFilterType.FILESORT_ON_DISK: return "FILESORT_ON_DISK"; default: return "UNKNOWN"; } } exports.mysqlconfig57_LogSlowFilterTypeToJSON = mysqlconfig57_LogSlowFilterTypeToJSON; var Mysqlconfig57_BinlogTransactionDependencyTracking; (function (Mysqlconfig57_BinlogTransactionDependencyTracking) { Mysqlconfig57_BinlogTransactionDependencyTracking[Mysqlconfig57_BinlogTransactionDependencyTracking["BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED"] = 0] = "BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED"; Mysqlconfig57_BinlogTransactionDependencyTracking[Mysqlconfig57_BinlogTransactionDependencyTracking["COMMIT_ORDER"] = 1] = "COMMIT_ORDER"; Mysqlconfig57_BinlogTransactionDependencyTracking[Mysqlconfig57_BinlogTransactionDependencyTracking["WRITESET"] = 2] = "WRITESET"; Mysqlconfig57_BinlogTransactionDependencyTracking[Mysqlconfig57_BinlogTransactionDependencyTracking["WRITESET_SESSION"] = 3] = "WRITESET_SESSION"; Mysqlconfig57_BinlogTransactionDependencyTracking[Mysqlconfig57_BinlogTransactionDependencyTracking["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; })(Mysqlconfig57_BinlogTransactionDependencyTracking = exports.Mysqlconfig57_BinlogTransactionDependencyTracking || (exports.Mysqlconfig57_BinlogTransactionDependencyTracking = {})); function mysqlconfig57_BinlogTransactionDependencyTrackingFromJSON(object) { switch (object) { case 0: case "BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED": return Mysqlconfig57_BinlogTransactionDependencyTracking.BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED; case 1: case "COMMIT_ORDER": return Mysqlconfig57_BinlogTransactionDependencyTracking.COMMIT_ORDER; case 2: case "WRITESET": return Mysqlconfig57_BinlogTransactionDependencyTracking.WRITESET; case 3: case "WRITESET_SESSION": return Mysqlconfig57_BinlogTransactionDependencyTracking.WRITESET_SESSION; case -1: case "UNRECOGNIZED": default: return Mysqlconfig57_BinlogTransactionDependencyTracking.UNRECOGNIZED; } } exports.mysqlconfig57_BinlogTransactionDependencyTrackingFromJSON = mysqlconfig57_BinlogTransactionDependencyTrackingFromJSON; function mysqlconfig57_BinlogTransactionDependencyTrackingToJSON(object) { switch (object) { case Mysqlconfig57_BinlogTransactionDependencyTracking.BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED: return "BINLOG_TRANSACTION_DEPENDENCY_TRACKING_UNSPECIFIED"; case Mysqlconfig57_BinlogTransactionDependencyTracking.COMMIT_ORDER: return "COMMIT_ORDER"; case Mysqlconfig57_BinlogTransactionDependencyTracking.WRITESET: return "WRITESET"; case Mysqlconfig57_BinlogTransactionDependencyTracking.WRITESET_SESSION: return "WRITESET_SESSION"; default: return "UNKNOWN"; } } exports.mysqlconfig57_BinlogTransactionDependencyTrackingToJSON = mysqlconfig57_BinlogTransactionDependencyTrackingToJSON; const baseMysqlconfig57 = { $type: "yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7", sqlMode: 0, defaultAuthenticationPlugin: 0, transactionIsolation: 0, defaultTimeZone: "", characterSetServer: "", collationServer: "", binlogRowImage: 0, slaveParallelType: 0, logSlowRateType: 0, logSlowFilter: 0, binlogTransactionDependencyTracking: 0, optimizerSwitch: "", }; exports.Mysqlconfig57 = { $type: "yandex.cloud.mdb.mysql.v1.config.MysqlConfig5_7", 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.mdbPreserveBinlogBytes !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbPreserveBinlogBytes, }, writer.uint32(402).fork()).ldelim(); } if (message.interactiveTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.interactiveTimeout, }, writer.uint32(410).fork()).ldelim(); } if (message.waitTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.waitTimeout }, writer.uint32(418).fork()).ldelim(); } if (message.mdbOfflineModeEnableLag !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbOfflineModeEnableLag, }, writer.uint32(426).fork()).ldelim(); } if (message.mdbOfflineModeDisableLag !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.mdbOfflineModeDisableLag, }, writer.uint32(434).fork()).ldelim(); } if (message.rangeOptimizerMaxMemSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.rangeOptimizerMaxMemSize, }, writer.uint32(442).fork()).ldelim(); } if (message.slowQueryLog !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.slowQueryLog }, writer.uint32(450).fork()).ldelim(); } if (message.slowQueryLogAlwaysWriteTime !== undefined) { wrappers_1.DoubleValue.encode({ $type: "google.protobuf.DoubleValue", value: message.slowQueryLogAlwaysWriteTime, }, writer.uint32(458).fork()).ldelim(); } if (message.logSlowRateType !== 0) { writer.uint32(464).int32(message.logSlowRateType); } if (message.logSlowRateLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.logSlowRateLimit, }, writer.uint32(474).fork()).ldelim(); } if (message.logSlowSpStatements !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.logSlowSpStatements, }, writer.uint32(482).fork()).ldelim(); } writer.uint32(490).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(498).fork()).ldelim(); } if (message.innodbPageSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbPageSize }, writer.uint32(506).fork()).ldelim(); } if (message.innodbOnlineAlterLogMaxSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbOnlineAlterLogMaxSize, }, writer.uint32(514).fork()).ldelim(); } if (message.innodbFtMinTokenSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbFtMinTokenSize, }, writer.uint32(522).fork()).ldelim(); } if (message.innodbFtMaxTokenSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.innodbFtMaxTokenSize, }, writer.uint32(530).fork()).ldelim(); } if (message.lowerCaseTableNames !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.lowerCaseTableNames, }, writer.uint32(538).fork()).ldelim(); } if (message.showCompatibility56 !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.showCompatibility56, }, 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.queryCacheLimit !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.queryCacheLimit, }, writer.uint32(626).fork()).ldelim(); } if (message.queryCacheSize !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.queryCacheSize }, writer.uint32(634).fork()).ldelim(); } if (message.queryCacheType !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.queryCacheType }, writer.uint32(642).fork()).ldelim(); } if (message.lockWaitTimeout !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.lockWaitTimeout, }, writer.uint32(650).fork()).ldelim(); } if (message.maxPreparedStmtCount !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.maxPreparedStmtCount, }, writer.uint32(658).fork()).ldelim(); } if (message.optimizerSwitch !== "") { writer.uint32(666).string(message.optimizerSwitch); } if (message.optimizerSearchDepth !== undefined) { wrappers_1.Int64Value.encode({ $type: "google.protobuf.Int64Value", value: message.optimizerSearchDepth, }, writer.uint32(674).fork()).ldelim(); } if (message.queryResponseTimeStats !== undefined) { wrappers_1.BoolValue.encode({ $type: "google.protobuf.BoolValue", value: message.queryResponseTimeStats, }, writer.uint32(682).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({}, baseMysqlconfig57); 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()).va