Home

google.protobuf.FileDescriptorProto

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.FileDescriptorProto
.withDependency([ 'string' ])
.withEnumType([ types.google.protobuf.EnumDescriptorProto ])
.withExtension([ types.google.protobuf.FieldDescriptorProto ])
.withMessageType([ types.google.protobuf.DescriptorProto ])
.withName('string')
.withOptions(types.google.protobuf.FileOptions)
.withPackage('string')
.withPublicDependency([ 1 ])
.withService([ types.google.protobuf.ServiceDescriptorProto ])
.withSourceCodeInfo(types.google.protobuf.SourceCodeInfo)
.withSyntax('string')
.withWeakDependency([ 1 ])
._validate()

Fields

Name Type One-of group Required Constraints
dependency [] string  
enum_type [] google.protobuf.EnumDescriptorProto  
extension [] google.protobuf.FieldDescriptorProto  
message_type [] google.protobuf.DescriptorProto  
name string  
options google.protobuf.FileOptions  
package string  
public_dependency [] int32  
service [] google.protobuf.ServiceDescriptorProto  
source_code_info google.protobuf.SourceCodeInfo  
syntax string  
weak_dependency [] int32