validate.go 629 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package prototype
  5. import (
  6. pref "google.golang.org/proto/reflect/protoreflect"
  7. )
  8. // TODO: This is important to prevent users from creating invalid types,
  9. // but is not functionality needed now.
  10. func validateFile(t pref.FileDescriptor) error {
  11. return nil
  12. }
  13. func validateMessage(t pref.MessageDescriptor) error {
  14. return nil
  15. }
  16. func validateExtension(t pref.ExtensionDescriptor) error {
  17. return nil
  18. }
  19. func validateEnum(t pref.EnumDescriptor) error {
  20. return nil
  21. }