Back to godoc.org
github.com/bufbuild/buf / internal / pkg / protodescriptor

Package protodescriptor

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Index

func ValidateCodeGeneratorRequest

func ValidateCodeGeneratorRequest(request *pluginpb.CodeGeneratorRequest) error

ValidateCodeGeneratorRequest validates the CodeGeneratorRequest.

func ValidateCodeGeneratorRequestExceptFileDescriptorProtos

func ValidateCodeGeneratorRequestExceptFileDescriptorProtos(request *pluginpb.CodeGeneratorRequest) error

ValidateCodeGeneratorRequestExceptFileDescriptorProtos validates the CodeGeneratorRequest minus the FileDescriptorProtos.

func ValidateCodeGeneratorResponse

func ValidateCodeGeneratorResponse(response *pluginpb.CodeGeneratorResponse) error

ValidateCodeGeneratorResponse validates the CodeGeneratorResponse.

This validates that names are set.

It is actually OK per the plugin.proto specs to not have the name set, and if this is empty, the content should be combined with the previous file. However, for our handlers, we do not support this, and for our binary handlers, we combine CodeGeneratorResponse.File contents.

https://github.com/protocolbuffers/protobuf/blob/b99994d994e399174fe688a5efbcb6d91f36952a/src/google/protobuf/compiler/plugin.proto#L127

func ValidateFileDescriptorProto

func ValidateFileDescriptorProto(fileDescriptorProto *descriptorpb.FileDescriptorProto) error

ValidateFileDescriptorProto validates the FileDescriptorProto.

func ValidateFileDescriptorProtos

func ValidateFileDescriptorProtos(fileDescriptorProtos []*descriptorpb.FileDescriptorProto) error

ValidateFileDescriptorProtos validates the FileDescriptorProtos.

func ValidateProtoPath

func ValidateProtoPath(name string, path string) error

ValidateProtoPath validates the proto path.

func ValidateProtoPaths

func ValidateProtoPaths(name string, paths []string) error

ValidateProtoPaths validates the proto paths.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier