helpers.go 337 B

1234567891011
  1. package plugin
  2. import (
  3. "github.com/gogo/protobuf/proto"
  4. google_protobuf "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
  5. )
  6. // DeepcopyEnabled returns true if deepcopy is enabled for the descriptor.
  7. func DeepcopyEnabled(options *google_protobuf.MessageOptions) bool {
  8. return proto.GetBoolExtension(options, E_Deepcopy, true)
  9. }