buf: github.com/bufbuild/buf/internal/pkg/protodescriptor Index | Files

package protodescriptor

import "github.com/bufbuild/buf/internal/pkg/protodescriptor"

Index

Package Files

protodescriptor.go

func ValidateCodeGeneratorRequest Uses

func ValidateCodeGeneratorRequest(request *pluginpb.CodeGeneratorRequest) error

ValidateCodeGeneratorRequest validates the CodeGeneratorRequest.

func ValidateCodeGeneratorRequestExceptFileDescriptorProtos Uses

func ValidateCodeGeneratorRequestExceptFileDescriptorProtos(request *pluginpb.CodeGeneratorRequest) error

ValidateCodeGeneratorRequestExceptFileDescriptorProtos validates the CodeGeneratorRequest minus the FileDescriptorProtos.

func ValidateCodeGeneratorResponse Uses

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 Uses

func ValidateFileDescriptorProto(fileDescriptorProto *descriptorpb.FileDescriptorProto) error

ValidateFileDescriptorProto validates the FileDescriptorProto.

func ValidateFileDescriptorProtos Uses

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

ValidateFileDescriptorProtos validates the FileDescriptorProtos.

func ValidateProtoPath Uses

func ValidateProtoPath(name string, path string) error

ValidateProtoPath validates the proto path.

func ValidateProtoPaths Uses

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

ValidateProtoPaths validates the proto paths.

Package protodescriptor imports 5 packages (graph) and is imported by 4 packages. Updated 2020-07-17. Refresh now. Tools for package owners.