Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripSourceRetentionOptions ¶
func StripSourceRetentionOptions(file *descriptorpb.FileDescriptorProto) (*descriptorpb.FileDescriptorProto, error)
If the FileDescriptorProto has no source-retention options, the original FileDescriptorProto is returned. If the FileDescriptorProto has source-retention options, a new FileDescriptorProto is returned with the source-retention options stripped.
Even when a copy is returned, it is not a deep copy: it may share data with the input FileDescriptorProto, and mutations to the returned FileDescriptorProto may impact the input FileDescriptorProto.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.