google.protobuf.FieldDescriptorProto
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.FieldDescriptorProto
.withDefaultValue('string')
.withExtendee('string')
.withJsonName('string')
.withLabel(types.google.protobuf.FieldDescriptorProto.Label.LABEL_OPTIONAL)
.withName('string')
.withNumber(1)
.withOneofIndex(1)
.withOptions(types.google.protobuf.FieldOptions)
.withProto3Optional(false)
.withType(types.google.protobuf.FieldDescriptorProto.Type.TYPE_DOUBLE)
.withTypeName('string')
._validate()
Nested Enums
Fields