Skip to main content
Version: Latest (0.60.x)

[V] $lib

const $lib: TypeSpecLibrary<object, ProtobufEmitterOptions, never> = TypeSpecProtobufLibrary;

Type declaration

NameTypeDefault value
anonymous-modelobject-
anonymous-model.default"anonymous models cannot be used in Protobuf messages""anonymous models cannot be used in Protobuf messages"
field-indexobject-
field-index.invalidCallableMessage<["index"]>-
field-index.missingCallableMessage<["name"]>-
field-index.out-of-boundsCallableMessage<["index", "max"]>-
field-index.reservedCallableMessage<["index"]>-
field-index.user-reservedCallableMessage<["index"]>-
field-index.user-reserved-rangeCallableMessage<["index"]>-
field-nameobject-
field-name.user-reservedCallableMessage<["name"]>-
illegal-reservationobject-
illegal-reservation.default"reservation value must be a string literal, uint32 literal, or a tuple of two uint32 literals denoting a range""reservation value must be a string literal, uint32 literal, or a tuple of two uint32 literals denoting a range"
invalid-package-nameobject-
invalid-package-name.defaultCallableMessage<["name"]>-
model-not-in-packageobject-
model-not-in-package.defaultCallableMessage<["name"]>-
namespace-collisionobject-
namespace-collision.defaultCallableMessage<["name"]>-
nested-arrayobject-
nested-array.default"nested arrays are not supported by the Protobuf emitter""nested arrays are not supported by the Protobuf emitter"
packageobject-
package.disallowed-option-typeCallableMessage<["name", "type"]>-
root-operationobject-
root-operation.default"operations in the root namespace are not supported (no associated Protobuf service)""operations in the root namespace are not supported (no associated Protobuf service)"
unconvertible-enumobject-
unconvertible-enum.default"enums must explicitly assign exactly one integer to each member to be used in a Protobuf message""enums must explicitly assign exactly one integer to each member to be used in a Protobuf message"
unconvertible-enum.no-zero-first"the first variant of an enum must be set to zero to be used in a Protobuf message""the first variant of an enum must be set to zero to be used in a Protobuf message"
unspeakable-template-argumentobject-
unspeakable-template-argument.defaultCallableMessage<["name"]>-
unsupported-field-typeobject-
unsupported-field-type.recursive-map"a protobuf map's 'value' type may not refer to another map""a protobuf map's 'value' type may not refer to another map"
unsupported-field-type.unconvertibleCallableMessage<["type"]>-
unsupported-field-type.union"a message field's type may not be a union""a message field's type may not be a union"
unsupported-field-type.unknown-intrinsicCallableMessage<["name"]>-
unsupported-field-type.unknown-scalarCallableMessage<["name"]>-
unsupported-input-typeobject-
unsupported-input-type.unconvertible"input parameters cannot be converted to a Protobuf message""input parameters cannot be converted to a Protobuf message"
unsupported-input-type.wrong-number"Protobuf methods must accept exactly one Model input (an empty model will do)""Protobuf methods must accept exactly one Model input (an empty model will do)"
unsupported-input-type.wrong-type"Protobuf methods may only accept a named Model as an input""Protobuf methods may only accept a named Model as an input"
unsupported-intrinsicobject-
unsupported-intrinsic.defaultCallableMessage<["name"]>-
unsupported-return-typeobject-
unsupported-return-type.default"Protobuf methods must return a named Model""Protobuf methods must return a named Model"