UNPKG

@bufbuild/protoc-gen-es

Version:

Protocol Buffers code generator for ECMAScript

86 lines (85 loc) 4.54 kB
"use strict"; // Copyright 2021-2025 Buf Technologies, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); exports.field = exports.oneof = exports.message = exports.IgnoreSchema = exports.Ignore = exports.MapRulesSchema = exports.RepeatedRulesSchema = exports.FieldRulesSchema = exports.OneofRulesSchema = exports.MessageRulesSchema = exports.file_minimal_validate = void 0; const codegenv1_1 = require("@bufbuild/protobuf/codegenv1"); const wkt_1 = require("@bufbuild/protobuf/wkt"); /** * Describes the file minimal-validate.proto. */ exports.file_minimal_validate = (0, codegenv1_1.fileDesc)("ChZtaW5pbWFsLXZhbGlkYXRlLnByb3RvEgxidWYudmFsaWRhdGUiIAoMTWVzc2FnZVJ1bGVzEhAKCGRpc2FibGVkGAEgASgIIh4KCk9uZW9mUnVsZXMSEAoIcmVxdWlyZWQYASABKAgipAEKCkZpZWxkUnVsZXMSEAoIcmVxdWlyZWQYGSABKAgSJAoGaWdub3JlGBsgASgOMhQuYnVmLnZhbGlkYXRlLklnbm9yZRIvCghyZXBlYXRlZBgSIAEoCzIbLmJ1Zi52YWxpZGF0ZS5SZXBlYXRlZFJ1bGVzSAASJQoDbWFwGBMgASgLMhYuYnVmLnZhbGlkYXRlLk1hcFJ1bGVzSABCBgoEdHlwZSI4Cg1SZXBlYXRlZFJ1bGVzEicKBWl0ZW1zGAQgASgLMhguYnVmLnZhbGlkYXRlLkZpZWxkUnVsZXMiNAoITWFwUnVsZXMSKAoGdmFsdWVzGAUgASgLMhguYnVmLnZhbGlkYXRlLkZpZWxkUnVsZXMqawoGSWdub3JlEhYKEklHTk9SRV9VTlNQRUNJRklFRBAAEhkKFUlHTk9SRV9JRl9VTlBPUFVMQVRFRBABEhsKF0lHTk9SRV9JRl9ERUZBVUxUX1ZBTFVFEAISEQoNSUdOT1JFX0FMV0FZUxADOlYKB21lc3NhZ2USHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYhwkgASgLMhouYnVmLnZhbGlkYXRlLk1lc3NhZ2VSdWxlc1IHbWVzc2FnZTpOCgVvbmVvZhIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMYhwkgASgLMhguYnVmLnZhbGlkYXRlLk9uZW9mUnVsZXNSBW9uZW9mOk4KBWZpZWxkEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxiHCSABKAsyGC5idWYudmFsaWRhdGUuRmllbGRSdWxlc1IFZmllbGQ", [wkt_1.file_google_protobuf_descriptor]); /** * Describes the message buf.validate.MessageRules. * Use `create(MessageRulesSchema)` to create a new message. */ exports.MessageRulesSchema = (0, codegenv1_1.messageDesc)(exports.file_minimal_validate, 0); /** * Describes the message buf.validate.OneofRules. * Use `create(OneofRulesSchema)` to create a new message. */ exports.OneofRulesSchema = (0, codegenv1_1.messageDesc)(exports.file_minimal_validate, 1); /** * Describes the message buf.validate.FieldRules. * Use `create(FieldRulesSchema)` to create a new message. */ exports.FieldRulesSchema = (0, codegenv1_1.messageDesc)(exports.file_minimal_validate, 2); /** * Describes the message buf.validate.RepeatedRules. * Use `create(RepeatedRulesSchema)` to create a new message. */ exports.RepeatedRulesSchema = (0, codegenv1_1.messageDesc)(exports.file_minimal_validate, 3); /** * Describes the message buf.validate.MapRules. * Use `create(MapRulesSchema)` to create a new message. */ exports.MapRulesSchema = (0, codegenv1_1.messageDesc)(exports.file_minimal_validate, 4); /** * @generated from enum buf.validate.Ignore */ var Ignore; (function (Ignore) { /** * @generated from enum value: IGNORE_UNSPECIFIED = 0; */ Ignore[Ignore["UNSPECIFIED"] = 0] = "UNSPECIFIED"; /** * @generated from enum value: IGNORE_IF_UNPOPULATED = 1; */ Ignore[Ignore["IF_UNPOPULATED"] = 1] = "IF_UNPOPULATED"; /** * @generated from enum value: IGNORE_IF_DEFAULT_VALUE = 2; */ Ignore[Ignore["IF_DEFAULT_VALUE"] = 2] = "IF_DEFAULT_VALUE"; /** * @generated from enum value: IGNORE_ALWAYS = 3; */ Ignore[Ignore["ALWAYS"] = 3] = "ALWAYS"; })(Ignore || (exports.Ignore = Ignore = {})); /** * Describes the enum buf.validate.Ignore. */ exports.IgnoreSchema = (0, codegenv1_1.enumDesc)(exports.file_minimal_validate, 0); /** * @generated from extension: optional buf.validate.MessageRules message = 1159; */ exports.message = (0, codegenv1_1.extDesc)(exports.file_minimal_validate, 0); /** * @generated from extension: optional buf.validate.OneofRules oneof = 1159; */ exports.oneof = (0, codegenv1_1.extDesc)(exports.file_minimal_validate, 1); /** * @generated from extension: optional buf.validate.FieldRules field = 1159; */ exports.field = (0, codegenv1_1.extDesc)(exports.file_minimal_validate, 2);