| 1 |
"use strict"; |
| 2 |
// Copyright 2021-2026 Buf Technologies, Inc. |
| 3 |
// |
| 4 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
// you may not use this file except in compliance with the License. |
| 6 |
// You may obtain a copy of the License at |
| 7 |
// |
| 8 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
// |
| 10 |
// Unless required by applicable law or agreed to in writing, software |
| 11 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
// See the License for the specific language governing permissions and |
| 14 |
// limitations under the License. |
| 15 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 16 |
exports.ScalarType = void 0; |
| 17 |
/** |
| 18 |
* Scalar value types. This is a subset of field types declared by protobuf |
| 19 |
* enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE |
| 20 |
* are omitted, but the numerical values are identical. |
| 21 |
*/ |
| 22 |
var ScalarType; |
| 23 |
(function (ScalarType) { |
| 24 |
// 0 is reserved for errors. |
| 25 |
// Order is weird for historical reasons. |
| 26 |
ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE"; |
| 27 |
ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT"; |
| 28 |
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if |
| 29 |
// negative values are likely. |
| 30 |
ScalarType[ScalarType["INT64"] = 3] = "INT64"; |
| 31 |
ScalarType[ScalarType["UINT64"] = 4] = "UINT64"; |
| 32 |
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if |
| 33 |
// negative values are likely. |
| 34 |
ScalarType[ScalarType["INT32"] = 5] = "INT32"; |
| 35 |
ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64"; |
| 36 |
ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32"; |
| 37 |
ScalarType[ScalarType["BOOL"] = 8] = "BOOL"; |
| 38 |
ScalarType[ScalarType["STRING"] = 9] = "STRING"; |
| 39 |
// Tag-delimited aggregate. |
| 40 |
// Group type is deprecated and not supported in proto3. However, Proto3 |
| 41 |
// implementations should still be able to parse the group wire format and |
| 42 |
// treat group fields as unknown fields. |
| 43 |
// TYPE_GROUP = 10, |
| 44 |
// TYPE_MESSAGE = 11, // Length-delimited aggregate. |
| 45 |
// New in version 2. |
| 46 |
ScalarType[ScalarType["BYTES"] = 12] = "BYTES"; |
| 47 |
ScalarType[ScalarType["UINT32"] = 13] = "UINT32"; |
| 48 |
// TYPE_ENUM = 14, |
| 49 |
ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32"; |
| 50 |
ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64"; |
| 51 |
ScalarType[ScalarType["SINT32"] = 17] = "SINT32"; |
| 52 |
ScalarType[ScalarType["SINT64"] = 18] = "SINT64"; |
| 53 |
})(ScalarType || (exports.ScalarType = ScalarType = {})); |