Home

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

Name Type One-of group Required Constraints
default_value string  
extendee string  
json_name string  
label google.protobuf.FieldDescriptorProto.Label  
name string  
number int32  
oneof_index int32  
options google.protobuf.FieldOptions  
proto3_optional bool  
type google.protobuf.FieldDescriptorProto.Type  
type_name string