protopluginutil

package
v0.0.0-...-e2735f6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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