|
@@ -218,12 +218,12 @@ type (
|
|
|
// fileInit contains a copy of certain fields in FileBuilder for use during
|
|
// fileInit contains a copy of certain fields in FileBuilder for use during
|
|
|
// lazy initialization upon first use.
|
|
// lazy initialization upon first use.
|
|
|
fileInit struct {
|
|
fileInit struct {
|
|
|
- RawDescriptor []byte
|
|
|
|
|
GoTypes []interface{}
|
|
GoTypes []interface{}
|
|
|
DependencyIndexes []int32
|
|
DependencyIndexes []int32
|
|
|
}
|
|
}
|
|
|
fileDesc struct {
|
|
fileDesc struct {
|
|
|
fileInit
|
|
fileInit
|
|
|
|
|
+ rawDesc []byte
|
|
|
|
|
|
|
|
path string
|
|
path string
|
|
|
protoPackage pref.FullName
|
|
protoPackage pref.FullName
|
|
@@ -270,6 +270,15 @@ func (fd *fileDesc) Format(s fmt.State, r rune) { pfmt.FormatDesc(s,
|
|
|
func (fd *fileDesc) ProtoType(pref.FileDescriptor) {}
|
|
func (fd *fileDesc) ProtoType(pref.FileDescriptor) {}
|
|
|
func (fd *fileDesc) ProtoInternal(pragma.DoNotImplement) {}
|
|
func (fd *fileDesc) ProtoInternal(pragma.DoNotImplement) {}
|
|
|
|
|
|
|
|
|
|
+// ProtoLegacyRawDesc is a pseudo-internal API for allowing the v1 code
|
|
|
|
|
+// to be able to retrieve the raw descriptor.
|
|
|
|
|
+//
|
|
|
|
|
+// WARNING: This method is exempt from the compatibility promise and may be
|
|
|
|
|
+// removed in the future without warning.
|
|
|
|
|
+func (fd *fileDesc) ProtoLegacyRawDesc() []byte {
|
|
|
|
|
+ return fd.rawDesc
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type (
|
|
type (
|
|
|
enumDesc struct {
|
|
enumDesc struct {
|
|
|
baseDesc
|
|
baseDesc
|