google.protobuf.DescriptorProto
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.google.protobuf.DescriptorProto
.withEnumType([ types.google.protobuf.EnumDescriptorProto ])
.withExtension([ types.google.protobuf.FieldDescriptorProto ])
.withExtensionRange([ types.google.protobuf.DescriptorProto.ExtensionRange ])
.withField([ types.google.protobuf.FieldDescriptorProto ])
.withName('string')
.withNestedType([ types.google.protobuf.DescriptorProto ])
.withOneofDecl([ types.google.protobuf.OneofDescriptorProto ])
.withOptions(types.google.protobuf.MessageOptions)
.withReservedName([ 'string' ])
.withReservedRange([ types.google.protobuf.DescriptorProto.ReservedRange ])
._validate()
Nested Messages
Fields