protodescriptor

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL