Home

google.protobuf.EnumValueDescriptorProto

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.EnumValueDescriptorProto
.withName('string')
.withNumber(1)
.withOptions(types.google.protobuf.EnumValueOptions)
._validate()

Fields

Name Type One-of group Required Constraints
name string  
number int32  
options google.protobuf.EnumValueOptions